the @id field is the id of the node ie. 1234. That test you have there is basically checking to see if the current page id matches a parent node or self's id.
The umbraco.library.NiceUrl function returns a user-friendly path instead of a messy raw url. I'm not sure why you'd want to view the source for that function? To do that you'd have to view the uncompiled source, which I think you can download off codeplex?
As alimac is saying above @id represents the id of the page. It's an attribute on the XML node that the XSLT is consuming.
All of your content is available in umbraco.config, which is an XML file and the data structure in here is the structure your XSLT files are matching up against when you create XSLT macroes.
Each document has a unique id, that's what id is coming from. (Id of each document can be found on the 'Generic Properties' tab).
Can you explain what you want exactly, what do you mean by "get more similar function". Do you want an overview of all available library functions? If so, have a look at this wiki entry.
what did the @id means here.
in demo i get a scope of script in file umbTopNavigation.xslt .
<xsl:if test="$currentPage/@id = $currentPage/ancestor-or-self::* [@level=$level]/@id">
where the @id come from? and what is means?
by the way the script
<a class="navigation" href="{umbraco.library:NiceUrl(@id)}">
I can't find the NiceUrl method in the umbraco source code. do you got it ?
thank
the @id field is the id of the node ie. 1234. That test you have there is basically checking to see if the current page id matches a parent node or self's id.
The umbraco.library.NiceUrl function returns a user-friendly path instead of a messy raw url. I'm not sure why you'd want to view the source for that function? To do that you'd have to view the uncompiled source, which I think you can download off codeplex?
Hi Guo and welcome to our :)
As alimac is saying above @id represents the id of the page. It's an attribute on the XML node that the XSLT is consuming.
All of your content is available in umbraco.config, which is an XML file and the data structure in here is the structure your XSLT files are matching up against when you create XSLT macroes.
/Jan
Thanks Alimac and thanks Jan.
Is that means the @id is come from the URL?
About the umbraco.library.NiceUrl function, I was just want to know how can i get more similar function?
So thanks. I'm the beginner to umbraco.
Guo,
Each document has a unique id, that's what id is coming from. (Id of each document can be found on the 'Generic Properties' tab).
Can you explain what you want exactly, what do you mean by "get more similar function". Do you want an overview of all available library functions? If so, have a look at this wiki entry.
Cheers,
/Dirk
Dirk,
Thanks. You have got my mind. Your reply is what my need.
Guo
is working on a reply...