Este componente de tema também mantém o comportamento padrão do lightbox do Discourse, o que significa que clicar em qualquer uma das imagens as abrirá no visualizador de lightbox nativo.
Você pode então definir “meu tema” no exemplo acima como o tema padrão ou torná-lo selecionável pelo usuário, e ele incluirá tanto o Slick quanto o Tiles.
Um grande obrigado a todos que ajudaram ao longo do caminho:
@dax - Botão do editor @cpradio - Traduções dos botões @Mittineague - Manipulador ajaxComplete @simon - Manipulador api.onPageChange @vinothkannans - Expressão regular da URL da página do tópico @sam - Adicionar data-theme-* aos atributos na lista branca
Relatórios de bugs / Sugestões / PRs são bem-vindos.
That’s a very good point @kaefert thank you for bringing it up
I will edit both the Slick and Tiles topics and clarify what I meant.
In the meantime, to answer your question:
Tile and Slick act independently. What I meant to say here:
is that there is no conflict between Tiles and Slick. If you want to use both Tiles and Slick at the same time, you can! You just have to install both of them, separately.
If you install both of the same time, you get something like this in the composer:
And if you use both of them in a topic/post you end up with something like this:
The problem I have about activating both at the same time is that I only can set one as default in the admin settings, and can only select one of them in the user settings.
Can you share a little bit more details? The reason why I’m asking is because that looks like a onebox. This theme component only applies styles to images within very specific structure like so
.tiles-initialized {
// all styles are applied here
}
So it should not have any effect on oneboxes at all.
Does the issue still occur if you disable the the theme temporarily?
1- The Facebook onebox plugin is not supported anymore, you don’t need it.
2- No, there should not be any conflict between the two. Tiles only targets specific images but you have to use the button in the composer to make it work
If you’re not sure, check the OP again and let me know if you need more help.
My guess is that subsequent commits to Discourse addressed the issue.
Are you still facing the same problem?
Even better news is that I tinkered a little bit with both Slick and Tiles and they now have much more targeted firing methods that will only fire when needed. Credit here goes to @vinothkannans for the awesome tip.
So if you’re using either Slick or Tiles or both, please update now and let me know if the problem is still there, or if there are any other issues that need to be addressed.