Using Asset Builder to create News Item with Metadata Fields


(Ryan Archer) #1

I have made up an asset builder to create news items. I quickly realised that I could not use the asset builder on its own to create a news items like you can create comments.

 

So I began using "keyword replacement for metadata fields" as described in http://manuals.matrix.squizsuite.net/other-cms-assets/chapters/asset-builder-page#Customising-the-Layout-of-the-Create-Form. I have created a metadata schema and also the relevant metadata fields to match the content of the post (e.g. post content, post author, post contact).

 

So anyway, the asset builder lets me create the new News Item but obviously does not print any of the meta data into the News Item asset (i.e. summary, body, contact name, contact phone). How do I get Squiz to 'push' the metadata into the News Item (that was created when using the asset builder to make the new News Item) ?

 

Also one other thing that is worrying me, in the metadata field New Field Type there is an option to choose Wysiwyg from the select/drop down menu. When I make that an option, the WYSIWIG does not show up in the Asset Builder at all, just the description I gave the field. I really hope I can use the WYSIWIG Field Type when creating a News Item asset with the Asset Builder, otherwise the asset builder is really only good for creating comments...


(Nic Hubbard) #2

Why are you needing to match the content of the post? That fields are available for the Asset Builder to print.


(Ryan Archer) #3

I think I see what you mean Nic. I followed the manual here http://manuals.matrix.squizsuite.net/other-cms-assets/chapters/asset-builder-pageand I thought it advised me to create a form customisation, it then created a News Item create form layout and then the manual advised to use metadata keyword replacements. It did not even suggest what keywords i needed to get a hold of the News Item Summary or body content.

 

So I went down that track totally confusing myself and wondering why I could never put any content in the summary or body content when making a news item in the asset builder. I had no place in creating a form customisation - especially when I could not even find the keywords to put into it so it would display the News Item Summary and Body content fields.

 

So I deleted the bodycopy on a whim to see what Matrix did by default, lo and behold I can now see all the stuff I need to see PLUS the metadata fields (attached by the metadata schema)! Now I need to edit the metadata so it is exactly that - METADATA and use it for keywords, description and title when indexing/searching the news items within the website.

 

I'd love to use the customised form but I'm lacking the keywords that I need for the News Items summary and body content.


(Nic Hubbard) #4

I am building an example site for you to look at on my server. Should clear everything up. :)