Error on preview

4 posts by 3 authors in: Forums > CMS Builder
Last Post: March 30, 2012   (RSS)

By paulmac - March 26, 2012

Hi

On a client's site running CMSB I have a news ticker that displays a list of the news items. They added a new news item and then clicked on preview (this was the first time they had used preview). Since they did this the news items do not display in the ticker.

When they clicked on preview thay went to a page that couldn't be displayed - http://www.doaminname.com/cmsAdmin/newsDetail.php?preview-9999999999

Is it possible that dping the preview has had some effect on the ticker?

Thanks for any help

Re: [Tom P] Error on preview

By paulmac - March 26, 2012

Hi Tom

I'm populating it with the following:

// load records
list($latest_newsRecords, $latest_newsMetaData) = getRecords(array(
'tableName' => 'latest_news',
));

Thanks

Re: [paulmac] Error on preview

By Jason - March 30, 2012

Hi,


Your getRecords() call looks correct. However, the url path you are showing:
http://www.doaminname.com/cmsAdmin/newsDetail.php?preview-9999999999

probably won't work. It's looking for a newsDetail.php file inside cmsAdmin, which it probably won't find.

If you go through
Section Editor -> {Your Section Name} -> Viewer Urls

under Preview URL change it from
newsDetail.php

to:

/newDetail.php

And click "Save Details". After that, clicking preview should take you to

http://www.doaminname.com/newsDetail.php?preview-9999999999

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/