Drupal - node.tpl.php by Node Id

Q: How can I override my theme's node template file, node.tpl.php, just for one specific node id?
A: In your theme, override phptemplate_preprocess_node() and provide a template suggestion for 'node-[nodeId]', and then flush cache.

It is easy to provide an alternative node.tpl.php template for your different content types by naming your new node template file along the lines of node-[nodeType].tpl.php, placing it in your theme folder and then clearing you cache. Drupal automatically handles all of this for you.

Drupal - Page Template for Node Type

glove

Q: How can you easily specify an alternative page template to be used when displaying a node of a particular content type in Drupal 6?

A: Use the Node Template module, supply an alternative page template file in your target theme folder and configure your content type to use this new template.

Drupal Camp Belfast

DrupalCampBelfast is an unconference-style Drupal training event, founded in the style of BarCamp. While there are some differences (DrupalCamp does more pre-planning on the sessions), they have the common goal of bringing people together in an environment that is accessible to everyone.

Drupal, Views and Taxonomy Redirect

If your web site is giving you trouble with views not respecting the taxonomy redirects that you configured with the taxonomy redirect module when using views to format your taxonomy term pages (via the taxonomy_term view) then take a look at this patch:

http://drupal.org/node/521954

It's a Lifesaver!!

I am in a bit of a rush to explain it fully now, but I hope to revisit the subject soon, if I have the energy that is (after fighting with breadcrumbs in drupal again!!)

Drupal, Remove Preview Button

Q: How can I completly remove the 'Preview Button' from (some or) all of my node type and associated comment forms in Drupal 6?

A: Use the Jammer module and configure it to remove the preview button from the desired node types.

Drupal, Hide Menu Item by User Role

Q: How can I arrange for the visibility of certain menu items to change based on the logged-in user?
A: Use the most excellent 'Menu per Role' module and then configure your menu item's settings in the 'Restrict access permission' section.

Drupal, Remove 'Submitted by' Text

Q: How can I remove the 'Submitted by' text that is always displayed with my CCK type?
A: Go into the Administer, Themes screen, click on the 'Configure' tab (/admin/build/themes/settings) and then un-check the 'Display post information on' checkbox for your Node type.

This post once again deals with how to re-configure some of drupal's default behaviour so that your website more closely matches your target web design.

Magento-Drupal, Drupal-Magento!

Wouldn't it be great if you could merge the best Content Management System with the best e Commerce system going? Sound too far fetched? Well it's something we've been looking into, mainly because the usefulness of something like this would be simply mind blowing.

Drupal - Display Fivestar on CCK Node with content template

Q: How do I get the fivestar widget to display on CCK nodes when using a content template to format the CCK type, I have enabled it for my type but the fivestars widget does not show up at all?
A: If you're using a content template to display your CCK node you have to explicitly add code to display the fivestar widget by outputting the contents of: $node->content['fivestar_widget']['#value'];

Pride on FacebookPride on TwitterPride on TwitterPride on Twitter

Join Our Newsletter

* indicates required

Irish Internet Association

finalist.png
phone-number.png