This forum is for assistance with theme development.

Testing if a node will be loaded from within page.tpl.php

I'm looking for a method to check in page.tpl.php is the current page is a displaying a node.

When a node is displayed, node.tpl.php will be called wich contains an adsense code block, therefore I want my other adsense block in page.tpl.php to only show on pages where a node+adsense is not already there.

I was hoping this can be done similar to the way you can test what sort of user is logged in, that would be convenient: http://drupal.org/node/13266 .

Any ideas?
JR

getting flexinode 4.7 to recognise nodes made in 4.6

Where do they hide the flexinodes in 4.7? :)

I made a flexinode thingi in 4.6 for a content type, and after upgrading, the content is still there but I can't find where to edit it, and looking in the content type of the administer menu, it's not recognising flexinodes created in previous versions. I created a new type and of course it called it flexinode-5 (rather than -2 which is what the original one is).

So do I have to make a new one to get it to recognise or have I just not found the thing that lets me edit them?

thanks :)
fyn

break tag in custom node.tpl.php

Hi,

I created a new content type using CCK and I am customizing the nodes using a copy of node.tpl.php. One of the fields in this content type is called Description and I would like to be able to use the

Newspaper theme and modules

Hi
I'm quite new to Drupal, but really pleased about it so far. After browsing the web, I came across the site theonion.com wich is said that it is based on drupal. Anyone who know what modules they use? How do I set up all these "sections"? Are there any video-tutorials or some good place to start?
One of my bigges problems is probably the lack of php knowledge (I'm a webdesigner), but maybe there are some code to share?

Nice going, keep up the good work! :)

Two Columns for SpreadFireFox

Is there anyway to achieve this: http://drupal.org/files/issues/twocolumn.png when none of the left blocks are selected? Currently, the blocks dont show but the space is still occupied. Any help appreciated. Thanks, Ivan

Creating custom "options" for templates that are controllable in backend in phptemplate

Such as the option to turn mission statement display on and off, I would like to create an option to turn certain blocks on and off like that, such as all ad-containing blocks or all blue blocks or whatever, is this possible in phptemplate?

Pages

Subscribe with RSS Subscribe to RSS - Theme development