This forum is for assistance with theme development.

Sorry! Taxonomy basics again (an easy one?)

Hi,

I've just had to move my running Drupal website from my test server to my client's production one. His host sucks (it is the spanish Arsys, BTW) and one of the many things I CANNOT do is make use of the rewrite directive for Apache, so no clean URLs! :-(

Well, after a nice and clean work I had to go back to link with variables in the URIs for it to work in their server. They (my client) don't care, I don't either. All menus are back to work and managed to keep the site running BUT...

I am having PROBLEMS to find out the taxonomy term (no more than one term per node) for the nodes, what makes my template, with different structures based on each term, totally spoiled. For instance: I have a node type called event (flexinode-1). Within this node type I have defined the taxonomy term historical, that is, the ones to be filed to all the visitors to see (the 'non-historical events' simply disappear to the visitors eyes as soon as they are outdated).

I get:

  • flexinode-1 - - - $node->type
  • nothing! - - - $node->term
  • node - - - arg(0)
  • the node id (nid) - - - arg(1)

That's all. But I haven't found a way to check if these events are 'historical' or non-historical events to show them differently in my theme.

How much custom work will I need

All,

I've just started out looking at drupal and dived straight into the modules and templates to see how hard it would be to knock up my website using drupal. Unfortunately, I don't think all that much meets my desires as I'm an stubburn person who wants what they want, the way that they want it.

Anyway, I'm after some experienced advise about how much work it is going to be for me to convert my prototype site into a drupal managed website.

The key to the complexity for me is that the menu system doesn't work in a in the same way as a drupal system and there are a number of templates required across the website by section. I've seen some of the modules for themes such as sections, but don't really want to clone all my templates into new themes, just to get things the way I want them as it will be a maintenance nightmare.

The website is just a collection of static templates at the moment, but needs to be ported to a CMS as I won't have a PC with me when I'm travelling the world. The wife also needs to be able to update the site.

You can see the basic site I am refering to at http://www.techlib.co.uk/blog/index4.html

Look at the following pages / menu links to get an idea :

Latest news ( default page )
First or second 'Read More' links on the left hand side

Our Trip
Hong Kong
Lost in Hong Kong
Braving Stanley Market

Photos
Hong Kong
Eagle has landed

CSS Class Selectors

Hi guys,

I noticed that the class selectors used in the themes for Drupal has spaces in the names.

E.g.

<div class="comment comment-new">

Pardon my ignorance but is this kind of selector allowed? How do you define the selector for it?

.comment comment-new {
...
}

Like that???

How can I add a block in the middle (not inleft or right)?

I want a fix block in the middle top to show important event.
but in fancy theme I just add block in left or right.

Popup

Hello ,
can anyone plz tell me what file i need to edit to add a popup .. i would like the popup to appear only on the Frontpage.

thx lots

Display image only on Home page

I'm trying to get an image to display ONLY on the home page. Since I want to place the image above the DIV for page content, I can't simply add it to the home page node. Can anyone suggest a conditional statement I can wrap my image in so it will only be displayed on the home page?

I'm using the PHPtemplate on version 4.7.0

Pages

Subscribe with RSS Subscribe to RSS - Theme development