This forum is for assistance with theme development.

Triggering Conditional display of elements

I'm creating a template, using phptemplate, where I would like certain elements in the the template not to display while a node is being edited.

I can't seem to find a way to determine if the node being displayed is also being edited. Is there a list of global vars available somewhere? I have not found that either.

I want to create something like:

Need some guidance with xtemplate

I am working on a new install of Drupal and have been working on some theme modifications. Since I am new to this system rather than try and create a new theme, I used the Bluemarine theme as a starting point. I created a new folder under the themes folder and copied the existing Bluemarine files into the new folder. So far so good. I have been able to get things close to the way that I want by working with the style sheet and the .xtmpl file.

The problem that I have run into is my columns which contain the blocks have a dark background, the center of the page has a white back ground. So the links that appear on my menu for example look exactly the way that I want them too, they are a light color against the dark background. However in the center of the page any links that appear are hardly visible. I am very determined however and went through and changed some code so that most of the links in the center of the page now have a class associated with them, so I can now control their appearance with my stylesheet. The one outstanding issue for me are the Tabs, I've looked and searched every where it seems and for the life of me, I can't seem to find where the code for the Tabs are defined. To take this issue to a higher level though, I can't seem to find where the xtemplate tags are defined in general, i.e. {tabs}, {help}, {message}, etc

Could someone please help and point me in the right direction? I would also be grateful for any general advice on working with the templates.

Admin Log Date CSS?

I am developing a theme for my site, and so far everything is looking good, except I cannot figure out how to change the date table of the admin log. http://eatsleepgame.com/tables.JPG you can see what I am talking about there. What controls this part of the table?

Thnx, Protoss

Remove the pager

I'm building a custom theme for my website and I want to remove the page numbering at the bottom. I've dug through the forums and couldn't find an answer. I've seen sites where the numbers are gone, so I know it can be done. Any ideas ?

Warren
http://www.warrenonline.ca

How do I fix text colour problems in the "private message" area?

The breadcrumb shows up fine. The rest of the theme looks fine(it's a varient of goofy and can be found here http://halo.celticess.net) but someone sent me a private message(my sons home room teacher amusingly enough). I couldn't see it. I could see my alias and the persons name, the breadcrumb/nav at top and bottom but the text was all black. I can't see any clues as to what the css should have to fix this issue. Is it something in the drupal or common css I need to change and import or can I do it in the style.css?

Image nodes: is it possible to just display the "description" in my teaser (without an image)?

In the teaser, I just want to display the title and description followed by a read more link. (I do not want to display the image in the teaser.) But $content, $node->body and $node->teaser all return the image concatenated to the description. How can I return just the description?

Pages

Subscribe with RSS Subscribe to RSS - Theme development