Hey KK,
sorry if my question wasnt clear enough,
what i wanted to ask is, if there are conditional statements in the backend ergo the admin side to check if a value that is typed by an user or myself is for example not higher then the number 5 and if so throws in an error saying the number is higher then 5 just like the condition statement if a field is required.
Ah and another thing, is it normal for Couch to throw in exception errors on the first instance of creating an page that needs to retrieve values from the database, and when refreshed the errors are gone again as the values are now insterted properly in the database. ( sorry im not good with databases )
And another question

,
is it actually possible to add an editable field thru the admin? Let say i have a field called fruits
and it holds a value of 5 so i would get 5 editable fields and if changed to 10 fruits i would get 10 fields?
Ty
EDIT:
Hey KK,
already figured it out on my first question , wow man you guys really thought of everything you guys are awesome just to make sure i got it right i need you expert opinion on my regex
EDIT: Hey KK,
I cant seem to be able to use the OR( | ) operator in the preg_match I searched all over the place and i could not find something that works using it example for what i need the error i get using it is this : Warning: preg_match(): No ending delimiter '/' found , is this because maybe i need the preg_match_all which obviously isnt available, awaiting your anwer really wanna solve this, according to this website
http://www.phpliveregex.com/ it should work so what am i doing wrong?
Ty
- Code: Select all
regex=/[3-9]|[1][0]/
- Code: Select all
<cms:editable name='carousel_slides' label='Slides Amount' maxlength='1' desc='Max: 5' group='carousel' order='0' validator='non_zero_integer | regex=/[2-5]$/' validator_msg='regex=Hold on buddy between 2 or 5!' type='text'>5</cms:editable>