Asset Builder Page with predefined metadata


(Libby Stark) #1

*Newbie Alert*   *I'm on matrix 5.1.6.0.*

 

Hi,

 

We have a global metadata schema with a field called "content.type" that defines the "content type" of an asset, eg. template, guideline, news, policy, alert, etc. (ends up being used by funnelback for faceted searching and some other tricky stuff)

 

I'm creating an Asset Builder Page so that users can "Create a News Item" easily, and I want all the submitted content to default to "News" for the "content.type" field. News will always be News, so I don't want to have to ask the user to pick the content type.

 

What is the easiest way to achieve this?  Using standard matrix functionality if possible, as I'm not a programmer.

 

Thanks,

 

Libby

 


(Nic Hubbard) #2

Probably the easiest would be to print that field with the metadata keyword, then preview the page. Take the HTML for that select field (assuming this is what it is) and then for the option you want, give it the selected attribute. Then, hide that HTML so that it will get submitted, but the user won't be able to see or change it.


(Bart Banda) #3

Hi Libby,

Pretty much what Nic said would be the easiest way without the need for any JavaScript or Triggers. 

 

Are you customising the layout of the asset builder for the news item at all? If you are, you're half way there with Nics suggestion.