This forum is for assistance with theme development.

phptemplate block.tpl.php, comment

Are there any examples available where people have added these files to their phptemplate theme? I'd really like to do block.tpl.php at the moment, but I'm a little uncertain of everything that I need in it. Thanks.

path alias variable

I've modified chameleon theme and want to be able to insert an image based on the path alias of the page that is displayed. What is the name of the variable which holds the path alias?

For example:

I have created a page with the path alias of overview. I have also created an image called overview.jpg stored in drupal/themes/chameleon/nav_images

In chameleon.theme file I want to insert:

$output .= "img src=\"themes/chameleon/nav_images/".$pathalias.".jpg\">\n";

so that an image with a name that matches the path alias will appear.

How hard is Drupal to theme?

I have a template made out already in HTML/PHP format http://www.atcork.com/beta/preview/check.php .
What I want to know is would it be possible to code a template around this design or am I wasting my time with Drupal as a backend. Are there any better Content management systems for the job?

Quest for multiple-templates

Over the past several days I've been immersed in hacking xtemplates. My goal was to assign templates based upon sections of the Web site. My first inclination was to assign styles based upon the vocabulary of the site, later I decided that for my purpose it would be better to assign styles based upon terms.

I've gotten as far as:

  1. Copying Xtemplages and renaming every reference
  2. Creating the necessary functions to access the "terms" stored in the DB. (wish that I had known about some of the functions in taxonomy.module before hand)
  3. Generating new forms in the theme manager [ /admin/system/themes/mxtemplate ] to assign specific templates to each term.

Where I was headed:

I was hoping to somehow pull the term (taxonomy) of the current page, and match it to the data that I had already collected. If there was a match, I was going to give the page a different style sheet. But I'm not sure if this is even feasible. I realized this when I started poking around more in the xtemplate code. Then I started looking at the URL's that Drupal generates and I realized that you can have multiple taxonomies displayed at the same time. Obviously I'm struggling to understand the different components of a drupal page that gets rendered to a browser.

Displaying invididual blocks only

All blocks are called using tags {blocks}.

How can I display the individual blocks? I know they have their ID's, but I can't find anywhere in documentation how a tag invoking the individual block looks like? How to get some block's unique ID?

Additionally, is there any documentation on the list of Drupal's tags?

Guys, I am sorry - I am the Drupal beginner, and some things are very unclear to me even after fiddling with Drupal for a few weeks... :( Please, give me a hand here...

Displaying invididual blocks only

All blocks are called using tags {blocks}.

How can I display the individual blocks? I know they have their ID's, but I can't find anywhere in documentation how a tag invoking the individual block looks like? How to get some block's unique ID?

Additionally, is there any documentation on the list of Drupal's tags?

Guys, I am sorry - I am the Drupal beginner, and some things are very unclear to me even after fiddling with Drupal for a few weeks... :( Please, give me a hand here...

Pages

Subscribe with RSS Subscribe to RSS - Theme development