Layouts 插件

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 个赞

我前几天刚添加了这个插件,我很喜欢它。我定制了一个移动菜单,似乎效果很好。不幸的是,我注意到移动菜单在新聊天插件中似乎没有显示出来。我在下面附上了截图(出于隐私原因,已将网站徽标和聊天线程涂黑;另外,我定制了“在线用户”插件放在那个位置,而不是标准的)。

在搜索页面和其他页面上,它很好:

但在聊天页面(点击标题菜单中的聊天气泡后出现),它不再显示:

这不是很紧急,但是,有了新的聊天功能,我觉得有这个功能相当不错(讨厌将拇指移到屏幕顶部进行导航)。

有什么建议可以让我从我这边修复它吗?

1 个赞

另外,我不确定这是个bug还是什么,但当我创建一个类别列表并将其放在左侧菜单时,当我点击有子类别的类别旁边的下拉箭头时,我会意外地跳转到该类别。

我期望的行为:

  1. 点击下拉箭头
  2. 显示子类别,导航栏不发生变化
  3. 点击上箭头
  4. 隐藏子类别,导航栏不发生变化

实际发生的情况:

  1. 点击下拉箭头
  2. 显示子类别,导航栏跳转到该类别
  3. 点击上箭头
  4. 隐藏子类别,导航栏似乎没有变化

这种情况在桌面端和移动端似乎都存在。

1 个赞

@jimkleiber

聊天插件似乎添加了一个自定义路由 (/chat),而该路由目前不被 Layouts 插件支持。我已经创建了一个报告来记录您提到的问题,我将研究一下我们是否可以支持它。

不幸的是,我认为目前您无法做任何事情来修复它。

是的,这是该小部件目前的预期行为。您首先会被引导到类别,然后子类别才会出现。但是,我将与 Pavilion 团队的其他人讨论更改此行为。

2 个赞

太好了,谢谢!

:+1:

啊,好的,是的,这只是让我感到困惑,因为我通常期望下拉箭头直接下拉,而不会强制进行站点导航。我可以理解如果单击类别标题甚至行会导航和下拉,但有了箭头在那里,它似乎扰乱了我的期望。

2 个赞

我遇到了不一致的移动布局行为,这与浏览器有关。在移动设备上,Chrome 和 Firefox 的底部导航栏都是固定的,滚动时不会切换。在 DuckDuckGo 上,它会切换。我在我的实例上看到了同样的情况,在 thepavilion 上也是如此。

@Mr.X_Mr.X

感谢您分享此问题。它似乎只出现在 DuckDuckGo 上。我会着手解决这个问题。

1 个赞

我似乎找不到 Layouts 插件的“最新”和“类别”上下文,已在两个不同的安装中尝试过。是移除了最新和类别上下文,还是我这边出了问题?

@Mr.X_Mr.X

最新类别不会列在上下文下,因为它们是过滤器。您可以通过过滤器输入字段选择它们,或者将该输入字段留空以定位所有过滤器。

1 个赞