I have adoctype "textpage"which is usedat different levelson the site. Depending onwhat level the doctypeis used, the output will be slightly diffrent So what Iwantisthat whendoctypen"textpage" is used below a doctype called"Destination"then the "textpage" will be showed with an extra image/iconotherwise it will be displayed without the images/icon.
So I was thinkin somthinge like this:
If (page= Destination/textpage) Then show images elseif (page= textpage) dont show images
I just don't have any idea on how to code it in Razor :-)
I have just made a small test on one of my dev sites. If I understand you correct the destination documenttype is always a parent for an text page. If so I thik you should be able to do something like this:
find a doctype
I have a doc type "textpage" which is used at different levels on the site.
Depending on what level the doc type is used, the output will be slightly diffrent
So what I want is that when doctypen "textpage" is used below a doctype called "Destination" then the "textpage" will be showed with an extra image/icon otherwise it will be displayed without the images/icon.
So I was thinkin somthinge like this:
If (page= Destination/textpage)
Then show images
elseif (page= textpage)
dont show images
I just don't have any idea on how to code it in Razor :-)
Kan anyone help
/Kate
Hi Kate,
I have just made a small test on one of my dev sites. If I understand you correct the destination documenttype is always a parent for an text page. If so I thik you should be able to do something like this:
I hope this do what you was looking for Kate.
/Dennis
Hi Kate,
Did you managed to find a solution to your question, and could you use my suggestion?
/Dennis
How about making use of @level here ? So depending on whatever level this docType is being used it renders something different.
Hi Dennis
I haven't had the time to look at it yet, but hope that I can this afternoon or tomorrow.
I will return when I have had a look at it :-)
Hi Dennis and Fuji
Thanks for your suggestions.
They both worked fine, just what I needed :-)
Thanks again for your help
/Kate
Hi Kate,
That´s brilliant news. I glad that I could help you find a solution.
/Dennis
is working on a reply...