Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > DocumentTags System Field, with links? View modes: 
User avatar
Member
Member
evanmcd - 7/14/2010 8:03:23 AM
   
DocumentTags System Field, with links?
Hi,

I'm trying to get the tags that are associated with a document into a transformation. I have that working fine, but the tags aren't linked as they are in a tag cloud.

Does anyone know of a way to do this?

Thanks.

- Evan

User avatar
Kentico Developer
Kentico Developer
kentico_ondrejv - 7/22/2010 2:42:54 AM
   
RE:DocumentTags System Field, with links?
Hello,

What version of Kentico CMS do you use? Any hotfixes?

Basically, you can use following expression:

<%# IfEmpty(Eval("DocumentTags"),"","Filed under: " + BlogFunctions.GetDocumentTags(Eval("DocumentTagGroupID"), Eval("DocumentTags"), "~/page.aspx")) %>


The above code shows document tags from Tag selector field for particular document. The last parameter tells where you should be redirected to. On page.aspx will be repeater with WHERE condition to show tags just of appropriate TagId.

More details can be found here: Using the tag cloud webpart

Also, if you install Corporate Site sample site, you can see it in action with Blog posts. Please focus on CMS.BlogPost.Default transformation.

Best regards
Ondrej Vasil