Custom Layouts Plugin

Hmn, just want to create somethink similar like mems site.There is always ranking of Top Week/Top Month/Top year most like pages/images by facebook button or similar social zone

Sorry, I’m still unclear about what you’re after. Maybe PM me some more details.

1 Like

I can use plugin layouts to format posts my website like this site or not.

To like this site.

Thank you.

What you’re after is better pursued through Topic List Previews itself, rather than Custom Layouts. I think @dalerka has used TLP to achieve a result similar to that.

1 Like

If you are trying to build a marketplace maybe it is better to search for another open-source solution I’m no expert here, so you’ll have to do your research based on your needs. Take a look at Sharetribe.

If you want to do it with Discourse you’ll have to invest a lot of time in customizing CSS, and maybe custom logic with JavaScript and Ruby.

Also for data-fields like $Price search here on meta for “custom fields

(just in case) you can hire someone like here:

For your other questions (not directly related to this plugin) creating a new topic might be better. :wink:

2 Likes

Thanks for the good advice.

1 Like

just did a web-interface upgrade. this may have blown up my forum. FYI.

1 Like

And removing the plugin and rebuilding fixed it.

1 Like

@8BIT My apologies. You should be good to go again now.

https://github.com/angusmcleod/discourse-layouts/commit/fb88287b001884b915ab24924f88eb40d3dda1a2

3 Likes

@angus
I installed the plugin.
Enabled it.
Went to plugin settings and then enabled left and right sidebars. Added routes like latest, topics, tags etc.
Went to categories -> settings -> enabled left and right sidebars for some routes there too.
I came back to the homepage, I can see that, it created space on the left and right side.
But nothing is showing up in the space. In other words, I can see the sidebar space for left and right sidebar but nothing is showing up there. Yes, I added stuffs there to be shown like latest, tags, topics etc.

Do you know what I might be doing wrong here?

You need some widgets. This plugin doesn’t come packaged with any widgets. A widget will typically live in a separate plugin. The selection of routes in the layouts_sidebar_left_enabled and layouts_sidebar_right_enabled settings determines where the sidebars appear, not what appears in them.

The first post gives a bit more detail on all of this, e.g.

3 Likes

Since the navigation widget link is 404, and your subsequent comment about using custom html widget instead, does it mean the navigation widget is gone for good? thanks.

No, it’s just been moved again, and subsumed into another plugin. If you’re interested in using it I can create a separate plugin. It’s basically just a wrapper for the map-widget in the locations plugin.

https://github.com/CivicallyHQ/civically-layout/blob/master/assets/javascripts/discourse/widgets/civically-navigation.js.es6

1 Like

Yes. Most interested. If I understand correctly, its a place to display the map for the category being displayed? And if there is no map in that category, just leave blank?

Thanks.

How i can add google adsense banner using this plugin ?

I recommend that you use the Unofficial Google AdSense plugin instead.

1 Like

Any luck with this? Thanks!

I’ve added a layouts-map widget to the Locations Plugin.

https://github.com/angusmcleod/discourse-locations/commit/422b583584fa02f7b2df42bdfd070c97ad262c5e

See e.g. https://discourse.angusmcleod.com.au/c/locations/layouts

If you have both the Custom Layouts and Locations Plugins installed, layouts-map will be available in the Layouts admin area and the category-specific layouts widget settings.

The locations displayed on the map will be:

  • No category: All locations.
  • Category: Locations in that category.
  • Topic: Topic location.

The widget itself is controlled like any other custom layouts widget, by category-specific or site-wide route settings.

There are also two site settings relevant to the widget:

  • location layouts map search enabled: Enables the map-search functionality.
  • location layouts map show avatar: Display’s the user’s avatar in the top left corner of the map.
3 Likes

Thanks Angus! I installed it and it works well. One question- Do you think we can style the layout and map size via CSS, or is it pretty much set by the plugin? specifically, with the map, the topic list got squished, though the browser window still has a lot of space to utilize horizontally. so i am thinking about using CSS to put the map in those unused space instead. secondly, using CSS to make the map bigger, like taller in height, for example.

Thanks.