Menu: Styling redirecting link

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
User avatar
jd447
Forum Members
Forum Members
Posts: 134
Joined: Wed Jun 20, 2007 7:06 am

Menu: Styling redirecting link

Post 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
mcDavid
Power Poster
Power Poster
Posts: 377
Joined: Tue Mar 31, 2009 8:45 pm

Re: Menu: Styling redirecting link

Post by mcDavid »

You can use {get_template_vars} and/or {$nodelist|print_r} to see which smarty variables are available.
User avatar
jd447
Forum Members
Forum Members
Posts: 134
Joined: Wed Jun 20, 2007 7:06 am

Re: Menu: Styling redirecting link

Post 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'}
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Menu: Styling redirecting link

Post by Dr.CSS »

There is this...

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

Return to “Layout and Design (CSS & HTML)”