Context HTML tags

Component ID

1333420

Component name

Context HTML tags

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

Description

Context HTML Tags module - use this if you want change some html tags depends on context.
The module can be useful for SEO optimization.

Instructions

1.Go to admin/settings/context_htmltags and define some tags identificators (one per line),
for example type in form: page_title

2. Put in file function context_htmltags_tag($text, $tag_id, $default_tag = 'p', $default_class=''), example:
Instead of a

<h1 class="title"><?php print $title; ?></h1>

in page.tpl.php file insert the following code:

<?php print context_htmltags_tag($title, 'page_title', 'h1', 'title'); ?>

3. If You want change this HTML tag in some context go to admin/build/context and add reaction "HTML tag".
Set HTML tags and css class for selected tags IDs.

Sponsorship

This project is sponsored by Droptica - Experts in Enterprise Drupal Development