This forum is for assistance with theme development.

A sub menu for each page

Hi I'd ike to display a different sumenu on each page. My site map is for example:

- HOME

- WEBZINE

- RADIO

- SHOP

So on the page called "WEBZINE"

I'd like to display this menu

WEBZINE
// previews //
// discs //
// labels //
// etc //

And on th shop page, something like that :

SHOP
// T-shirts //
// bags and caps //
// other //

Do you know what I mean ?

Images on page

hi all,

Is it possible to place images on a page? i used img tags but without any luck :(
And the image module doesn't work on drupal 4.7.

uploaded theme not showing in admin

anyone facing the same problem that can help me?

i have uploaded the theme under themes/newthemename but somehow it's not showing at the admin.

i have uploaded 5 new themes but only 1 showing. i have changed the CHMOD but still, it doesn't show.

appreciate help! thanks.

Overriding Comment Form Theme, Final presentation Steps...

Hi - I was able to override the _comment_form theme, and return all the form elements back to my new comment_form.tpl.php file.

So the last step... all I really want to do is format the labels, put a curved box around the comments form and use an image for the submit buttons (was a bit more than I could accomplish with just modifying the box.tpl theme). Now that I can see them... How do I go about rendering each of these form elements from my Theme?

Doing a print_r in my page renders the following giant nested array:

Array ( [#theme] => comment_form [#description] => [#submit] => Array ( [comment_form_submit] => Array ( [0] => comment_form [1] => Array ( [author] => gbear [subject] => [comment] => [format] => 1 [cid] => [pid] => [nid] => 67 [uid] => [preview] => Preview comment [form_token] => d26a594ecb1d4b64668be509074b282b [form_id] => comment_form ) ) ) [#validate] => Array ( [comment_form_validate] => Array ( ) ) [#token] => comment67 [#id] => comment_form [#type] => markup [_author] => Array ( [#type] => item [#title] => Your name [#value] => gbear [#tree] => [#parents] => Array ( [0] => _author ) [#weight] => 0 [#description] => [#attributes] => Array ( ) [#required] => ) [#parents] => Array ( ) [#tree] => [#required] => [#attributes] => Array ( ) [#method] => post [#action] => /comment/reply/67 [#redirect] => node/67 [author] => Array ( [#type] => value

Problems with creating template for home page

I am using the PHPTemplate Theme Engine.

On my general settings, I have "index.html" set to default front page.

In my page.tmp.php file, I have the following logic set:

Skin/Theme a node - or is it a block?

Hey all,

I'm a Movable Type guy trying his best not to chuck his computer out the window here. Doing custom "outside-the-box" themes in Drupal is giving me a complete headache! Please bear with me. I've thoroughly searched the forums and documentation, but just can't find an answer that makes sense to me.

I have a standard layout on a page. Various news titles/teasers on the left, and news "bits" on the right. I have my taxonomy set up, so I can use this php snippet to pull out the article categories I want to show:

http://drupal.org/node/31537

So for the news bits on the right, I have this:

$taxo_id_bits = "10"; /* comma seperated list */
$list_length_bits = 5;
$sql_bits = "SELECT * FROM {node} INNER JOIN {term_node} ON {node}.nid = {term_node}.nid WHERE {term_node}.tid in ($taxo_id_bits) ORDER BY {node}.created DESC LIMIT $list_length_bits";
$result_bits = db_query($sql_bits);
while ($anode_bits = db_fetch_object($result_bits)) {
$output_bits .= theme('node', $anode_bits, $teaser = FALSE, $page = FALSE);
}
print $output_bits;

It works, but I want to give them a special theme. I know how to override the node theme, but then my whole page looks like crap except for the news-bits. I am familiar with overrides using template.php - but don't know how to do it here. I have a working "node template" that I'd like to apply just to this news column, and seeing that the news column just appears on the home page, how can I do that?

Pages

Subscribe with RSS Subscribe to RSS - Theme development