This forum is for assistance with theme development.

Using Tabs.Module for the "Non-Coder"

I have been working on building my first theme for Drupal and its been relatively easy. I am just running up against one wall, implementation of the tabs module (from the jstools module group).

I would like to implement this in 2 places..
1. User Profies
2. organic groups home pages.

I am not a developer, just a graphic designer. Here are more specific questions regarding the use of the tabs API.
-

User Pages

Here is an example of the calls for user fields when building a custom user profile page.
<div class="fields"><?php print $user->name ?></div>

$tabs = theme('tabs_tab_page', t('Bio'), t(test content  .'));
$tabs .= theme('tabs_tab_page', t('About'), t('test content'));
$tabs .= theme('tabs_tab_page', t('Contact'), t('Second page content'));
$tabs .= theme('tabs_tab_page', t('Blogs'), t('Second page content'));
$tabs .= theme('tabs_tab_page', t('Commitments'), t('Second page content'));

$output = theme('tabs_tabset', 'name', $tabs);
print $output;

how you you put them together?

Organic Groups

how would over ride OG in the theme layer and apply tabs to the content types? Each content type appears to be displaying as its own fieldset at the moment.

THank you to anyone would is able to assist me. Your help is appreciated. I am willing to offer a small bounty. DOn't have much, but let me know what you think it is worth. WIll moniter this thread.

In need of a wall...or way to access node vocabulary $vid

How do I get access to a node's vocabulary? I have a block (similar module block) that must be displayed only for nodes that are within a vocabulary regardless of their term and sub term categorisation. Using the block visibility feature in 4.7, how do I display the block only on nodes that are in this vocabulary (called faqs). The vid for the vocabulary is 74. It is a container node type.

Somebody explain this so that I can make a handbook page on how to do it and save alot of walls the pain.

change content-title color

I'm modifieing the box_grey template. I'm working on a test server for the moment so sorry no URL.

I want to change the color of the title
?php if ($title != ""): ?>
h2 class="content-title">
/h2>
?php endif; ?>

So i found this in the css.

.main-content .content-title {
font-size: 2em;
margin: 0 0 1.6em 0;
}

And changed it to:

.main-content .content-title {
font-size: 2em;
margin: 0 0 1.6em 0;
background-color:#00FFFF;
color:#FF0000;
}

css/ javascript expandable menus don't work on 4.6 theme upgraded to 4.7

upgraded to 4.7 cool stuff.

only problem is that when I use my old phptemplate 4.6 theme I get a few errors. Most of them I've ironed out as described over here:

http://drupal.org/node/25297

h2 tag for node titles in blix theme

Currently the blix theme uses h1 tag for the site title and h2 tags for node titles. In an ideal world the node title should be h1 and the site title h2. Easily fixed, until you use the drupal for a blog and you get (eg) 5 teasers on the frontpage. This means you get 5 h1 tags, which is a big NO for seo and will incur a penalty!

Anyone come across this problem? Is there a way of changing the page title for teasers somehow so thye can use h2 tags unless viewing on their own page in which case they use h1 tag?

Missing themes!!!

I had a clean installation of Drupal 4.6.8 with MySQL 5.
After completing the whole configuration properly when i run Drupal, the engine starts but without a theme.
And thus with lots of missing contents on the page! If I manually navigate to the themes page I get the four basic themes out of which only 'chameleon' and 'marvin' work. Other themes 'pushbutton' and 'bluemarine' if selcted the themes dont appear at all.

Pages

Subscribe with RSS Subscribe to RSS - Theme development