Error on preview

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

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: [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/