Hi there ;).

Is it possible to put tabs under nodetitles in nove full view? It can be easy customized for all other pages in page.tpl.php but... how in nodes?

Thanks in advance, Simon.

Comments

ryivhnn’s picture

Use node.tpl.php?

works at bekandloz | plays at technonaturalist

SimonVlc’s picture

Not an option. Tabs are defined on page.tpl.php. Node.tpl.php can´t use the tabs variable.

Any other idea? Thanks in advance, Simon.

SimonVlc’s picture

Mmm, I´ve looked into the node.module and was unable to found the code that generates the tabs in the node view... I think this is impossible...

sovietfunk’s picture

Yes, it is possible. Just found out myself.

Put something like this in every node template file where you want it.
if ($tabs = theme('menu_local_tasks')) { print $tabs; }

BUT: You also have to conditionally remove tabs from your page template(s), or you'll have double tabs, or they may disappear from other pages where they're needed. Such as user login/register.

SimonVlc’s picture

Thanks sovietfunk, that worked perfectly ;).

callison’s picture

Thank you so much, sovietfunk. I have been trying to do this for days and I just ran across this post and it solved my problem entirely. Thank you very much!