Re: [apdance9] Preview and Alert Function
Hi April,
I'm not sure exactly when this will be available. However, there is a good work around. You can add a special field to your section called "hidden" it's just a check box. When it's selected, it will be "hidden" from your CMS Builder queries (ie, not live). As soon as you uncheck it, the record becomes available. You can then create some records, save them, modify them, etc, and as long as the "hidden" field is checked, users of the site won't be able to see it.
You can then create a special viewer for looking at "hidden" fields. It would be exactly the same as your regular viewer except you would change your getRecords() statement like this:
If you're getting an individual record (example):
list($articleRecord,$articleMetaData)=getRecords(array(
'tableName' => 'articles',
'where' => whereRecordNumberInUrl(1),
'ignoreHidden' => true,
));
or for multiple records (example):
list($articleRecords,$articleMetaData)=getRecords(array(
'tableName' => 'articles',
'ignoreHidden' => true,
'where' => "hidden=1",
));
In this last example, it will ONLY return records where the hidden field has been checked.
Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/