Copied to clipboard

Flag this post as spam?

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


  • Michael Jensen 35 posts 85 karma points
    Feb 13, 2012 @ 19:32
    Michael Jensen
    0

    tooltip In a my xslt filde i use to get my navi..

    Hey iam tryning to set a toottip in my xslt i use to my macro to make my navi Dynamic

    i have made a Propety name "textSiteLink" that i like to use at the source for the tooltip.

    i need it in this part so TOOLTIP is replaset whit wath i need

    Can some help me..

     

    Soory for my pore writing in english..

    <class="TopNaviLink" href="{umbraco.library:NiceUrl(@id)}" TOOLTIP >

          <xsl:value-of select="@nodeName"/>
        </a>

    This is my file

     

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#x00A0;"> ]>
    <xsl:stylesheet 
      version="1.0" 
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
      xmlns:msxml="urn:schemas-microsoft-com:xslt" 
      xmlns:umbraco.library="urn:umbraco.library" xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon" xmlns:Exslt.ExsltDatesAndTimes="urn:Exslt.ExsltDatesAndTimes" xmlns:Exslt.ExsltMath="urn:Exslt.ExsltMath" xmlns:Exslt.ExsltRegularExpressions="urn:Exslt.ExsltRegularExpressions" xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings" xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets" 
      exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets ">

    <xsl:output method="xml" omit-xml-declaration="yes" />

    <xsl:param name="currentPage"/>

    <!-- Input the documenttype you want here -->
    <xsl:variable name="level" select="1"/>

    <xsl:template match="/">

    <!-- The fun starts here -->
    <ul>
      <li class="li" >
            <class="TopNaviLink" href="velkommen.aspx">Forsiden</a>
      </li>
    <xsl:for-each select="$currentPage/ancestor-or-self::* [@level=$level]/* [@isDoc and string(umbracoNaviHide) != '2']">
      
      <li class="li" >
            <class="TopNaviLink" href="{umbraco.library:NiceUrl(@id)}" >
          <xsl:value-of select="@nodeName"/>
        </a>
      </li>
    </xsl:for-each>
    </ul>

    </xsl:template>

    </xsl:stylesheet>

  • Nigel Wilson 945 posts 2077 karma points
    Feb 13, 2012 @ 20:03
    Nigel Wilson
    0

    Hi Michael

    The following should work for you:

    <a class="TopNaviLink" href="{umbraco.library:NiceUrl(@id)}" title="{textSiteLink}"> 

    Cheers

    Nigel

  • Michael Jensen 35 posts 85 karma points
    Feb 13, 2012 @ 20:06
    Michael Jensen
    0

    Thanks i tryed. but get this error on saving..

     

    Error occured

    System.Xml.XmlException: '{' is an unexpected token. The expected token is '"' or '''. Line 26, position 35. 
    at System.Xml.XmlTextReaderImpl.Throw(Exception e) 
    at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args) 
    at System.Xml.XmlTextReaderImpl.ThrowUnexpectedToken(String expectedToken1, String expectedToken2) 
    at System.Xml.XmlTextReaderImpl.ParseAttributes() 
    at System.Xml.XmlTextReaderImpl.ParseElement() 
    at System.Xml.XmlTextReaderImpl.ParseElementContent() 
    at System.Xml.XmlTextReaderImpl.Read() 
    at System.Xml.Xsl.Xslt.XsltInput.ReadTextNodes() 
    at System.Xml.Xsl.Xslt.XsltInput.ReadNextSibling() 
    at System.Xml.Xsl.Xslt.XsltInput.MoveToFirstChild() 
    at System.Xml.Xsl.Xslt.XsltLoader.LoadInstructions(List`1 content, InstructionFlags flags) 
    at System.Xml.Xsl.Xslt.XsltLoader.LoadLiteralResultElement(Boolean asStylesheet) 
    at System.Xml.Xsl.Xslt.XsltLoader.LoadInstructions(List`1 content, InstructionFlags flags) 
    at System.Xml.Xsl.Xslt.XsltLoader.XslForEach() 
    at System.Xml.Xsl.Xslt.XsltLoader.LoadInstructions(List`1 content, InstructionFlags flags) 
    at System.Xml.Xsl.Xslt.XsltLoader.LoadLiteralResultElement(Boolean asStylesheet) 
    at System.Xml.Xsl.Xslt.XsltLoader.LoadInstructions(List`1 content, InstructionFlags flags) 
    at System.Xml.Xsl.Xslt.XsltLoader.LoadTemplate(NsDecl stylesheetNsList) 
    at System.Xml.Xsl.Xslt.XsltLoader.LoadRealStylesheet() 
    at System.Xml.Xsl.Xslt.XsltLoader.LoadDocument() 
    at System.Xml.Xsl.Xslt.XsltLoader.LoadStylesheet(XmlReader reader, Boolean include

  • Michael Jensen 35 posts 85 karma points
    Feb 13, 2012 @ 20:26
    Michael Jensen
    0

    and if i remoce the { } tagt it only post the statit text

  • Mike Chambers 636 posts 1253 karma points c-trib
    Feb 14, 2012 @ 11:04
    Mike Chambers
    0

    title="{./textSiteLink}" maybe....

  • Michael Jensen 35 posts 85 karma points
    Feb 14, 2012 @ 11:36
    Michael Jensen
    0

    Thanks Mike..

     

    that dit the works

  • Bjarne Fyrstenborg 1281 posts 3992 karma points MVP 8x c-trib
    Feb 14, 2012 @ 12:56
    Bjarne Fyrstenborg
    0

    Hi Michael

    You could also create a variable for the site title and then use the variable.

    <xsl:variable name="siteTitle" select="./textSiteLink" />
    .....
    <
    class="TopNaviLink" href="{umbraco.library:NiceUrl(@id)}" title="{$siteTitle}" >
      <xsl:value-of select="@nodeName"/>
    </a>

    Bjarne

  • Michael Jensen 35 posts 85 karma points
    Feb 14, 2012 @ 13:24
    Michael Jensen
    0

    Thanks Bjarne.

    i will look at wath yoiu wrote iam not that good in umbraco yet  the first time i look at it is lige 13 days agon in class ware we neede to do a projekt. "studining webintegratot @TCAA " but i lowe this system it is so strong. and when instalt on my webserver ia can even program on my mac.

    The site iam workin on as a class projekt is this one http://kaffebutikken.the-testcenter.dk

    Best regardes

    Michael 

  • Michael Jensen 35 posts 85 karma points
    Feb 14, 2012 @ 16:34
    Michael Jensen
    0

    Can the same thin be aplyes til at

    <umbraco:Item field="blokTilbudOverskrift" runat="server" />
    so that a feils whit name blokTilbudOverskriftTitleText can contain the Title/Alt text for the text
    It might look lige iam a bit wired, but the projekt is to make a webpage that alle can use even thos who cant
    se and ther system navigate around on web pages usning title and alt text....
    nad by putting at title/alt tag on the test in the blok haeder lets the blinde nowe wath blok it is on

     

     

    Michael

  • Bjarne Fyrstenborg 1281 posts 3992 karma points MVP 8x c-trib
    Feb 14, 2012 @ 18:38
    Bjarne Fyrstenborg
    0

    Hi Michael

    I think the best way to get into Umbraco is to look at some of the demo starter kits: 
    http://our.umbraco.org/projects/starter-kits/creative-website-starter-(cws
    http://our.umbraco.org/projects/starter-kits/standard-website 
    http://our.umbraco.org/projects/starter-kits/basic-website 
    http://our.umbraco.org/projects/starter-kits/razor-estate-agents-starter-site

    you can learn of lot of things from these starter websites, but also from the documentation in Wiki or the videoes on umbraco.tv , but there's also much useful information in the forum from other users.

    You can insert the title of the blok in e.g. a h1 tag.. with a title text on hover.. <h1 title="Title text">Header title</h1> and insert the umbraco items there.. but you could also create the block from xslt with container and content from xslt .. and then just insert the macro in the template.

    Bjarne

Please Sign in or register to post replies

Write your reply to:

Draft