1

I have installed "Tagadelic" module.Then I created one custom module to display tag clouds in a page.
Now I need to add/modify meta description for this page only. So what is the process for it?

2 Answers 2

2

You can also install the context module and the metatag context module to set meta tags by URL.

Just specify the URL, and enter the meta tags you wish to display.

2

A programmatical solution could be to use something like this. you could put it in a preprocess hook in your template.php

$path_alias = drupal_get_path_alias();

  if ($path_alias == 'thepathofmypage') {
    $meta_head_blog = array(
      '#type' => 'markup',
       '#markup' => '<meta name="title" content="My metatag title"><meta name="description" content="My metatag desc">',
);
drupal_add_html_head($meta_head_blog, 'metaHeadBlog');
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.