PDA

View Full Version : Can I have a page node do this?


Seraph
03-06-2006, 08:11 PM
Is there any way to make it so page nodes do not show all the extra junk such as $ntitle and $nsubmitted and only have 'stories' show that?

I don't want my legal, privacy, about us, links, 404, ect show up with all the article crap.

myetalk
03-06-2006, 10:00 PM
I don't think this is possible to only have stories do that...

As for now there is only one template for every node...

Seraph
03-06-2006, 11:45 PM
I tried looking in the node php module file but I didn't see anything. Although I don't even know PHP and can do very minor sniplets. I was hoping I could find something that calls the templates I could edit, but the node file is huge.

elmuerte
03-07-2006, 01:02 AM
You can adjust the .theme file
Although that requires knowledge of PHP

Seraph
03-07-2006, 05:50 PM
Is there a way to do an if statement with this in the template? Something like if page = story show $ntitle and $nauthor?

Seraph
03-11-2006, 04:37 AM
I can use this in VB. <if condition="THIS_SCRIPT != 'newthread'">code here</if>

Isn't there something similar for vBDrupal, except what kind of node it is? Comments uses if's so there must be.

Seraph
03-24-2006, 07:51 AM
Anyone????

sifuhall
03-24-2006, 09:22 AM
I know very little about templates, but I will bet that if you asked this at drupal.org someone could help you.

elmuerte
03-24-2006, 09:25 AM
<if condition="$node->type == 'nodetype'">
</if>

'nodetype' is the internal name of the nodes types within drupal, it's not a category thing.

Seraph
03-24-2006, 04:25 PM
Thank you very much! You're awesome. :D