Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ciaran Smith 20 posts 100 karma points
    Mar 25, 2015 @ 11:04
    Ciaran Smith
    0

    Page title on blog posts

    Hi,

    How can I set the page title for each blog post? i.e. This bit: <title></title>  - at the moment it is empty

     

  • Dennis Aaen 4386 posts 17747 karma points admin hq c-trib
    Mar 25, 2015 @ 11:09
    Dennis Aaen
    0

    Hi Claran,

    With this code you should get the name from the content tree in your title tag.

    If you are using MVC then use

    @Umbraco.Field("pageName")

    If you are using webforms use then

    <title><umbraco:Item field="pageName" runat="server"/></title>

    Hope this helps,

    /Dennis

  • Ciaran Smith 20 posts 100 karma points
    Apr 02, 2015 @ 12:29
    Ciaran Smith
    0

    Thanks Dennis - I already knew this, this was just me being a bit stupid!!

Please Sign in or register to post replies

Write your reply to:

Draft