This forum is for assistance with theme development.

Q: Display node id in body section?

I am trying to display the node id in the body section of my node. I change the input format to PHP code and then insert the following code but it doesn't seem to work.

print $node->nid;

Any help would be much appreciated.

Thank you!

CCK no line breaks and HTML code printed instead of used

Using Drupal CVS.

New lines are created fine in standard node types but for CCK its ignored (So the content in a given field is continuous).

Also tried to use TinyMCE (CVS) with CCK and all HTML tags are printed with no text styling taking place, i.e.

This is <strong>my</strong> example message... and all the text just continutes and continues, even if when editing it, there is a line break or new paragraph. My new paragraph....

Any ideas on how to fix this?

Cheers,

Alex

Theme beta testers requested.

AutoThemes.com (aka GoDrupal.com if we ever get around to building the Drupal site) is requesting beta testers for a new theme series. We have nearly 500 theme for postnuke, phpnuke, autothemes, xoops, mdpro, joomla, osc etc etc. We plan to release 100 or so themes for Drupal -- assuming all goes well. We require beta testers for our first half-dozens Drupal theme conversions. If you are interested, then please email warrick@autothemes.com -- only the first 5 or so responses will be accepted.

Where should css files dor themes be located?

I am working on a new theme that involves changing the background color of the entire site from white to a different color. This includes the white area in events, etc. The problem is that I am being forced to go into css files that are not located in the themes directory. For example, the events table listing pulls it's colors from it's own css file. Also, I am am not even sure where the drupal admin menus pull their colors from yet.

'login or register to post comments' optional placement - howto?

My client asked me to display the known 'login or register to post comments' link, displayed in the bottom of nodes any comments-enabled drupal site, only when the full node is displayed, not in the teaser node-list view.

I am using Phptemplate. Drupal version: 4.6.1. Web server: apache. Browsers: IE/Firefox.

I've tried to modify links.tpl.php, or to override the phptemplate_comment_post_forbidden() function, or to override the phptemplate_links function - but I get into the same problem : how do I tell if this is the full node or the teaser or the main links?

PhpTemplate $directory incorrect?

Sorry if this has been answered already. My quick search didn't turn anything up, and my four-year old is running out of patience with me...

I'm trying to learn how to create a new theme with PhpTemplate. I want to create one main theme with a couple of subthemes, pretty common stuff. However, it appears that the $directory variable always returns the main theme directory. I mean, if I have:

themes/mytheme

And a subtheme:

themes/mytheme/sub1

Pages

Subscribe with RSS Subscribe to RSS - Theme development