I guess you are right about a re-think. This way just overcomplicate things. The only reason why I build it this way was to get for instance a www.mysite.dk/en/sompage in the url. But a re-think would mean that all the code I already have works.
Thank you very much for your time, effort and pointers. :)
Logo with link to homepage on each language version
Hi guys
I have an old XSLT file that I would like to convert to razor. The file gets the homepage node and links to it.
My site structure looks like this:
Homepage
--Subpage
Language version
--Homepage
----Subversion
My working XSLT looks like this:
I thought the razor would work with this:
But no luck so far. Any pointers to why it's not working ? :)
/Michael
Hi Michael,
What if you are doing something like this:
Hope this helps,
/Dennis
Hi Dennis
Thank you for a very quick reply. When I try your way I get an error.
/Michael
Hi Michael,
Okay what if you are doing something like this:
Hope this helps,
/Dennis
Hi Michael
Or maybe you could try something like this:
Hope this helps,
/Dennis
Some of the way now :)
I now get the image displayed on my language version, but not on the org. language
Homepage - No image
--Subpage - No image
Language version
--Homepage - Image
----Subversion - Image
I guess its a level thing with the 1 in .AncestorOrSelf() ?
/Michael
That last one gives me an error.
Hi Michael,
I assueme that you are using the same templates and document types to each site. Maybe you need to re-think your site struture to get this work.
If it was me that should bulid a structure like yours I would do it like this:
Content (Umbraco Content)
--Site1(Homepage)
---Subpage
----Subpage
--Site2(Homepage)
---Subpage
----Subpage
--Site3(Homepage)
---Subpage
----Subpage
And maybe it´s more easy to find some Razor code that do what you need.
Hope this helps,
/Dennis
Hi again Dennis
I guess you are right about a re-think. This way just overcomplicate things. The only reason why I build it this way was to get for instance a www.mysite.dk/en/sompage in the url. But a re-think would mean that all the code I already have works.
Thank you very much for your time, effort and pointers. :)
/Michael
is working on a reply...