This forum is for assistance with theme development.

node template variant feature

I have two node template variants on my local environment. I'd like to get these into code with a feature. My thought is to split them into two features, one for node_template_variant_primarycare and one node_template_variant_hospitals. The layouts use the same content type and share some fields, but the layouts are completely different.

Can someone advise me on the best way to proceed?

Thank you.

Overriding theme functions - for specific content

Hello,

I'm wondering if anyone would know how to override a theme function for specific content. For example: I was to override the theme__form_element function, but only apply it to the node edit form of one content type.
I was able to easily override the function by placing it in the template.php file of my theme.. but that overrides it for all forms. Any way to get more specific?

Thanks!! :)

Creating different templates for different pages

I recently started learning drupal and could use some help regarding creating templates for specific pages.

I'm creating a site in two languages, and have managed to create a simple "about"-page in these two languages (I'm using pathauto, and these can be accessed by /en/about and /sv/om-oss). This works perfectly. The thing is, I want to use a different template for this page (and later on, other pages).

Responsive design help (having trouble)

Hi All,

I've been trying to make a website which is nearly complete into a responsive design. It was decided after the site was built, so I couldn't implement a theme which was already responsive, I had to do it from scratch. I found this article and it made the whole process very simple - http://www.netmagazine.com/tutorials/create-responsive-drupal-theme

HOWEVER, I've encountered a problem. My styles sheets are doing what a I tell them, changing colour and size etc, which is great. But when I 'display:none' certain blocks - which can't fit onto a mobile - they disappear on all the style sheets.

For example, I've 'display:none' the search block on 480.css as it's not needed on a mobile, it then disappears from all sizes of the site - even the largest.

Any help would be great!!

Here is my .info:

name = Framework
description = Framework is a blank canvas for theme developers. Use Framework as a starting point to facilitate your theme development.
core = 7.x
engine = phptemplate
stylesheets[all][] = style.css
stylesheets[all][] = reset.css
stylesheets[(min-width: 480px)][] = 480.css
stylesheets[(min-width: 768px)][] = 768.css
stylesheets[(min-width: 1024px)][] = 1024.css

regions[header] = Header
regions[navigation] = Navigation
regions[highlighted] = Highlighted
regions[help] = Help
regions[content] = Content

Newbie in drupal, need some advices

Hi everyone, I working on this website Tham my vien (using Drupal). Now I place each section of homepage in a block. Is it good way? Are there any solutions for this case (one page website)? Should I create module, pages, articles instead of blocks

How to Hide away Addthis Vertical Floating Bar while Reducing the Screen/Device Size ??

I'm Using Omega Theme. Recently, I added Addthis Vertical Floating Bar which has all the social networking Buttons. Its working well in all the devices which has some big Screens such as 19 inches or more. But, if my website is browsed in a device which has screen size less than or equal to 17 inches, the Vertical tool bar is colliding with the content inside the website. Can somebody help how to keep the toolbar away from the content while the screen size is reduced or the screens with smaller sizes???

Pages

Subscribe with RSS Subscribe to RSS - Theme development