Copied to clipboard

Flag this post as spam?

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


  • Anthony Candaele 1197 posts 2049 karma points
    Mar 11, 2011 @ 16:10
    Anthony Candaele
    0

    no spacing in title tag in header

    Hi,

    I have this weird problem. I want to define a pagetitle for my browser like this:

    sitename - pagename

    so I defined this title tag in my master template:

    <title><umbraco:Item field="siteName" recursive="true" runat="server" />&nbsp;-&nbsp;<umbraco:Item field="pageTitle" runat="server" recursive="true" /></title>

    but for some strange reason the literal text &nbsp;-&nbsp; is ignored and I get this page title in my browser window:

    sitenamepagena

    I use Umbraco 4.5.2

    Anyone also experienced this problem?

    Thanks for your help,

    Anthony Candaele
    Belgium

  • Anthony Candaele 1197 posts 2049 karma points
    Mar 11, 2011 @ 16:47
    Anthony Candaele
    0

    The problem seems related to the installed package Language Selector

    This package needs the runat="server" attribute in the head tag of my master template. But if I set the runat="server" attribute in the tag like then the literal text ' - ' is ignored.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 12, 2011 @ 13:11
    Jan Skovgaard
    0

    Hi Anthony

    Can't you just omit the &nbsp; stuff and just create normal white space using space? Otherwise I don't know how to solve it using the umbraco:Item but it should be fairly easy to solve it by rendering these informations in XSLT instead.

    /Jan

Please Sign in or register to post replies

Write your reply to:

Draft