Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Tagging for News item View modes: 
User avatar
Member
Member
clan1999-hotmail - 2/10/2010 7:39:53 AM
   
Tagging for News item
Hello,

How can I add tag capability to the news item? I see it ("News") on the Tag Cloud page, but when I add a new news item, there's no place to add tags.

Thank you.

Seong

User avatar
Member
Member
kentico_pavelk - 2/10/2010 8:43:07 AM
   
RE:Tagging for News item
Hello Seong,

You can set the tags in Properties -> Metadata dialog of the document. Please find more details in our Developer's guide:
http://devnet.kentico.com/docs/devguide/index.html?tagging_documents.htm


Best regards,
Pavel Knotek

User avatar
Member
Member
clan1999-hotmail - 2/24/2010 2:17:25 AM
   
RE:Tagging for News item
Hi Pavel,

How do I make it so that I can enter tags when I create a news item, not after it's been created? In other words, how can I show textbox for entering tags on the same page where I enter news information?

Seong

User avatar
Member
Member
kentico_pavelk - 3/2/2010 8:02:08 AM
   
RE:Tagging for News item
Hi Seong,

You can add a system field to the document type which will ensure this functionality. The steps are:
1) navigate to the Site Manager -> Development -> <document type> - Fields
2) click New System Attribute (a tooth wheel icon) and set it as follows:
Group: Document attributes
Attribute name: Document tags
Field type: Tag selector


This will do the trick.


Best regards,
Pavel Knotek

User avatar
Member
Member
clan1999-hotmail - 3/2/2010 2:24:46 PM
   
RE:Tagging for News item
Great! It worked!

Thanks. I also learned what system attributes are and how to add them!

Seong

User avatar
Certified Developer v7
Certified  Developer v7
adam-syndicut - 8/26/2010 5:23:36 AM
   
RE:Tagging for News item
Hi Pavelk

i'm trying that and i get

"The attribute size must be an integer number greater than zero. Length of the attribute default value string mustn't exceed attribute size. "

when i click ok in document types > fields

the attribute size is greyed out so i can't change it from -1!

also a quick question on the tagging, i want to create a custom table that will have all the available tags in, i know how to create custom tables but could you give us some tips on how to hook this up to the documenttags system attribute in the doc type?

will i need to customize the cmsformcontrol for documenttags?


User avatar
Kentico Developer
Kentico Developer
kentico_ondrejv - 9/2/2010 4:41:49 AM
   
RE:Tagging for News item
Hello,

Regarding your first issue, this is a bug in 5.5 version. Fortunately, it has been resolved by 5.5.2 hotfix. Please try to apply latest one (the higher, the better).

Concerning your second tagging query, yes, this would involve customizing tag selector form control. You know, when you have custom table, it is not connected with particular document and therefore you will need to get current (or any other) node from code-behind and obtain document tags from it and pass them to your tag selector (and vice versa).

Best regards
Ondrej Vasil

User avatar
Member
Member
gatsby0121 - 5/8/2011 5:46:53 AM
   
RE:Tagging for News item
I have 5.5.3789 and I'm still getting this. is there anything else that would cause "The attribute size must be an integer number greater than zero. Length of the attribute default value string mustn't exceed attribute size. "

User avatar
Kentico Support
Kentico Support
kentico_zdenekc - 5/17/2011 5:34:48 PM
   
RE:Tagging for News item
Hi,

5.5.3789 is the final release version -- e.g. without any hotfix applied.

As Ondrej wrote in his post, it has been fixed in 5.5.2 Hotfix, so you need either to apply the Hotfix from Bugtracker/Hotfixes (we recommend the last one - it would be 5.5.30 there for 5.5 version) or upgrade to 5.5 R2 version.

--Zdenek