Making metadata and other fields compulsory

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
Anastasis

Making metadata and other fields compulsory

Post by Anastasis »

We use metadata extensively on our website to optimise for search engines (the Title and Description tags being most useful along with the actual page name). However, the way metadata is entered on the Options tab when adding/amending a page seems quite clunky and prone to end-user error compared to other parts of CMSMS. The User Handbook says the following:

==> To add Metadata, surround with tags, for example: -- and --
Presumably though, a more user friendly way of capturing the data could by adding {capture} tags to the page template to prompt the user to enter them on the main tab and then write these into the HEAD area?

If this is the case, and given the importance of putting metadata into our pages, is there a way to make the entry of data like this compulsory?

Thanks in advance.
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: Making metadata and other fields compulsory

Post by tsw »

you could add {content block="description" online="true"} to your template. this gives you one more edit field when editing a page (and I think its required as default)

hope this helps
Anastasis

Re: Making metadata and other fields compulsory

Post by Anastasis »

tsw wrote: you could add {content block="description" online="true"} to your template. this gives you one more edit field when editing a page (and I think its required as default)

hope this helps
TSW - Many thanks for your thoughts on this. I tried it but unfortunately leaving the field blank and pressing the Submit button just accepts it and saves the blank. :(

Maybe there is something that can be set into the configuration of the way the page is validated when it is saved. I see if you fail to add both a Title and Menu Text it is displays an error message requiring you to enter something.

----------------------------------------
    * No Title given!
    * No Menu Text given!
----------------------------------------
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: Making metadata and other fields compulsory

Post by tsw »

those checks are hardcoded in editcontet.php..

I think extra content blocks could be set as required (with one more parameter) but I have to consult the code :)
Locked

Return to “CMSMS Core”