Advanced Module Manager

No display module if no article published

2 weeks 5 days ago #77842

Laurent From47's Avatar Laurent From47

Hello,

On a cutom module i use this tags to display last article from a category

{articles category="12" limit="1"}[introtext]{if fulltext}[readmore]{/if}{/articles}

Is it possible perhaps with some php conditions to no display this module if any article from category 12 are published ?

Thanks.

2 weeks 5 days ago #77844

Peter van Westen's Avatar Peter van Westen Admin

Try using the 'Hide if Empty' option in the custom module (Advanced Module Manager feature).

2 weeks 5 days ago #77847

Laurent From47's Avatar Laurent From47

Yes it works, thanks