ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Want to change page title dynamically, please help!

June 08, 2013 6:45am

Subscribe [2]
  • #1 / Jun 08, 2013 6:45am

    chequan

    18 posts

    I want to change html page title according to requested content. Such as below sample code:

    <html
    <head>
    <title>entry_title / category_name / blog / site_name</title>
    </head>

    Inside of the {exp:channel:entries} tag, the information of requested entry can be gathered only.
    {exp:channel:entries}
    {title}
    ......
    {/{exp:channel:entries}

    If I use two {exp:channel:entries} tags, there would be more SQL query. There would be a big difference in performance.

    <html
    <head>
    <title>
    {exp:channel:entries}
    {title}
    ......
    {/exp:channel:entries}
    </title>
    </head>
    <body>
    {exp:channel:entries}
    {title}
    ......
    {/exp:channel:entries}
    </body>
    </html>

    Who can give me some help? Thanks.

  • #2 / Jun 09, 2013 12:18am

    Bhashkar Yadav

    727 posts

    You might use SEO Lite (http://wedoaddons.com/addon/seo-lite)

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases