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?
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?
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.
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...
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?