ASPX templates
Version 5.x > ASPX templates > Blog: How would I move (or copy) fields from Properties > Metadata (like keywords) to Blog "Form" View View modes: 
User avatar
Member
Member
dude727 - 2/10/2011 8:42:58 AM
   
Blog: How would I move (or copy) fields from Properties > Metadata (like keywords) to Blog "Form" View
I would like to make it easier on Blog Post creation to edit metadata in the same Form view my users have to make a new Blog document.

How would I go about adding meta description, meta keywords and meta title into the Blog document's Form view (so my users don't have to flip tabs to get to the metadata)?

User avatar
Member
Member
casey-catalysis - 2/23/2011 1:16:50 PM
   
RE:Blog: How would I move (or copy) fields from Properties > Metadata (like keywords) to Blog "Form" View
I'm also wondering if there's a solution to this problem. I need to show the count of current tags for a search filter, and my users are only going to have access to a tags form value, not to the metadata tab.

User avatar
Kentico Developer
Kentico Developer
kentico_ondrejv - 3/9/2011 12:35:26 AM
   
RE:Blog: How would I move (or copy) fields from Properties > Metadata (like keywords) to Blog "Form" View
Hello,

I would recommend you to create duplicate fields to your document type, I mean document title field, document keywords field and document description field. Editor will fill them on the Form tab and you'll save them on button click to the document metadata fields using our API. This can be done in the ~\CMSModules\Content\CMSDesk\Edit\Edit.aspx.cs file. Please focus on the SaveDocument method.

Hope this sheds some light.

Best regards
Ondrej Vasil

User avatar
Kentico Developer
Kentico Developer
kentico_ondrejv - 3/14/2011 4:15:57 AM
   
RE:Blog: How would I move (or copy) fields from Properties > Metadata (like keywords) to Blog "Form" View
Hello,

I was thinking about it a bit more and I found the easiest solution as to specify the macros within the Metadata tab, so that the meta data are filled in automatically - according to fields of the current blog post.

You can use following macros:

Page title: {%documentname%}
Page description: {%StripTags(blogpostsummary)%}
Page keywords: {%documenttags%}

I just wanted to point this out, maybe it can suit your needs.

Best regards
Ondrej Vasil