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: [paulmac] Error on preview

By (Deleted User) - March 26, 2012

Hi paulmac,

It sounds like it might just be a setting missing in the Section Editors->[TABLE]->Viewer Urls 'Detail Page' (or preview page if the page is different).

The long string of 9's is normal output for the preview page (it creates a temp record to show the page in question).

With regard to the ticker not working, how is it being populated? My guess is that the new items are not being 'published' which means that the query to get the news items wouldn't return them.

Let me know if this helps,

Tom

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/