Custom Layouts Plugin


(Tobias) #187

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’.


(Angus McLeod) #188

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 :frowning:

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


(Hakan) #189

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 ?


(Hakan) #191

thanks you problem solved


(Angus McLeod) #192

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


(Craig Davison) #193

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


(Angus McLeod) #194

I’ve fixed this: fix showLogin action for guests · angusmcleod/layouts-profile@4c79571 · GitHub

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


(Hakan) #195

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.


(Hakan) #196

@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


(Hakan) #197

will you look at this problem? @angus


(Evgeny) #199

Your site swears on it:

indexOf is not a function

Many of the plugins you used:

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.


(Hakan) #200

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


(James Kiesel) #201

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:

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

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

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

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

which was fixed in this commit four months ago.


(Angus McLeod) #203

@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), 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.


(Hakan) #204

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.