Unable to create tags for a new document in form tab

Vinod Vutla asked on October 11, 2017 06:10

Hey,

I am unable to associate tags for a new document in content tree and this is the issue. I could easily associate the tags and save them in form tab if I edit the document, but the issue is with a new document.

I this the default kentico behavior?, I assume tags that are associating with a page requires the document id hence tags disappear as document is not created? please confirm. Thanks.

Recent Answers


Matt Nield answered on October 11, 2017 10:14 (last edited on October 11, 2017 10:14)

In short, yes - this is the default behavior with tags.

Behind the scenes, there are three tables involved when tagging a document:

  • CMS_Document
  • CMS_DocumentTag
  • CMS_Tag

Whilst the tag itself can exist, the associate with the document cannot until it has been created and has an ID as you suggest. If I have to guess, I'd say that there is the potential to do some cusotmization here with a alternative form for creating your page types and a global event handler to fire after the doucment has been created.

1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.