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 101 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 4500 posts 18255 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 101 karma points
    Apr 02, 2015 @ 12:29
    Ciaran Smith
    0

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

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies