Allowed Content

6 posts by 3 authors in: Forums > CMS Builder
Last Post: December 31, 2018   (RSS)

By moh3 - December 26, 2018

Dear Cms builder, i was wondering how to use the (Allowed Content) option when creating a field can you provide a working example ?

By gkornbluth - December 26, 2018 - edited: December 26, 2018

Ki moh3,

When you create an upload field, there's under upload settings there's a field called File extensions allowed in the input validation area.

Just put in the file name extensions that you want, separated by commas and no periods.

There's a small issue with certain file types right now, but is should be fixed shortly. (See the post about CMSB-v3.50-Released---FREE-VERSION at the top of the forum topics)

You might want to take advantage of the free 3 month trial of my CMSB Cookbook.

Hope that helps,

Jerry Kornbluth

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

By moh3 - December 31, 2018

Dear I was referring to the text and other fields where there is an option for limiting certain chars But can't find the correct syntax

By daniel - December 31, 2018

Hi moh,

When editing a text field, under Input Validation, the Allowed Content dropdown can be set to either "Only allow characters:" or "Disallow characters:". Below that is a text field to enter the characters you wish to allow/disallow. For example, if we set the dropdown to "Only allow characters" and enter "abcd" in the text box below (no spaces or commas), that field will only be able to be saved with combinations of those four characters. I've attached a screenshot as an example.

Let me know if you have any further questions!

Thanks,

Daniel
Technical Lead
interactivetools.com

By moh3 - December 31, 2018

Thanks Daniel this exactly what I was asking about, 

I hope changing your business model to free cms will bring more adaptations from people from all around I working on a layout builder based on boostrap that is intergraded with the CMS that I hope I can share for better improvement one missing major point is lack of documentation of the functions aviavaila that should be available for people who would like to build advanced plugins