Hello there!
I'm having a rough time here trying to theme the output of a print page for my project node.
For starters I don't want to print the stormtask and stormticket icons. How can I get rid of them in print.node.tpl?

And second, I want to add some info from the corresponding stormorganization node: address, email, taxid, phone.

I know all these are variables, that are somewhere in the database. I've used before the excellent computed_field to pull and insert cck fields, but here I just can't find out... :-(

Can somebody point me in the right direction?

Thanks in advance!
Warm regards from sunny México!
:-)
José

Comments

pepemty’s picture

Title: Themeing project print page » Themeing stormproject print page
juliangb’s picture

There is a setting for all storm icons as part of the settings page (this is a storm-wide setting).

Also, you might want to consider views or a custom theme function to customise the layout.

To include variables from the org as part of a custom theme function, do a node_load() on the organisation nid and you will have all of the fields in that object.

Does that solve your problems?

pepemty’s picture

Thanks for your reply!
Oh! I don't have a problem with the icons, except in the print version.
Well, I guess the node_load() tip should do. Problem is I'm not a coder so I'm not really sure of what you're suggesting. Any other thing I can do?

Nonetheless, views might be an answer.

Warm regards from sunny México!
:-)
Pepe

juliangb’s picture

Status: Active » Fixed

Sounds like this support request is fixed - the answer to have a play around with views if you arent a coder.

Let us know how you get on.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.