Page 1 of 1

Show default lang or not as required

Posted: Tue Dec 15, 2009 2:08 pm
by woodruff
Hello,

is there a way to use tips and tricks #4 and #9 on different pages of our choice ?

I mean having some pages who call default lang content if current is not ready (maybe with some tag in each language page if necessary), and still having others with the default behavior of not showing if not ready.

Re: Show default lang or not as required

Posted: Tue Dec 15, 2009 6:31 pm
by Peciura
Show default content is property so it can not be set to both values at the same time.
But you can:
1. set show default content,
2. in page extra field specify in what language to show(or not) it
3. in menu and according to that ajust menu template.

Re: Show default lang or not as required

Posted: Thu Dec 17, 2009 12:05 pm
by woodruff
Thanks, it seems a good solution for me, but i'm not sure to understand well   ::)

How should I adjust menu template to do this ?

Re: Show default lang or not as required

Posted: Thu Dec 17, 2009 1:15 pm
by Peciura
There were some topics about restricting menu for not logged in visitors.
Key part of template looks like

Code: Select all

$node->extra1 == 'restricted' 
http://forum.cmsmadesimple.org/index.ph ... #msg182255

If specified comma separated languages to show, use structure

Code: Select all

{if stripos($node->extra1,$lang)!==FALSE }
...
{/if}


Search forum with keyword "extra1" and you will find more examples.