I actually had some problem in creating rolloverbuttons in umbraco. The way it suppose to work was if the button was clicked, it would lead to a different page (obviously) and then become inactive on that certain page.
I've been doing a little bit of searching for a while and found out that using "cogworks" package would get me the closest result on doing this. However, I'm planning to assign individual images to those buttons instead of decorated text link. So is there any other better approach to achieve this result? Thanks
The pseudo code looks great, its just that I'm awfully new to this and having a hard time figuring out how to implement them into Xslt. Expecially on configuring the XPath
Just say if my umbraco Content is looking like this:
Rolloverbutton
Hi Guys,
Hopefully this is not a repost...
I actually had some problem in creating rolloverbuttons in umbraco. The way it suppose to work was if the button was clicked, it would lead to a different page (obviously) and then become inactive on that certain page.
I've been doing a little bit of searching for a while and found out that using "cogworks" package would get me the closest result on doing this. However, I'm planning to assign individual images to those buttons instead of decorated text link. So is there any other better approach to achieve this result? Thanks
You can just use xslt for the best effect I think. If you're on the page itself, just render a span tag,otherwise the elements is rendered as anchor.
pseudo code:
choose
if currentpage.nodeName == @nodeName
<span>nodeName</span>
otherwise
<a href="#">nodeName</a>
Thanks for the reply Folkert
The pseudo code looks great, its just that I'm awfully new to this and having a hard time figuring out how to implement them into Xslt. Expecially on configuring the XPath
Just say if my umbraco Content is looking like this:
Content:
*Page1 (with id 1111)
*subpage1
*Page2 (with id 2222)
And my latest code is:
it renders blank, which indicating the path is incorrect. On the original code instead of @id the $currentPage/node/data is being defined by @alias.
Probably my other silly question besides regarding the path would be....
How to define the @alias of individual page? is it the same as the name of the page ("Page2") or it has to be defined somewhere else?
Hi, just thought that I should close this old post
Thanks
is working on a reply...