Fork me on GitHub
Current Releases are 2.1 stable (major release) and 2.0.18.11 (security patch for 2.0)
We've also rebooted our GitHub repo, docs, and more!

how to add meta tag for custom pages (title , description, keywords)

ChanuxChanux Admin of Geek.lk ✭✭
edited February 2012 in Questions

im using custom page plugin and now i want to add meta tags for my custom page. i found this one for title tag

$this->Head->Title('Demo Title)');

it is working now. but i want to add description & keywords tags. how can i do it. help me. when i try

$this->Head->description('Demo Title)');

page bonk

Best Answer

  • x00x00 MVP
    edited February 2012 Answer ✓

    $this->Head->AddTag('meta',array('name'=>'keywords','content'=>"some,keywords"));

    I'll let you figure out the rest, becuase I think you have a nagging nature, and am not convinced you are really interested in learning, going on previous history. We are not here to babysit you.

    Aolee

Answers

Sign In or Register to comment.