This forum is for assistance with theme development.

menu_get_active_item returns id -141? Huh?

Not doing anything difficult, but I can't seem to get the current active menu id. Here's the function im overriding:

function achieve_menu_item($mid, $children = '', $leaf = TRUE) {
  error_log('menu get='. menu_get_active_item());
  error_log('menu set='. menu_set_active_item());
  error_log('title='. menu_get_active_title());
...
}

results in

Professional theme development- anyone out there?

The company I work for is in the process of getting a new website. I'm pressing hard to get it to be Drupal, since that's my personal preference, and the company strongly uses open source software for most of its business (ISP).

Is anyone out there who does theme development? Right now I'm gathering interest to see if there's anyone out there who does this type of thing. If there is, that will help my drupal push internally.

Thanks!
--falz

Uploaded image in teaser

Hi,

Using the upload.module in 4.7, how can I make the first image I upload for that node automatically appear in the node's teaser and full view in a div floated on the left?

I guess it would be a case of editing the node.tpl.php file, creating a div and inserting some php code in there that references the first item/image uploaded/attached to a node.

Any ideas what that code should be?

Thanks,

Alex

Adding tags to uploads

I would like to add a tag to all attachment links that are listed on my pages. I see this code in upload.module but cannot find out how to add rel="lightbox" to the link.

is the output of menu_tree(15) function similar to the $primary_links ?

I want to apply the css stylling of $primary_links to
a menu with parent id of 15.

So, can I use menu_tree() api function ?
is the output of menu_tree(15) similar to $primary_links, I mean the
array structure?

Thanks a lot,
Enky.

Theme Editor

I know most designers would hate doing theme design in drupal now matter what interface was provided. But theme tweaking (and even porting a html+css site) could be done in drupal directly. Are there any theme editing modules for drupal yet? Is anyone working on anything like this?

Pages

Subscribe with RSS Subscribe to RSS - Theme development