This forum is for assistance with theme development.

Selectively turn off caching for specific part of template

Greetings all,

I am building out our theme one region at a time. Currently I'm working on the primary nav menu. Every time I make a change to page.tpl.php or template.php, I have to Flush All Caches from the admin menu in order to see the change. This takes a long time and makes development very slow. On the other hand, if I were to turn off *all* caching that would be slow too.

Rendering Taxonomy

The goal: I want to render the taxonomy separately from the main page content so I can position it where I want. In my case, that's below the book navigation at the bottom of the page.

This works great to remove the taxonomy from the main content:
hide($content['taxonomy_vocabulary_2']);

But then how do I get it rendered? Normal fields are easy, and since the hide function worked, I expected the render function to work too, so I tried:
render($content['taxonomy_vocabulary_2]);

It outputs nothing.

Panopoly Responsive Bartik child theme

I'm wondering if there is a quick solution to creating a Responsive Bartik child theme when using the current version of Panopoly, which uses Responsive Bartik as the base. Problem is Responsive Bartik is embedded inside the Panopoly profile, which may be why my Responsive Bartik child theme does not work. My dot info file identifies Responsive Bartik as the parent, but the parent is not in the usual theme folder. It seems this is a special case that should be explained somewhere but I cannot find any guidance.

Override display template for field_attachment in custom content type

Hi,

I have created a custom content type and added a field_attachment field. I create new content using the New content type and add some files. When I browse the page / node, the files are listed together with very large icons in the top.
I am unable to find out how to override these default settings.

I think I need to create an override file, but how ?

Please help

Conditional statements for hiding empty fields in node templates?

I've been searching for an answer to this for a while now and I could use some help. I'm putting a theme together for D7 and I've got custom node templates adding custom fields into the page working. What I need to do is figure out a conditional statement that looks to see if the field is empty and then hide it ( and the divs around it ) if it is. Is there any easy way to write the PHP to accomplish this in a node template? Logically, I just want it to say

Template marketplace

Hello friends,

I would like to know what template to indicate me
a site type marketplace for drupal 7

Thanks for listening,
Petra

Pages

Subscribe with RSS Subscribe to RSS - Theme development