This forum is for assistance with theme development.

Alternating image location

I am using phptemplate for my theme and flexinode for my content. I have a theme file node-flexinode-1.tpl.php which is being used to display my nodes. That all works fine.

My nodes consist of a body of text and an image. I have pages that are using php to select and display my flexinode nodes as a list of teasers. In my css classes I am floating the image so that it appears next to the body of text.

What I would like to be able to do is alternate the side that the images is floated to, so all the odd teasers are float: left and the even teasers are float: right.

Primary and Secondary Links

i am using 4.6 and would like to do 2 things
1) control the primary links based on user and whther th user is authenticated or not. ?Basically show a primary link for "My Blog" if the user has the rights to create a blog and "logoff" if the user is authenticated.

2) Control the secondary links based on primary link.

There seem to be a few posts about how great this is with 4.7 but it not being released i need to use 4.6.

can anyone point me in the right direction?

One other thing, i have used the adc theme which doesn't have a page.tpl.php

OK, I really feel like an idiot, now.

Hi guys.

I installed Drupal on my host about a month ago, and still I got mant problams.
The main one being with my sites Themes.
You see, the new site is a conversion of an older site, and there for must keep with the look and feel of the older site.
So I said to my self, no problam, I'll just build myself a theme that will take care of that, right?

Wrong.

Changing the language used

How can I change the language used in the blocks, such as chatbox, shoutbox and blog, I want to use terms such as solution talk, comments box and news.

I can change the menu/navigation terminology but not the block titles etc.

Rol-based Theme

Hi there,

I'd like to have a template switch, based on a user-role. I red many topics, and tried the solutions mentioned there. But somehow it won't function like i want. Somehow it keeps returning the page-default.tpl.php. I also tried to print the user role variable in one of my templates, but i won't return anything. I got the following code in my page.tpl.php.

Is there a way to hide terms from a certain vocab from the $links array?

Hi,

I've set up two vocabularies, one is used by internal staff only to tag articles into internal groups.

The second is used to categorize articles so users can easily find content by browsing to the appropriate category.

I don't want terms from the first vocabulary showing up at the bottom of each article. Is there a way to use a vocabulary ID to filter terms so only those that help the reader are displayed under each article?

Thanks,
Kevin

Pages

Subscribe with RSS Subscribe to RSS - Theme development