Taxonomy term name as contextual filter for view
1. Open Views
1.1 Navigate to your View within the Views UI.
2. Add a Relationship
2.1 Under 'Advanced' select Add by Relationships
1.1 Navigate to your View within the Views UI.
2.1 Under 'Advanced' select Add by Relationships
The seach box together with other forms can be modifed as per the article:
http://www.lullabot.com/articles/modifying-forms-5-and-6
Note:
When using this method the encasing <div class="container-inline"> is removed causing the imput box and the submit button not to be inline - the submit button appears below the input box and not to the right.
<?php if (!empty($search_box)): ?> <div id="search-box"><?php print $search_box; ?></div> <?php endif; ?>
The two blocks below are examples of the drupal search box. The first is the stanadard wereas the second has been overriden via the template.php file using the theme function and returning the output from drupal_render() function. The point to note is that the second omits the <div class="container-inline"> which results in the submit button being below the input box.
Below are some links to Druapl ticketing and tracking modules:
Within CCK (Content Creation Kit) activate 'Content Permissions'.
For example, images on a page could be restricted to a role of users whilst the text content is visible to all users.
Therefore only after logging in would the user be shown the complete page.
The module Nodewords facilitates easy management of meta data on Drupal websites.
To set-up meta data for the home page note it's done via the URL path of admin/nodewords/meta-tags/frontpage and not by editing the fields within the content (node) that has been used as the home page.
Using the Drupal menu navigate as follows:
Administer -> Meta tags -> Default and specific meta tags -> Front Page
The example below shows how to execute a shell command from within php script.
The command pwd
executes the current working directory.
<?php $output = shell_exec('pwd'); echo "<pre>$output</pre>"; ?>
Drupal notes
<?
include("../../legacy/program.php");
?>
function YourThemeName_preprocess_page(&$variables) { foreach($variables['node']->taxonomy AS $tax_term) { $variables['wowzers'] .= ", $tax_term->name"; } $variables['wowzers'] = substr($variables['wowzers'],1); }
After entering this in your template.php file the variable $wowzers will be availble for use within your page.tpl.php file.
Please note you can only use one preprocess function per template.tpl.php file.