Forums / Developer / Admin/user Preview
Tony Wood
Wednesday 25 June 2003 9:35:02 am
Hi,v3.1
We are looking at site preview, we notice that if you preview in 'Admin view' it works, but if you use your customised normal site view it fails.
Has anyone else had this problem?
Tony
Tony Wood : twitter.com/tonywood Vision with Technology Experts in eZ Publish consulting & development Power to the Editor! Free eZ Training : http://www.VisionWT.com/training eZ Future Podcast : http://www.VisionWT.com/eZ-Future
Wednesday 25 June 2003 10:00:14 am
Arrhh... its a section 'pagelayout' problem.
Bård Farstad
Wednesday 25 June 2003 1:31:20 pm
Any more information about this problem?
--bård
Documentation: http://ez.no/doc
Wednesday 25 June 2003 3:47:35 pm
Nope, just me being dumb... I used a page_layout_section.tpl for the main section and had the pagelayout.tpl as the catchall.. i.e. page error, this page would then wait three seconds and bounce you to the home page. I found that if i do this, the preview function within admin does not work as it seems to use a different section from the one your in, to display the page.To solve the problem i removed the section_layout and replace the code in pagelayout. I don't get the nice page not found message, but i get previews, which is what i needed.
I'll need to do some tests with this for sites that have many section displays.....