What am I doing wrong?

bcobin - March 12, 2009 - 18:23
Project:Custom Page
Version:6.x-1.3
Component:Documentation
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Here's my scenario:

I'm using ATCK (Advanced Theme Construction Kit).

I need to change the color of the headings depending on what path I'm on. I'll be creating a bunch of pages, all with paths "program/page."

I've created a template that does what I need to do; unfortunately, D6 doesn't recognize pathnames for phptemplate the way D5 does. In D5, I could have created one single template, e.g., "page-programs.tpl.php" and it would have picked up all the "program" pages. (At least, I'm pretty sure it would!)

I've installed Custom Page and named the desired template "programs.tpl.php" as per the documentation - it doesn't work. The only way I can get what I need is to create an independent template for every page named, e.g., page-node-4.tpl.php. With dozens of pages, this would really be a drag.

Im also confused as to where the print custompage_node_tile( $key, $type = '' ); is supposed to go - in the main page-tpl.php? Do I need it at all?

Is this even the right module to do this? Thank you so much for some guidance here and sorry if these sound like dumb questions - I'm a designer, not a coder... thank heavens for people like you who do all this great stuff - if I could get this to work it would truly rock my world - thank you very much!

#1

irakli - March 24, 2009 - 15:15

Hey,

sorry for a late response. Can you elaborate on what do you mean by "I've installed Custom Page and named the desired template "programs.tpl.php" as per the documentation - it doesn't work"? Does the page show up on the URL or you are getting 404? Did you clear cache?

Custompage inserts custom template in the "content" area of a Drupal template. Are the things you are trying to modify within the "content" area?

#2

irakli - July 24, 2009 - 05:42
Status:active» closed
 
 

Drupal is a registered trademark of Dries Buytaert.