Preview button?
5 posts by 2 authors in: Forums > CMS Builder
Last Post: July 25, 2008 (RSS)
By gkornbluth - July 24, 2008
I’ve created a series of records in a multi-record section editor.
When a non admin user logs on to the section editor for that page, there's a “preview” button next to the “create” button.
Since they can’t highlight any of the records in the list, when they click on the “preview” button, they get an “input file not specified” error.
So, what’s the “preview” button for and how is it used?
Thanks
Jerry Kornbluth
Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php
Re: [gkornbluth] Preview button?
By Dave - July 24, 2008
What the Preview button on the record list page does is open a new browser window with the url specified here:
Admin > Section Editors > Section Name > Viewer Urls > List Page Url
Basically it lets the users see the live "list view" of the records. If you don't have a list page url specfied the button won't appear, and if you have it specified but the file can't be found you'll get a 404 or "input file not specified" error.
You probably need to put in a full path such as /news/list.php instead of just list.php.
Hope that helps, let me know if you have any more questions about that.
interactivetools.com
Re: [Dave] Preview button?
By gkornbluth - July 25, 2008 - edited: July 25, 2008
Now it makes much more sense to me.
In the same vain, could you explain the purpose of the "Detail Page URL" entries on both the multi and single record section editors?
Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php
Re: [gkornbluth] Preview button?
By Dave - July 25, 2008
Right now we're using it to automatically create the $record['_link'] on list pages. For consistency it also displays the _link on detail pages.
Except for a few rare cases it's not really needed for Single Record Editors but we have it there for consistency and future use. One of those cases would be if you displayed a single record within a homepage and then wanted to have _link go to a detail page that showed all the information.
Hope that helps!
interactivetools.com
Re: [Dave] Preview button?
By gkornbluth - July 25, 2008
Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php