Layouts Plugin

Strange. I updated to 3 nested layers of categories but now i find that the Categories List component ignores any categories which have three layers within them. I get no errors in console

Update: I’ve worked it out. On our forum the component didn’t like category slugs left blank, so using the default set up which just uses sequential numbers. If one category or sub was using the default slug none of its brothers and sisters would show up either… well most of them wouldn’t. Occasionally one does and i can’t see why.

I’ve noticed this plugin doesn’t play nice on desktop with the popular Kanban boards plugin. That can be overcome by allowing users to close the plugin with a click. I guess expected functionality, if you want them to work together, would be that it recognises the other element and begins in closed mode. Allowing the user to open it if needed.

We are currently working on a modified version which would achieve that in a slightly different way. So it won’t be a direct solution to this bug for those who want their functionality to stay the same.

Hey @Drew-ART, check out the layouts interoperability topic on the Pavilion forum. This topic addresses the interoperability of the layouts plugin with other plugins/themes. There is a suggested fix mentioned for the layouts plugin to work with Discourse Kanban by adding some CSS.

「いいね!」 3

I believe I’ve installed this according to your instructions here - Installation and Setup - Layouts - Pavilion and here - Widget Settings - Layouts - Pavilion. However, I am not seeing any change to the theme in use on my site - https://hangarflying.com. I’m sure I have missed some setting but am unable to find it. I’ve included my installation settings below. Thanks in advance!

Hey @Whiskey_Victor_LLC :slight_smile:

You need to enable some contexts. Have a read over the widget settings again, and let us know if anything isn’t clear there by replying to that topic

Yep I read it. I have one widget enabled with every context enabled and the layout still does not want to display…

Try removing “all categories”, save and refresh.

If you have follow up questions, or further issues with widget settings please post them here:

Ok cool, thank you that worked. Now I can’t seem to get the others to work…I will post them in the other site.

I have a very odd output with the use of both custom layout plugin and the location plugin.

I have the layout plugin set up in a way that shows a topic location map on the right side of the topic list for a couple of the categories. it used to display like this.

Starting from some time last week, if I click the link to the category, the map just won’t show up.

But I click refresh button in the browser, the map shows up again.

Any idea why this is happening? I got rid of all my CSS to test if its a CSS issue. But the phenomenon persists.

Any clues?

Some additional data point: When I load a category with the layout sidebar enabled, the sidebar doesn’t show and the CSS shows:

<div class="main-content discovery category no-sidebars" style="width: 100%">

When I click the refresh button in the browser, the sidebar with the map shows up and the html says:

<div id="ember128" class="sidebar-container ember-view"><div class="sidebar-content" data-click-outside="true"><div class="widget-container nav-container"><div class="locations-map">

Any idea why the plugin will consider the category to not configured to have sidebars when its actually the opposite?

Hey @ckshen

Thanks for identifying this issue in a very detailed manner. The information your provided will be very helpful in fixing this problem. I created a bug report for this issue, and hopefully we can resolve this issue very soon. Sorry for the inconvenience! I will post an update here once this issue is resolved.

「いいね!」 3

Thank you for looking into this!

FYI this issue started when I upgraded the discourse software around a month ago. I upgraded to 2.8.0.beta6 (f38fd1a5a7) yesterday and the issue persists.

「いいね!」 1

このプラグインを先週追加したばかりで、とても気に入っています。モバイルメニューをカスタマイズしましたが、非常に役立っているようです。残念ながら、新しいチャットプラグインを追加すると、モバイルメニューが表示されないようです。以下にスクリーンショットを添付します(プライバシーのため、サイトのロゴとチャットスレッドは空白にしています。また、whos-onlineプラグインをその場所にカスタマイズしており、標準ではありません)。

検索ページやその他のページでは問題ありません。

しかし、チャットページ(ヘッダーメニューのチャットバブルをクリックすると表示されます)では表示されなくなりました。

それほど緊急ではありませんが、新しいチャット機能により、非常に便利だと感じています(画面上部まで親指を動かしてナビゲートするのが嫌なので)。

こちら側で修正するために何か提案はありますか?

「いいね!」 1

また、バグかどうかわかりませんが、カテゴリリストを作成して左側のメニューに配置すると、サブカテゴリを持つカテゴリのドロップダウン矢印をクリックしたときに、意図せずにそのカテゴリに移動してしまいます。

期待される動作:

  1. ドロップダウン矢印をクリックする
  2. サブカテゴリが表示され、ナビゲーションは変更されない
  3. 上矢印をクリックする
  4. サブカテゴリが非表示になり、ナビゲーションは変更されない

現在の動作:

  1. ドロップダウン矢印をクリックする
  2. サブカテゴリが表示され、ナビゲーションがそのカテゴリに変更される
  3. 上矢印をクリックする
  4. サブカテゴリが非表示になり、ナビゲーションは変更されないように見える

デスクトップとモバイルの両方で発生するようです。

「いいね!」 1

Hey @jimkleiber

チャットプラグインはカスタムルート(/chat)を追加しているようですが、これは現在、レイアウトプラグインではサポートされていません。ご指摘の件についてはレポートを作成しましたので、サポート可能かどうか確認します。

残念ながら、現時点ではお客様の方で修正できることはないと思われます。

はい、これは現在のウィジェットの期待される動作です。まずカテゴリに移動し、その後サブカテゴリが表示されます。ただし、この動作の変更については、他のPavilionチームメンバーと相談します。

「いいね!」 2

素晴らしい、ありがとうございます!

:+1:

ああ、なるほど。通常、ドロップダウン矢印をクリックするとサイトのナビゲーションを強制されることなくドロップダウンするものと期待しているので、混乱します。カテゴリのタイトルや行をクリックするとナビゲーションとドロップダウンが発生することは理解できますが、矢印があることで、私の期待を妨げているように感じます。

「いいね!」 2

モバイルでブラウザごとに一貫性のないレイアウトの動作が発生しています。モバイルでは、ChromeとFirefoxの両方で、ボトムナビゲーションバーが固定され、スクロールしても切り替わりません。DuckDuckGoでは切り替わります。私のインスタンスでも、またthepavilionでも同様の現象を確認しています。

@Mr.X_Mr.Xさん

この問題を共有していただきありがとうございます。DuckDuckGoでのみ発生しているようです。解決に向けて調査します。

「いいね!」 1

Layouts プラグインの「最新」および「カテゴリ」コンテキストが見つかりません。2 つの異なるインストールで試しました。最新およびカテゴリのコンテキストは削除されたのでしょうか、それとも私の側のエラーでしょうか?

@Mr.X_Mr.Xさん

最新カテゴリはフィルターであるため、コンテキストの下にはリストされません。フィルター入力から選択するか、すべてのフィルターを対象にするには、その入力を空白のままにしてください。

「いいね!」 1