OpenEdit User ForumWelcome to the OpenEdit User Forum. Whether you are newbie or a seasoned expert, the OpenEdit User Forum is our virtual water cooler where we commune to share ideas and publish information about new and existing features. We also make regular posts to our blog. You must be registered and logged in to post a new comment or topic. If you require dedicated support to your OpenEdit project, please visit our Web Site & Application Maintenance page for access to our online issue tracker. Ask. Answer. Enjoy. $pages.include() and $pages.stream()Why is it so that when I include a page using either $pages.include() or $pages.stream(), it gives a 404 error if the page does not exist but it does not include the page and also do not show any error if the page exists. e.g. I include a page with a search field on top of another page. The page containing the search field will not show nor give any errors if it exists. But if I include any page which does not exist, a 404 error is listed instead. Why don't pages.include() and pages.stream() show the content of the page being included in certain cases. I include the search page and it works on most of my sites but it does not work on at least three new sites. Tell me what I might be doing wrong? Posted by Shakeel Ahmad Tue, Jun 24 2008 2:57 AM
|
Most Recent Posts
Adding custom properties to Users/Groups
(1 comments)
Versions
(3 comments)
OE Toolbar - Upload New File
(2 comments)
Latested stable build
(1 comments)
How much RAM does one instance of openedit requires?
(4 comments)
Save Permissions link not working
(1 comments)
Bug in Spring plugin.xml sorting
(0 comments)
Translations Dropdown
(1 comments)
Could not find bean named Search
(4 comments)
Creating Objects with Velocity
(2 comments) Archive
Log in
Syndicate:
|
Copyright 2008 OpenEdit Inc. All rights reserved. last modified: Jun 24 2008

What you are probably doing is including the webapp name in the include. Make sure you do not include the name of the webapp in the include. For example
$pages.include("/search/index.html") is correct
$pages.include("/testoe/search/index.html") is not correct
Also, if you log in with edit rights you get a 404 page. Otherwise it gives a smaller or no error.
Check the logs for any errors there.
Yup, it worked. Thanks.
Ok, to really be fair, you have to take that 8 hours figure and reduce it some. It took me 8 hours to put together the presentation. It would take far less time to put together that site from scratch (my from scratch does involve copy/paste from some of my existing apps of course :). Thank you for the kind words about the presentation, though. :)
Haha! True enough - needed something as a comparison though!