This forum is for assistance with theme development.

Garland subtheme issues and Notice: Undefined index: #secondary

I am building a new site and based on a Garland theme I create my own theme. I am seeing the following error message on all the pages and hoping someone can help me how to fix it.

Notice: Undefined index: #secondary in mysubtheme_preprocess_page() (line 60 of /home/sevensp/public_html/sites/all/themes/mysubtheme/template.php).

How to check author role in node in drupal 7?

I'm creating a blog. And this has an author shown.
I added roles on certain authors.

I want to check the author's role via the template.
So I can post different text's based on an author's role.

Code below doesn't work. But that should explain u a bit, what I want.


global $name;

if (in_array('guest', $name->roles)) {
 
 <p>Show this text</p>
  
}

I only know basic programming, that's why I love Drupal.
Thanks in advance.

Omega Theming

Hi all,

Please could someone look over my knowledge and correct/direct/redirect where appropriate?

Theme the display of a content type with an exposed filter

Hi!

I have to customize the display of a content type. This content type items (multiple nodes) will be listed in a sortable table and a complex filter will be added in the same page for narrowing the results. There will be a lot of items in the table, and it may take a multiple page + a pagination to display everything.

Which way to go ?

1. Building the filfter and the table in two different views. Assembling the views in a page.
2. Theming the content-type.tpl.php page with php code

Thanks in advance for your help!

Blocks disappear from custom regions

Hi all,
I, and from the looks of it, a number of other 7.x users are having a problem with blocks disappearing in custom-defined regions in our themes. In my case, I created a home page template, with a number of custom regions. The blocks used by these regions include a number of custom blocks using views and widgets, and the pre-packaged 'Recent Content' block.

Every morning, when I go to check on my site, the block assignments for those regions are gone and I have to reassign them. They remain in their assigned regions throughout the day, and late into the night. Then, when I look at the site first thing in the morning, they're gone and I have to reassign them. This only happens with my custom regions, and does not impact any others.

I built my theme off of the Zen theme, and added the custom regions to the .info file for both the Zen and custom theme. These regions also consistently display in the Blocks assignment page, even when the assignments to them are cancelled out. One theory I had is that it might have to do with my caching settings, as I am still in the development stage I had not starting caching my theme, and had it rebuilt every time the page refreshed. However, after doing so, this problem continues.

Drupal Twitter Bootstrap CSS Module for any Drupal Theme

Hi, has anyone created a module to include the latest Twitter Bootstrap CSS and Javascript libraries to any Drupal theme?. The idea behind will be to quickly link the latest Bootstrap CSS and Javascript to all pages, regardless of the Drupal Theme. I know there is a plugin in Wordpress for that (http://wordpress.org/extend/plugins/wordpress-bootstrap-css/) but I only see themes designed with the bootstrap framework for Drupal. Thanks.

Pages

Subscribe with RSS Subscribe to RSS - Theme development