I’m creating custom layouts in full node view with the Contemplate module. In the printer-friendly pages, the image icons appear but I have that field disabled in content types>edit story>display fields>print. Now, when I have the default layout, i.e., Contemplate disabled, the printer-friendly pages don’t display the image icons, which is what I want. But, I need to use Contemplate to make full node view presentable. Is there a way I can fix this problem? Thanks.
| Comment | File | Size | Author |
|---|---|---|---|
| print.jpg | 49.6 KB | mariner702 |
Comments
Comment #1
jcnventuraWhen building the printer-friendly page, CCK's build mode is NODE_BUILD_PRINT.
Your Contemplate template is not paying attention to the build_mode, and is displaying everything independently of your CCK settings. Either edit your template to use those settings or simply remove the code that is showing them.
João
Comment #2
mariner702 commentedHi,
I would rather remove the code that is displaying the icons because I don’t want to mess with the Contemplate code I have. It took me forever to create a custom template to place those elements where I finally want to place them. Where is the code I want to remove to hide those icons? Thank you very much.
Comment #3
jcnventuraThe code I mention is your Contemplate custom code that is displaying those icons. It's the same code that is displaying them in the full view, and since Contemplate doesn't care about build modes, you'll either have to add that code or remove them from all views.
I'm moving this to the Contemplate issue queue, as this is really a problem with that module.
João