Featured articles only ...
Ever want to have specific layout/styling of an article for the front-page of your website? And accomplish this without having to create a separate content type? Welkom the $JOOMLA_FEATURED template variable.
The reason this works is because every time you feature/un-feature an article in the F2C article manager, the article is re-saved and thus re-rendered. Please note that the changes of the featured articles willl also be visible in normal category blog layout (or other views for that matter).How to use:
This is the simple Smarty code. I added an extra couple of lines so you can see how to combine the code.{if $JOOMLA_FEATURED}
.... Homepage layout ....
{elseif $JOOMLA_CATEGORY_ID|contains:"8"}
.... Joomla Category 8 layout ...
{else}
.... all other articles .....
{/if}