Preview button?

5 posts by 2 authors in: Forums > CMS Builder
Last Post: July 25, 2008   (RSS)

By gkornbluth - July 24, 2008

I know it’s probably a silly question, but here goes...

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
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

Re: [gkornbluth] Preview button?

By Dave - July 24, 2008

Hi Jerry,

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.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Preview button?

By gkornbluth - July 25, 2008 - edited: July 25, 2008

Thanks Dave

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?
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

Re: [gkornbluth] Preview button?

By Dave - July 25, 2008

Sure. Anytime we need to know the url of the viewer that shows just one record we use the "Detail Page Url".

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!
Dave Edis - Senior Developer
interactivetools.com