Developer forum

Forum » Templates » Get name of parent group

Get name of parent group

Per Ljung
Reply
Hi!

I want to print the name of a parent group. I know how to print the name of a group, but this group is a subgroup and I want to print the name of its parent. Is this possible?

Best regards,
Per

Replies

 
Vladimir
Reply
Hi Per!

I see two variants:
1)  pass name of parent group in query string
something like mySite\SubGroup2?parentname=NNN
and then use <!--@Server:Request.parentname-->

2) use template extender

Best regards,
Vladimir

 
Per Ljung
Reply

Yes, I have passed the name in the query string, but the problem is that some groups contains å, ä, ö and these letters are escaped in the webrowser when the page is posted. I have tried to unescape them with JavaScript, but it didn't work.

First I had this problem with the subgroup too, but when I saw that there was a tag for group name so I could avoid it this way.

 

You must be logged in to post in the forum