I'm looking for an easy way to change the header-Image adequate to the chosen taxonomy and/or node.
eg.: in taxonomy/term/1 the headerimage should show a photo of me, where as in taxonomy/term/2 there should be a photo of my cat, where as in node/3 there should be a photo of my clique.
What would be the best way to do this? Is there a module or do i have to put it into the sourcecode of the theme?
I need to make several sites on third-level domains and one central site on second-level domain.
Sites must share content.
As I get, each site in Drupal should have its own DB which is defined in its config file in "sites" directory.
I have some experience with Joomla (Mambo). It has no multisite support. But cant I just add a small hack into its code which will use the site-specific config file (and DB defined in it) based on URL? Or it is not just that simple?
>Do you know if there is a way to get info about a user in the template?
>I need to add a link in the page.tpl.php only when no user is logged in.
>The $user seems to be empty.
>
>I'm using Drupal 4.6 with PHPTemplate engine.
I'm not sure if you mean when the users are not logged in, or when there is nobody logged in.
Inserting a link when a user is not logged in can be done by inserting the following in your page.tpl.php or node.tpl.php etc. :
I am using drupal 4.7 and there is a new 'feature' that I want to take advantage of and it is in the "Show block on specific pages". There is now a section for putting in code that returns true, and if so, the page is shown, but I have tried a few things without luck.
I have created a couple of pages in the past on 4.6 that worked ok, but I want to take advantage of the new 'feature'. So if anyone can provide some sample code for that block I would be really happy.
Alright, in my endeavour to evolve from "absolute newbie" to "not-so-absolute newbie" status, I am dabbling with some theme customisation and eventually creating my own theme.
What piqued my curiosity is this: the HTML code ouputted by the templating engines often contains class names with spaces in them (i.e: <div class="block block-block">.
From my limited experience with CSS, I am under the impression that spaces were forbidden in naming classes (and naming anything else for that matter).