This forum is for assistance with theme development.

New theme avaiable for download on Drupal.org

Hi

I just thought I'd mention that I've made and released a new theme for 4.7. It's called Fern, because it's got ferns in it.

It's a 3-column CSS theme which makes only the minimum possible number of alterations to Bluemarine. Its layout makes unaltered use of the output of Alex Robinson's One True Layout generator and therefore can be simply replaced by the site admin.

returning index information of the menu array

Hi Everyone,

I'm new to drupal and this is my first post in the forum. I've searched long and hard for an answer to this and I haven't found anything. I apologize in advance if maybe I didn't search long enough or used the proper keywords to get the answer I'm looking for.

Here is what I'm trying to do.

I'm using 4.7, apache, and a MySQL database, I'm developing my own theme and have based it on the phptemlate engine. For this theme I've got a menu and I've customized the menu_tree, menu_item, and menu_item_link functions to return my menu in an unordered list (so I can style it to the design I've been presented with).

What I'd like to do is be able to find out where I am in the menu array each time the menu_item function gets called. I need to know if I'm at the first index of the array, in the middle or at the end of the array (because I need to spit out different HTML code depending on where I am).

Here is an attempt at an example of what I'm trying to get as an end result:

I've got a menu I've called Main_Nav, simple enough array.. should be something like:

Main_Nav["Home","About Us","Forum","News","Contact Us"]; (though I'm sure it's multi-dimensional and significantly more complicated than that, but you know what I mean)

Drupal builds this:

  • Home
  • About Us
  • ...

page.tpl.php is updated to 4.7? A Quick Question

Hi, I'm new to theming on 4.7.

Is the document below cometible to 4.7 version of Drupal? The website only says: Drupal 4.5 or older Drupal 4.6 at the first line.

http://drupal.org/node/11812

Any help would be appreciated.

strange css errors.. please help!

Okay Ive got two that i can't seem to shake.

look at the primary links in this with IE for windows:
http://www.realenergy.net
each one falls lower and lower than the previous one!
this is 4.6.7 civicspace .8.4 final site.. happened in 4.6.3-4.6.7 as well

again.. primary links are floating too high in this one with firefox for winxp
http://www.plantingpeace.org
this is a 4.7 site

Making the Drupal code indent with your theme

Hi

I was wondering if it is possible to make the code output by Drupal indent along with the XHTML of the page design? I am using a system of tabs to keep a track of parent items, and it would look really cool if the content generated by the CMS was also indented along with the parent items. Any advice appreciated.

Thanks

TinyMCE displaying extra icons in Antique Modern theme

I'm tweaking the Antique Modern theme for Drupal 4.7 and I'm having trouble with the TinyMCE editor. It shows up fine in other themes, and I've had it working fine on other sites, but now it's showing up with a little red rectangle with an arrow pointing up and to the left next to every single button. I can't find anything in the theme that would cause this. Does anyone know what's going on?

Pages

Subscribe with RSS Subscribe to RSS - Theme development