Page 1 of 1

Menu: Styling redirecting link

Posted: Wed Mar 28, 2012 7:13 am
by jd447
Hello,

I'm trying to add a class in the menu template to be able to style redirecting link. I tried something like that, but as you guessed, didn't. work:

Code: Select all

{elseif $node->type == 'redirectinglink'}
is there a way to get this variables?

jd

Re: Menu: Styling redirecting link

Posted: Wed Mar 28, 2012 10:16 am
by mcDavid
You can use {get_template_vars} and/or {$nodelist|print_r} to see which smarty variables are available.

Re: Menu: Styling redirecting link

Posted: Wed Mar 28, 2012 11:08 am
by jd447
thanks for the trick...

but i cannot put my hands on the type of node a would need?

i'm looking for the different nodes available in the menu for instance, {elseif $node->type == 'separator'}

Re: Menu: Styling redirecting link

Posted: Wed Mar 28, 2012 6:17 pm
by Dr.CSS
There is this...

{if $node->target ne ""} target="{$node->target}"{/if}