This forum is for assistance with theme development.

Adding to $script based on value of $content

I'm working a little bit with phpTemplate.

In node.tpl.php, the variable $content is available. In page.tpl.php (which wraps the former, I take it), there is a variable available called "$scripts".

What I'd like to do is add a script to the $scripts array *if* the value of $content contains a certain string.

So is there any way for me to make these relate? Or somewhere I can interact with both of them?

Customizing forums

First question, does anyone know how I would display my forum taxonomy, as a block, say in the left sidebar like it appears at time on Drupal.org.

Also, my Forum containers seem to have disappeared, possibly due to the installation of the content_taxonomy module or the category module.
Has anyone else experienced this?

Thanks for any help.

Gunmetal convert to 5.1, please help

Can anyone tell me how to convert the gunmetal theme to 5.1
Thank you.

Different length excerpts?

Is there any way to have different length excerpts on the main homepage? My website is primarily a blog, so ideally I would like to have about the first 500 characters of the latest post followed by shorter excerpts (200 characters?) of the next 3 latest posts.

Is there any simple way to achieve this? Thanks in advance.

Edit my newsletter form.

Hello!

First of all i want to say: i like drupal!

But now my question...

I have installed SimpleNews for a newsletter, the form is displayed on the frontpage only not 100% how i want it...my question is..how can i edit this form? I looked in simplenews.module to the theme_ function but coulden't find it...

Hope you guys can help me..

qnallur :D

How do I add "Read More" to a blog posting?

I'm using

and my summary does break at the point where I insert this tag but my theme doesn't spit out a "Read More" link. What do I need to do to my theme to add "Read More" to a blog posting when someone uses a Break tag?

Pages

Subscribe with RSS Subscribe to RSS - Theme development