# Layouts Plugin

**URL:** https://meta.discourse.org/t/layouts-plugin/55208
**Category:** Plugin
**Tags:** pavilion, broken
**Created:** [05.Январь.2017 09:41:13 UTC](https://meta.discourse.org/t/layouts-plugin/55208 "2017-01-05T09:41:13Z")
**Posts on this page:** 20
**Page:** 10

<div class="post-metadata">

### Author: ![exetico](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/exetico/32/119962_2.png) [@exetico](https://meta.discourse.org/u/exetico)
#### Post date: [20.Май.2018 06:44:00 UTC](https://meta.discourse.org/t/layouts-plugin/55208/187 "2018-05-20T06:44:00Z")

</div>

Sure. Sorry - I thought that the screenshot was fine.

It’s in the overview, on mobile-layout. (Frontpage). We’ve selected more options (New, Top, Unread ect..), than there can be fitted in the width - but instead of aligning them in a second line below for first, all items is listed on the same line, caused by ‘display:flex’ on ‘.layouts-nav-button’, from ‘layouts.scss’.

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [21.Май.2018 11:55:45 UTC](https://meta.discourse.org/t/layouts-plugin/55208/188 "2018-05-21T11:55:45Z")

</div>

That class isn’t actually being used by the plugin. The css in your screenshot is from Discourse itself (you can see the class there, but it’s not active).

The issue you’re seeing is actually caused by a mobile template override of the `navigation-bar` component which I should have fixed a while ago; sorry about that ☹

[https://github.com/angusmcleod/discourse-layouts/commit/c2f8a17876466fb2d4e352f0d8de2dd3da31acde](https://github.com/angusmcleod/discourse-layouts/commit/c2f8a17876466fb2d4e352f0d8de2dd3da31acde)

You should see the normal Discourse mobile nav in mobile view now.

---

<div class="post-metadata">

### Author: ![nothing](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nothing/32/95750_2.png) [@nothing](https://meta.discourse.org/u/nothing)
#### Post date: [25.Май.2018 05:40:57 UTC](https://meta.discourse.org/t/layouts-plugin/55208/189 "2018-05-25T05:40:57Z")

</div>

[https://github.com/angusmcleod/layouts-custom-html](https://github.com/angusmcleod/layouts-custom-html)

Can we allow the modeling of the html widget to be edited? For microblog, each category is modeler and widget must be arranged in modelers. Is this possible ?

---

<div class="post-metadata">

### Author: ![nothing](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nothing/32/95750_2.png) [@nothing](https://meta.discourse.org/u/nothing)
#### Post date: [28.Июнь.2018 00:21:38 UTC](https://meta.discourse.org/t/layouts-plugin/55208/191 "2018-06-28T00:21:38Z")

</div>

thanks you problem solved

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [29.Июнь.2018 01:54:38 UTC](https://meta.discourse.org/t/layouts-plugin/55208/192 "2018-06-29T01:54:38Z")

</div>

I’ve fixed the style of embedded posts for topics with sidebars. Thanks for reporting that.

[https://github.com/angusmcleod/discourse-layouts/commit/63ea933eeaf89946ec6a75e91b6026b6b353a58d](https://github.com/angusmcleod/discourse-layouts/commit/63ea933eeaf89946ec6a75e91b6026b6b353a58d)

---

<div class="post-metadata">

### Author: ![davisonio](https://avatars.discourse-cdn.com/v4/letter/d/f9ae1b/32.png) [@davisonio](https://meta.discourse.org/u/davisonio)
#### Post date: [13.Июль.2018 08:21:31 UTC](https://meta.discourse.org/t/layouts-plugin/55208/193 "2018-07-13T08:21:31Z")

</div>

`layouts-profile` is currently broken on latest Discourse for me. When a guest user clicks the ‘login’ button it does not show the modal.

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [21.Июль.2018 05:08:33 UTC](https://meta.discourse.org/t/layouts-plugin/55208/194 "2018-07-21T05:08:33Z")

</div>

> [@davisonio](#):
>
> `layouts-profile` is currently broken on latest Discourse for me. When a guest user clicks the ‘login’ button it does not show the modal.

I’ve fixed this: [fix showLogin action for guests · angusmcleod/layouts-profile@4c79571 · GitHub](https://github.com/angusmcleod/layouts-profile/commit/4c79571c0d7c2ae6dc8db19328d8a241da4b1fa4)

Generally speaking the `layouts-*` plugins that contain widgets for this plugin are intended as examples only. I do not actively work on them.

> [@angus](#):
>
> As this plugin is about providing a custom layout infrastructure, further work will be to add more such infrastructure. It will not be to build specific widgets.

---

<div class="post-metadata">

### Author: ![nothing](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nothing/32/95750_2.png) [@nothing](https://meta.discourse.org/u/nothing)
#### Post date: [11.Август.2018 00:02:56 UTC](https://meta.discourse.org/t/layouts-plugin/55208/195 "2018-08-11T00:02:56Z")

</div>

There is also a problem with different HTML for categorization with new update Discourse.

I give each category a different HTML.  
but if the browser is on the page, the HTML of that category appears on the other pages, so the sidebar can not be replaced on every page.  
Would you look at that? The sidebar in each category is not renewed.

---

<div class="post-metadata">

### Author: ![nothing](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nothing/32/95750_2.png) [@nothing](https://meta.discourse.org/u/nothing)
#### Post date: [11.Август.2018 23:33:45 UTC](https://meta.discourse.org/t/layouts-plugin/55208/196 "2018-08-11T23:33:45Z")

</div>

@angus HTML widget does not appear when category link is clicked and categorized (the homepage is HTML see)

but Click on the link post to view category HTML

---

<div class="post-metadata">

### Author: ![nothing](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nothing/32/95750_2.png) [@nothing](https://meta.discourse.org/u/nothing)
#### Post date: [13.Август.2018 16:09:29 UTC](https://meta.discourse.org/t/layouts-plugin/55208/197 "2018-08-13T16:09:29Z")

</div>

will you look at this problem? @angus

---

<div class="post-metadata">

### Author: ![Stranik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stranik/32/85638_2.png) [@Stranik](https://meta.discourse.org/u/Stranik)
#### Post date: [13.Август.2018 18:10:16 UTC](https://meta.discourse.org/t/layouts-plugin/55208/199 "2018-08-13T18:10:16Z")

</div>

Your site swears on it:

`indexOf is not a function`

Many of the plugins you used:

> <https://github.com/paviliondev/discourse-layouts/blob/a07c3683000b8a96c7be631dd925d392e8eccb0f/assets/javascripts/discourse/lib/settings.js.es6#L22>

Sorry I don’t know these plugins. But I can advise the following.

1. Turn off plugins one by one.

To determine the culprit.

1. Some plug-ins use widgets.

Try disabling these widgets and see if the error goes away or not.

Without seeing specific error logs, it is difficult to say something. You need to narrow the search area.

---

<div class="post-metadata">

### Author: ![nothing](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nothing/32/95750_2.png) [@nothing](https://meta.discourse.org/u/nothing)
#### Post date: [14.Август.2018 15:46:47 UTC](https://meta.discourse.org/t/layouts-plugin/55208/200 "2018-08-14T15:46:47Z")

</div>

I tried to passivate one by one I only get these errors while these two plugin are active. I need to solve this @angus  
and as a widget I only use your category widget my friend. @Stranik

---

<div class="post-metadata">

### Author: ![gdpelican](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gdpelican/32/81308_2.png) [@gdpelican](https://meta.discourse.org/u/gdpelican)
#### Post date: [14.Август.2018 22:20:11 UTC](https://meta.discourse.org/t/layouts-plugin/55208/201 "2018-08-14T22:20:11Z")

</div>

Please don’t mention people 3 days in a row; it’s nagging. If I were a plugin maintainer looking to help fix your problem, I’d be very unclear on what’s being reported here:

> [@nothing](#):
>
> Click on the link post to view category HTML

> [@nothing](#):
>
> The sidebar in each category is not renewed.

Screenshots stating specifically what you see and how it’s different to what you expect may help.

It also seems like you’re using an outdated or forked version of discourse-topic-previews, as the line throwing the error on your instance reads

```plaintext
this.$('.topic-thumbnail img').load(function () { ... })

```

whereas the current plugin uses the more correct ‘load’ event

```plaintext
this.$('.topic-thumbnail img').on('load', function () { ... })

```

which was fixed in [this commit](https://github.com/angusmcleod/discourse-topic-previews/commit/b6e7bd88cbd809bf8b26c89385bd785ff3b61c1a) four months ago.

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [15.Август.2018 22:42:08 UTC](https://meta.discourse.org/t/layouts-plugin/55208/203 "2018-08-15T22:42:08Z")

</div>

@nothing I understand that you have a site you’re trying to run, but as the first post, and multiple other posts, in this topic make clear, my policy is to not provide support for plugins that act as widgets in a custom layout (i.e. [layouts-custom-html](https://github.com/angusmcleod/layouts-custom-html.git)), which is the problem you’re having. You should hire someone for that. The Custom Layouts Plugin itself is working fine.

I only have a limited amount of time. If you want ongoing highly responsive support for all your site’s issues you can hire someone. Also, @gdpelican pointed out your bug reports are unclear. I understand that English is not your first language, however it also seems like you can be more descriptive when you want to be, which suggests a lack of effort in your multiple other posts and private messages you’ve sent about this and other issues.

---

<div class="post-metadata">

### Author: ![nothing](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nothing/32/95750_2.png) [@nothing](https://meta.discourse.org/u/nothing)
#### Post date: [16.Август.2018 15:43:39 UTC](https://meta.discourse.org/t/layouts-plugin/55208/204 "2018-08-16T15:43:39Z")

</div>

This plugin previously used to add separate HTML for each category, but now it does not work. My English is bad, but I tried to tell it.

But the HTML I’ve added for the category does not appear when navigating through the category pages.

---

<div class="post-metadata">

### Author: ![nothing](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nothing/32/95750_2.png) [@nothing](https://meta.discourse.org/u/nothing)
#### Post date: [05.Октябрь.2018 01:23:35 UTC](https://meta.discourse.org/t/layouts-plugin/55208/205 "2018-10-05T01:23:35Z")

</div>

After the latest update I think css is broken. Can you check

 ![PNG](https://global.discourse-cdn.com/meta/original/3X/5/b/5b5758f8f9ac6219af2d8c3eebe97d6b1abf0f53.jpeg)

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [05.Октябрь.2018 11:07:53 UTC](https://meta.discourse.org/t/layouts-plugin/55208/206 "2018-10-05T11:07:53Z")

</div>

Do you still have that problem if you use [safe mode](https://meta.discourse.org/t/53504?silent=true) or see it on other sites? Can you share your url?

---

<div class="post-metadata">

### Author: ![nothing](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nothing/32/95750_2.png) [@nothing](https://meta.discourse.org/u/nothing)
#### Post date: [05.Октябрь.2018 11:20:29 UTC](https://meta.discourse.org/t/layouts-plugin/55208/207 "2018-10-05T11:20:29Z")

</div>

Such as on our site also on the producer’s site.

Edit :

```
.main-content.topic.has-sidebars .topic-body {
    width: auto;
    padding: 0;
    border-top: none;
    z-index: initial;
    float: none;
}

```

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [07.Октябрь.2018 05:58:03 UTC](https://meta.discourse.org/t/layouts-plugin/55208/208 "2018-10-07T05:58:03Z")

</div>

@nothing Thanks 👍 Fixed.

[https://github.com/angusmcleod/discourse-layouts](https://github.com/angusmcleod/discourse-layouts)

---

<div class="post-metadata">

### Author: ![exetico](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/exetico/32/119962_2.png) [@exetico](https://meta.discourse.org/u/exetico)
#### Post date: [10.Декабрь.2018 16:00:17 UTC](https://meta.discourse.org/t/layouts-plugin/55208/209 "2018-12-10T16:00:17Z")

</div>

It looks like [layouts-topic-list](https://github.com/angusmcleod/layouts-topic-list) is broken after the latest update - it’s just spinning (loading) and no content shows up 🙂 My own [discordinfo-layout](https://github.com/Nordic-T/layouts-discordinfo) plugin is also half-way broken, after the last update.

Edit: Oh, after looking once again, it looks like it’s changed:  
[https://github.com/angusmcleod/layouts-topic-list/commit/79fca6452f64a2f09856eb3cc202a535273b2534](https://github.com/angusmcleod/layouts-topic-list/commit/79fca6452f64a2f09856eb3cc202a535273b2534)  
Will bookmarks be supported in the new solution?

Edit2: I removed the layouts from out list below Settings \> Layouts, and now i can’t find an option to add the layouts again :\>..

[Предыдущая страница](https://meta.discourse.org/t/layouts-plugin/55208.md?page=9)

[Следующая страница](https://meta.discourse.org/t/layouts-plugin/55208.md?page=11)
