1

I have some pages in my magento store which are not CMS Pages. They have phtml files and common head.html files. This pages not also have databases tables. I want to set Meta info for that pages. How can I programmatically set Meta for that pages by identifying loaded URL in Browser dynamically.

Pages urls like -

http://example.com/contacts/

http://example.com/questions/

http://example.com/customer/account/create/

http://example.com/customer/account/forgotpassword/

Any help would be appreciated. Thanks

1

Use your theme file local.xml

example for contact page

<contacts_index_index>
<reference name="head">
    <action method="setTitle"><title>Title</title></action>
    <action method="setDescription"><description>Description</description></action>
    <action method="setKeywords"><keywords>Keywords</keywords></action>
</reference></contacts_index_index> 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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