This forum is for assistance with theme development.

Name of a tpl.php file

I really skinned the whole forum by using the search function and don´t found any topic which seems to help me.

I need to change the content of a content-type.

To do this i am writing a tpl.php - file but i don´t get the right name, so that the file is working

content type is: simplenews

I tried:
node-content-simplenews.tpl.php
node-simplenews.tpl.php ... which effects all content types not only simplenews
simplenews.tpl.php
node-content_type_simplenews.tpl.php

If anyone please could help me.

open

I'm having problems with a new theme. I changed two images and now I get a big red box:


* warning: main() [function.main]: open_basedir restriction in effect. File(/usr/share/pear/templates.php) is not within the allowed path(s): (/home/httpd/vhosts/domain.org/httpdocs:/tmp) in /home/httpd/vhosts/domain.org/httpdocs/themes/siteground8/page.tpl.php on line 27.
* warning: main(templates.php) [function.main]: failed to open stream: Operation not permitted in /home/httpd/vhosts/domain.org/httpdocs/themes/siteground8/page.tpl.php on line 27.
* warning: main() [function.include]: Failed opening 'templates.php' for inclusion (include_path='.:/usr/share/pear') in /home/httpd/vhosts/domain.org/httpdocs/themes/siteground8/page.tpl.php on line 27.
* warning: main() [function.main]: open_basedir restriction in effect. File(/usr/share/pear/templates.php) is not within the allowed path(s): (/home/httpd/vhosts/domain.org/httpdocs:/tmp) in /home/httpd/vhosts/domain.org/httpdocs/themes/siteground8/page.tpl.php on line 62.
* warning: main(templates.php) [function.main]: failed to open stream: Operation not permitted in /home/httpd/vhosts/domain.org/httpdocs/themes/siteground8/page.tpl.php on line 62.

How can I theme the BODY field of a CCK node?

I've been trying to do the least amount of custom code for my theme, but I'm struggling to theme the body field before it is output. What I want to do is place a

        <div style="clear:both;"></div>

before the body field to make it drop down below an image field that is shown in the earlier fields. Of course I could place this line in the body text itself (yes this works) but its kind of an ugly solution.

connecting a second style sheet to the theme?

Hi guys, I am new to using drupal, but to new at using cms's. Drupal and the way it works is still confusing to me at this point so am hoping you can point me in the right direction here.

I need to use two different style sheets. The style.css will have all the regular style stuff, but I am also going to have a placement.css file.

How do I get the page.tpl.php to use the second style sheet? Do I just add:

below

or is there some other things that need to be done for everything to work correctly?

Thanks for any help here.

Problem loading drupal THEME

I have a web site built using Drupal. There are two type of users.

User 1- theme 1 (parent)
User 2- theme 2 (kids)

While i am logged with USER 2 and i am trying to acces some liks the theme changes with the one from USER 1. The main problem is that this happens RANDOM.

Can U help ME?????

Different template for vocabulary index pages

When you go to the index page of a vocabulary (/vocab1/ for example) you see a list of the nodes in that vocabulary with a teaser, the term they're in, etc. I would like to customize this so a list of terms contained by the vocabulary is visible rather than a list of the nodes. This makes taxonomy easier to browse. The problem is that I've got no idea at all how to implement this. Vocab pages don't have actual node types (are they nodes anyway?) and I cannot think of another way to do it.

I hope you people can help me with this.

Pages

Subscribe with RSS Subscribe to RSS - Theme development