• Page 1 of 1
  • 1
Forum moderator: bigblog  
uCoz Community » General Information » First Steps with uCoz » Informer - If nothing outputs then display something (Informer - If nothing outputs then display something)
Informer - If nothing outputs then display something
nitroretroofficial
Posts: 12
Reputation: 0

Message # 1 | 9:16 AM
Hello uCoz Community!

Let's say I have an informer for a blog.

Normally, if there aren't any entries, the informer won't show anything.
I would want to show a <div> or <p> if there aren't any entries shown by the informer.

Is this possible? Thanks. biggrin
joexyz
JOE-vascript
Posts: 1769
Reputation: 78

Message # 2 | 4:22 PM
nitroretroofficial, use this code instead of the original informer code:
Code
<?if(len($MYINF_5$) == 0)?>
Replace this line with the text you want to be shown if there are no entries added in a specific module.
<?else?>
$MYINF_5$
<?endif?>

Be sure to put it using the HTML editor only, not the WYSIWYG one.

hey i'm joe and i do not work for the company anymore, please contact other staff or tech support
icon by ch-chau

sometimes i lurk here
nitroretroofficial
Posts: 12
Reputation: 0

Message # 3 | 4:08 PM
Thanks bigblog, I always forget that you can check the length like that (on uCoz).
uCoz Community » General Information » First Steps with uCoz » Informer - If nothing outputs then display something (Informer - If nothing outputs then display something)
  • Page 1 of 1
  • 1
Search: