This forum is for assistance with theme development.

Zen, Zen Grids, CSS, SASS, COMPASS (General Question)

Hi,

What I am looking to accomplish:
I want to convert my site's layout to a Grid Based Responsive Theme. After a reasonably exhaustive search, I have chosen the Zen theme - it seems to be the most popular. Prior to this I was using the Lexi-Responsive Theme. I am still open to suggestions, if there is a better solution out there. I am not a professional Drupal developer, but I know CSS and HTML and have recently learned a large amount of Drupal so I can find my way around.

Views AJAX not work in block node.tpl

Hello! i have some block with sorting exposed filter on region "tab" and i show his in node.tpl like this:

print render(block_get_blocks_by_region('tab'));

In my block i not have any problem with AJAX in paginator. But my sorting exposed filter not work at all.

After several hours testing i figured out what my block works ( AJAX sorting filter + paginator) if i show his in any another region on page.tpl.

rollover in views field view

Hello everyone I have a view with the following code:

<?php if (!empty($field->separator)): ?>
    <?php print $field->separator; ?>
  <?php endif; ?>


  <?php print $field->wrapper_prefix; ?>
    <?php print $field->label_html; ?>
    <?php print $field->content; ?>
  <?php print $field->wrapper_suffix; ?>
  
<?php endforeach; ?>

the view is composed of a field field_photo and field_title

New to Drupal

Hi,

I'm totally new to Drupal - I'm trying to build my first website something similar to this one http://photoworldnews.com/
I'm not sure whether is a Drupal theme or not but is there any place I can buy ready themes like this one?

Thanks

how to get select option name from field value

in node.tpl.php
I can get the select option value by:
$colorid = $node->field_color['und']['0']['value'];
---
like:

red
blue

but how to get the name red or blue?

how to suggestion page content type

function bartik_process_page(&$variables) {
$variables['theme_hook_suggestions'][] = 'page__product';
.....
}

above, I can suggestion page--product.tpl.php
but it is static.

if product is a content type name, then how to suggestion it dynamatic?

I can not get the node type in function bartik_process_page(&$variables) .

Pages

Subscribe with RSS Subscribe to RSS - Theme development