Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
Hello - If you are using a Drupal distribution such as Open Public, can you apply a different theme without compromising the other reasons for using a distribution?
What is the best practice when one wants to implement core functionalities into a theme content type?
For instance; when I create a content type of whatever, I can implement modules like Node Embed, and it works for this content type, but is it not working if I make theme content type? Am I missing something here?
To override the default page.tpl.php template in a Zen sub-theme I have placed the overriding page.tpl.php in the templates folder. This worked fine.
Then to restore temporarily the default I have renamed the templates folder and flushed all caches but this
did not work as expected.
The overriding page.tpl.php continued to remain active and to restore the default page.tpl.php was not enough to rename the templates directory but was necessary to empty it or delete it.
I try to modify the rotate.php in /zeropoint/_custom/headerimg. The goal is to enance this script to get on some specific pages a specific background not a random one as like on all other pages. Therefore I want to evaluate the url, node id or the alias of the page.
But what ever I try, I don't get this information.
Has anyone an idea how to get the url, node id or alias of the page in this specific script "rotate.php" by drupal standard function or variable?