Have you tried using the recent news module that already exists? Its pretty good. example - http://www.mmazone.com.auHi Jaxel,
The update sounds really impressive
Looking at one of the screenshots - It has a block called "Article" - Do you have any more details about this?
Currently im using the "Recent Threads" block to show articles, but if theres an actual block included that does this, that would be great. If this an actual article block, when a new article is added to the portal, is the old article stored anywhere for people to view?
If im barking up the wrong tree, I apologise!
There is no default way to do that... however, this can be done VERY easily with a "sticky post" block.
By default, only Portal and Article pages fit into the Layout Framework. Here you can enable the Layout Framework for various sections of your website. If you enable the framework for a section, you must define a custom layout for that section, or it's global fallback.
If you enable the framework for "Forum", you can start defining custom layouts for each forum individually using "forum-#", where "#" is the node-id of that forum. If it can't find a custom layout defined for a forum, it will look for the fallback layout called "forum".
So, in other words, "forum-3" would the layout for the forum node of 3. While "forum" will be the layout for ALL forums that don't have custom layouts. You can chose not to have a layout called "forum" at all, so that your forums don't have layouts unless explicitly defined.
This looks amazing, great stuffOkay... now this is something special...
View attachment 19056
View attachment 19057
So if I enable the "THREADS" globalization... I can create custom layouts for not only the default thread view, but also individual threads themselves! (a layout of THREAD-7146 will only apply to the thread #7146; while a layout with THREAD will apply to all threads)
View attachment 19058
That can already be done... sort of...Holy crap, with that custom styling for a specific forum/thread all we need is a way to pust custom fields on a post and you could use this as a complete article system or for downloads or for whatever the heck you wanted to.
So...how would that be done? I know you do a ton of work on here, so I guess this is my way of asking without expecting, but do you intend on working on this? I think this would be fantastic addition to the add-on. Thanks!That can already be done... sort of...
What you can do is make a new custom block called "Downloads".
Assign this block to the sidebar on a layout called "THREAD-FORUM-30" (assuming 30 is your downloads forum. The layout will become the default layout for any thread within the forum node of 30.
Then here is where the "sort of" comes in. You need to create a callback function for the block as EWRporta_Blocks_Downloads.php in the appropriate folder. In the getBypass, get the thread information from the layout information... then use existing xenforo functions to get the first zip attachment from the first post of the thread.