Plugin de 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 curtidas

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 curtidas

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 curtida

Acabei de adicionar este plugin outro dia e gostei muito. Personalizei um menu móvel que parece ajudar muito. Infelizmente, notei que o menu móvel não parece aparecer com o novo plugin de chat. Anexei capturas de tela abaixo (mascarei o logotipo do site e os tópicos de chat por motivos de privacidade; também personalizei o plugin whos-online para ficar nesse local, não é o padrão).

Na página de pesquisa e outras páginas, está tudo bem:

Mas na página de chat (que aparece após clicar na bolha de chat no menu do cabeçalho), ela não aparece mais:

Não é muito urgente, no entanto, com o novo recurso de chat, acho muito bom tê-lo (odeio mover o polegar para o topo da tela para navegar).

Há algo que você sugere que eu possa fazer para consertar do meu lado?

1 curtida

Além disso, não tenho certeza se é um bug ou não, mas quando crio uma Lista de Categorias e a coloco no menu lateral esquerdo, ao clicar na seta suspensa para as categorias que têm subcategorias, sou levado involuntariamente para a categoria.

O que eu espero:

  1. Clicar na seta suspensa
  2. Subcategorias são reveladas e a navegação não muda
  3. Clicar na seta para cima
  4. Subcategorias são ocultadas e a navegação não muda

O que está acontecendo:

  1. Clicar na seta suspensa
  2. Subcategorias são reveladas e a navegação muda para essa categoria
  3. Clicar na seta para cima
  4. Subcategorias são ocultadas e a navegação não parece mudar

Parece acontecer tanto no desktop quanto no mobile.

1 curtida

Olá @jimkleiber

O plugin de chat parece adicionar uma rota personalizada (/chat), que atualmente não é suportada pelo plugin Layouts. Criei um relatório sobre o que você mencionou e verei se podemos dar suporte a isso.

Infelizmente, não acho que haja algo que você possa fazer para consertar isso no momento.

Sim, este é o comportamento esperado atual do widget. Você é direcionado para a categoria primeiro e depois as subcategorias aparecem. No entanto, discutirei com o restante da equipe do Pavilion sobre a mudança de comportamento.

2 curtidas

Excelente, obrigado!

:+1:

Ah, ok, sim, isso só me confunde, pois normalmente espero que a seta suspensa simplesmente se abra sem forçar uma navegação no site. Posso entender se clicar no título da categoria ou mesmo na linha navegaria e abriria, mas com a seta lá, parece que isso atrapalha minhas expectativas.

2 curtidas

Estou a experienciar um comportamento inconsistente do layout móvel, relacionado com o navegador. No telemóvel, tanto o Chrome como o Firefox têm a barra de navegação inferior fixa, não alterna na rolagem. No DuckDuckGo, ele alterna. Estou a ver o mesmo na minha instância, mas também no thepavilion.

Olá @Mr.X_Mr.X,

Obrigado por compartilhar este problema. Parece que ele só ocorre no DuckDuckGo. Vou investigar para resolver isso.

1 curtida

Não consigo encontrar o contexto “Mais Recentes” e “Categorias” para o plugin Layouts, tentei em duas instalações diferentes. Os contextos mais recentes e de categoria foram removidos ou há um erro da minha parte?

Olá @Mr.X_Mr.X,

Mais recentes e Categorias não seriam listados em contextos, pois são filtros. Você pode selecioná-los através da entrada Filtros ou deixar essa entrada em branco para segmentar todos os filtros.

1 curtida