For assistance with theme development.

XTemplate_Tableless issues

On a fresh install of 4.2.0 at Contrast I modified the style and .xtmpl files a bit, nothing that should cause any problems..On loading I get all sorts of errors like

user notice: [XTemplate] parse: blockname [header.IF_has_slogan] does not exist in /home/contrast/public_html/themes/XTemplate_Tableless/xtpl/xtemplate.inc on line 415.

and

HOSTNAME Based Themes For Multiple Sites

Thought I would share my small amount of insite into that which is drupal. To use a single instance of the drupal framework and db for multiple sites I did the following:

conf.php


       Changed "$base_url" to "$base_url = "http://".$_SERVER['HTTP_HOST'];"

       Added 2 new lines:

      $base_url = "http://".$_SERVER['HTTP_HOST'];

      $strHost = explode(".", $_SERVER['HTTP_HOST']);

      $base_host = strtolower($strHost[1]);


common.inc
       Removed all instances of '$base_url' from function url()

       Added 1 line directly after 'include_once "includes/database.inc";'

      variable_set("theme_default",$base_host);



At this point I simply created themes with the corresponding HOSTNAME. For example:

How to create my own template

How do I create my own template? Is php knowledge required? Any other resources on Drupal themes? Any standard?

Thx

site design by year

I have an idea for a site which sounds simple in concept but I need some help to get going.
- the site will be a multi user journal with some news/articles content inserted by an editor
- each year will use a different theme
- the home page should be simple, with just links to choose which years journal you want to read
- the default year would be the current year

Obviously the two basic issues are: forcing which theme to use depending on the year variable, and selecting nodes/comments that were created in the selected year.

Any ideas?

Navigation block customizing

Hi, is it possible to customise the look of the navigation block without going deep into the heart of drupal? I would like that it outputs in a single line as follows:

username: create | view journal | my profile | logout

'create' would go to ?q=node/add
'view journal' would go to ?q=blog/#
'my profile' would go to ?q=user/edit

page link formatting

Using the 'example' theme page links appear in a vertical format, so I assume this is the default. But using 'marvin' they appear in a row. I have managed to work out I can change the delimeter, but don't understand where or how the links appear in a line, and is it easy to overide it so that the links appear vertically?.

Pages

Subscribe with RSS Subscribe to RSS - Theme development