Hi everybody. I'm new here. I discover Umbraco since a couple of months and found it great. I already created some cool websites with v4. So I just started playing with v5.
Here goes my problem. I have a multilanguage site with a structure like this: root ---- subdomain.domain.com --------- en --------- it --------- sp --- subdomain2.domain.com --------- en --------- it --------- sp
Now my menus and stuff have all a parameter that is level (almost always equal to 2). With v4 I used to get each language directory leve (it, en and so on) with
@DynamicModel.AncestorOrSelf(level)
It was great. Everything was ok. But now with v5 AncestorsOrSelf has no paramters (aaaagh!!!).
Umbraco 5.1: get ancestor at certain level
Hi everybody. I'm new here. I discover Umbraco since a couple of months and found it great. I already created some cool websites with v4. So I just started playing with v5.
Here goes my problem. I have a multilanguage site with a structure like this:
root
---- subdomain.domain.com
--------- en
--------- it
--------- sp
--- subdomain2.domain.com
--------- en
--------- it
--------- sp
Now my menus and stuff have all a parameter that is level (almost always equal to 2). With v4 I used to get each language directory leve (it, en and so on) with
I tried with
But I had no luck because it seems there's a issue on it (http://issues.umbraco.org/issue/U5-359)
Any ideas?
Thanks
Marcos
You could try a couple of things here. First try comparing the properties as strings proper, and also casing might come into play:
Nope. The only solution I've found is a workaround. But it's not ideal:
I think I'm going back to v4. Too many bugs and issues
is working on a reply...