Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
Well as the topic title says, I want to be able to manipulate the link output at theme level without changing any drupal modules and other core functions.
I've themed my view's "list view" with great success, based on the code automatically generated by the views_theme_wizard module. Unfortunately this module currently only provides code for list views and I would like to theme a table view.
Is it possible for someone to post some code that is relatively generic that I can modify to get me going? It would be much appreciated.
I was going through the Theme development handbook. I downloaded and ftp'd the unzipped directory into themes/engines/phptemplate. I noticed that the Drupal install included this template engine, but there were afew more files, so I "upgraded" anyway, thinking there were improvements. I'm using the "pushbutton". This caused a "fatal error" on line 275 of .../themes/engines/phptemplate.engine.
I replaced the files with the ones that came with the original 4.7.3 install, and everything is working again.
I need to know the weight of the parent menu in page.tpl.php to theme the navigation menu. Example if the weight of the parent is 1 to 4, the secondary block is displayed at left:65px, and if the parent weight is 5 to 8, the secondary block is left:300px. Is there a way to know that?
I'm using CCK with imagefield and imagecache to output a teaser view page. All the code is working correctly except that the 'focus_on_thumb' imagefield code is outputting the wrapper divs even if no image has been loaded.
What I need to do is output the image and wrapper divs if an image has been uploaded else print nothing. I know this is done with an else/if statement but I'm not sure how it would work with the current foreach code.