Elementary Layout Component

AI-generated summary

The Elementary Layout Component, introduced by meghna, enables forum staff to switch their topic list to a two-column layout—similar to the Elementary theme—while preserving their custom theme elsewhere. The layout displays key topic details under the title, with the “Last Post” column showing the latest poster and date. A preview and install button are provided.

Users inquire about compatibility: jrgong asks about the Topic List Previews plugin, to which meghna replies it’s incompatible due to conflicting styling. anon82467725 asks about the Search Banner component, and meghna confirms compatibility.

Zup suggests adding admin toggles for extra info like “views.” rahim123 praises the component as a viable alternative to the unmaintained Sam’s Simple Theme, requesting it be enabled by default for all users—not just staff.

However, RGJ reports a JavaScript error: ReferenceError: can't access lexical declaration 'x' before initialization, indicating a possible bug in the component’s code. Despite its promise, users should be cautious of potential compatibility and stability issues.

This component allows forum staff to change their topic list formatting to two-column layout (as seen in Elementary theme) while keeping their custom theme for rest of the forum.

This two column topic-list layout tries to cover all the basic information of a topic under topic title, and the “Last Post” column contains last poster details and last posted date.

Enjoy, and do let me know how to further improve this component. :slight_smile:

Install this theme component

19 Likes

Great work!

Is it compatible with Topic List Previews plugin or theme component?

1 Like

Does it work with this theme component?

1 Like

No, this component will not work with Topic List Previews plugin since it also modifies topic list styling.

Yes, this component will work fine with Search banner component! :slight_smile:

3 Likes

would love to have admin toggles for additional information such as ‘views’

1 Like

This theme component looks like a great alternative to Sam’s Simple Theme, which is the only theme that shows the name of the OP and most recent poster in text format. Unfortunately Sam’s Simple Theme appears to be completely unmaintained and pull requests to fix broken elements in it are not being handled. So I wonder if this theme component could be enabled together with the Discourse default theme for all users/visitors by default, not just staff? Thanks a lot!

This theme component seems to be broken

Uncaught (in promise) ReferenceError: can't access lexical declaration 'x' before initialization
    default chunk.46db2789b14251f87ab9.d41d8cd9.js:18
    initialize add-topic-list-class.js:11
    initialize chunk.46db2789b14251f87ab9.d41d8cd9.js:1
1 Like