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 „Gefällt mir“

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 „Gefällt mir“

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 „Gefällt mir“

Ich habe dieses Plugin erst neulich hinzugefügt und mag es wirklich. Ich habe ein mobiles Menü angepasst, das sehr gut zu helfen scheint. Leider habe ich festgestellt, dass das mobile Menü mit dem neuen Chat-Plugin nicht zu erscheinen scheint. Unten habe ich Screenshots beigefügt (das Website-Logo und die Chat-Threads aus Datenschutzgründen geschwärzt; außerdem habe ich das „Whos-Online“-Plugin so angepasst, dass es sich an dieser Stelle befindet, nicht standardmäßig).

Auf der Suchseite und anderen Seiten ist es in Ordnung:

Aber auf der Chat-Seite (die nach dem Klicken auf die Sprechblase im Header-Menü erscheint), erscheint es nicht mehr:

Es ist nicht sehr dringend, aber mit der neuen Chat-Funktion finde ich es ziemlich schön zu haben (ich hasse es, meinen Daumen zum Navigieren an den oberen Bildschirmrand zu bewegen).

Gibt es etwas, das Sie vorschlagen, das ich von meiner Seite aus tun kann, um es zu beheben?

1 „Gefällt mir“

Außerdem bin ich mir nicht sicher, ob es ein Fehler ist oder nicht, aber wenn ich eine Kategorienliste erstelle und sie im linken Menü platziere, werde ich beim Klicken auf den Dropdown-Pfeil für Kategorien, die Unterkategorien haben, unbeabsichtigt zur Kategorie weitergeleitet.

Was ich erwarte:

  1. Dropdown-Pfeil anklicken
  2. Unterkategorien werden angezeigt und die Navigation ändert sich nicht
  3. Aufwärtspfeil anklicken
  4. Unterkategorien werden ausgeblendet und die Navigation ändert sich nicht

Was passiert:

  1. Dropdown-Pfeil anklicken
  2. Unterkategorien werden angezeigt und die Navigation ändert sich zu dieser Kategorie
  3. Aufwärtspfeil anklicken
  4. Unterkategorien werden ausgeblendet und die Navigation scheint sich nicht zu ändern

Es scheint sowohl auf dem Desktop als auch auf dem Mobilgerät zu passieren.

1 „Gefällt mir“

Hallo @jimkleiber

Das Chat-Plugin scheint eine benutzerdefinierte Route (/chat) hinzuzufügen, die derzeit vom Layout-Plugin nicht unterstützt wird. Ich habe einen Bericht über das von Ihnen erwähnte Problem erstellt und werde prüfen, ob wir dies unterstützen können.

Leider glaube ich nicht, dass es derzeit etwas gibt, das Sie tun können, um dies zu beheben.

Ja, das ist das derzeit erwartete Verhalten des Widgets. Sie werden zuerst zur Kategorie weitergeleitet und dann erscheinen die Unterkategorien. Ich werde jedoch mit dem Rest des Pavilion-Teams über eine Änderung des Verhaltens sprechen.

2 „Gefällt mir“

Ausgezeichnet, danke!

:+1:

Ah OK, ja, es verwirrt mich nur, da ich normalerweise erwarte, dass der Dropdown-Pfeil einfach herunterklappt, ohne eine Website-Navigation zu erzwingen. Ich kann verstehen, wenn das Klicken auf den Kategorietitel oder sogar die Zeile navigieren und herunterklappen würde, aber mit dem Pfeil dort scheint es meine Erwartungen zu stören.

2 „Gefällt mir“

Ich erlebe ein inkonsistentes Verhalten des mobilen Layouts, das browserabhängig ist. Auf Mobilgeräten sind sowohl Chrome als auch Firefox mit einer festen unteren Navigationsleiste ausgestattet, die sich beim Scrollen nicht ein- und ausblendet. Auf DuckDuckGo wird sie ein- und ausgeblendet. Ich sehe dasselbe auf meiner Instanz, aber auch auf thepavilion.

Hallo @Mr.X_Mr.X,

Danke, dass Sie dieses Problem geteilt haben. Es scheint nur bei DuckDuckGo aufzutreten. Ich werde mich darum kümmern, es zu lösen.

1 „Gefällt mir“

Ich kann die Kontexte „Neueste“ und „Kategorien“ für das Layouts-Plugin nicht finden, habe es auf zwei verschiedenen Installationen versucht. Wurden die neuesten und die Kategorie-Kontexte entfernt oder liegt ein Fehler auf meiner Seite vor?

Hallo @Mr.X_Mr.X,

Die Neuesten und Kategorien würden nicht unter Kontexten aufgeführt, da es sich um Filter handelt. Sie können sie über das Eingabefeld Filter auswählen oder dieses Eingabefeld leer lassen, um alle Filter anzusprechen.

1 „Gefällt mir“