XF 2.2 Date block and Shorter articles

RuuDarling

Member
Hello,

I was hoping if someone could help me figure out if this is possible. I have a custom homepage that displays specific threads and whatnot, and I want the threads to show up shorter with a "read more" button at the bottom. I also want there to be a way to display a date block on the side. I'm not entirely sure if this is an extra.less situation or if it's an addon or something else entirely. I have a few examples of what I mean;

So this is my current homepage
To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.

I would like the threads to not be so long and have something at the bottom like this, as well as display the date on the side as shown;
Screenshot 2023-09-26 170737.webp

Thanks in advance!
 
Is the custom home page an add-on or a page node?

How are the threads inserted?
Programmatically or manually?
The homepage isn't an add-on, it's done through the Nodes using the Page thread
1695742379206.webp

I've manually messed with it so the template HTML looks like this;
<xf:h1 hidden="true" />

<xf:widget key="forum_overview_members_online" position="sidebar" />

<xf:widget key="discord_widget" position="sidebar" />

<xf:widget key="forum_overview_new_posts" position="sidebar" />

<xf:widget key="forum_overview_share_page" position="sidebar" />

<xf:widget key="prefix_limit_threads" />

<xf:widget key="prefix_limit_threads2" />

<xf:css>
.p-breadcrumbs {
display:none
}</xf:css>

Off-topic but if there is an add-on somewhere as well to make custom pages, that'd be neat too.
 
Presumably the widgets adding the threads to the main body are prefix_limit_threads and prefix_limit_threads2 ?

Are they using the new threads widget?

If so, have you tried changing the display style?
 
Presumably the widgets adding the threads to the main body are prefix_limit_threads and prefix_limit_threads2 ?
Yep!

Are they using the new threads widget?
I think so. They use new threads specific to their prefixes, so the "Announcement" prefix is always shown on the homepage and updates when a new thread with that prefix is put out.

If so, have you tried changing the display style?
I'm not sure what you mean by this (I'm also still relatively new to fidgetting with Xenforo, excuse me)
 
Top Bottom