Drupal

eposed filters drupal seo

Printing page titles with views exposed filters - added to contextual filter argument with taxo id + depth....
// singlefilter//

$view = views_get_current_view();
$term = 'all';
$title = 'Fitted Modular Wardrobes';
if (isset ($view->exposed_input['field_carcass_wood_tid_selective'])) {
$tid = $view->exposed_input['field_carcass_wood_tid_selective'];
if (is_numeric($tid)){
$term = $tid;
$term_obj = taxonomy_term_load($tid);
$title = $term_obj->name;
}
}

Drupal tweaks for MySQL optimisation

This is a post for the techies...

When running Drupal its common to be required to optimise Server environments. Many people think of optimisation to be for google search rankings but when we are talking about optimisation of server environments we are referring to; page speeds, database lookup query speeds, essentially PERFORMANCE.

We will use this page to add our customisations as we go along.

Today was MYSQL improvements...

Drupal SEO - .tpl files and SEO

Drupal: Embedding Nodes, Views and Blocks into .tpl files or nodes

With drupal blocks are available to enable non technical users to place various snippets of content in to different pages and regions of a page layout. The only issue with this is that it can cause bloated code and also restricts some styling functionality.

Using template files you can easily place content in custom regions using .tpl files and following methods.

VIEWS:

To embed a view, simply put this code:

print views_embed_view('View Name');

Subscribe to RSS - Drupal