OpenEdit User ForumWelcome to the OpenEdit DAM User Forum. You must be registered and logged in to post a new comment or topic. If you require dedicated support to your OpenEdit DAM project, please see our Buy OpenEdit DAM Support page for more information. How to display multiple catalogs on homepageI have a project where I have to display multiple catalogs on homepage. I have a file at /business/cataloglist.html and I have created /business/cataloglist.xconf as follows: <page> Then I have a file at /education/cataloglist.html and I have created /education/cataloglist.xconf as follows <page> Then I reference them on homepage as follows: $pages.include("/business/cataloglist.html?categoryid=index") Nothing shows up but an empty page. I have been able to get multiple blogs show up on the homepage but this catalog thing is not working for me. Please help, thanking you in advance. |
That looks correct. Does it display $category on your HTML page?
Well if I type the complete address i.e. http://www.example.com/business/cataloglist.html?categoryid=index in the browser address bar, it display "Business" for $category.
If I type the complete address i.e. http://www.example.com/education/cataloglist.html?categoryid=index in the browser address bar, it display "Education" for $category.
However when I access it using $pages.include("/education/cataloglist.html?categoryid=index") and $pages.include("/business/cataloglist.html?categoryid=index") from my website home page, $category shows "Index" for both statements.
Please help.
Shakeel
Well it seems to me that index might be the correct value. There are other actions that get run when you link into the /education/ folder that might cause the problem tho.
Can you setup this same setup on our demo server for me to review? Be aware: the files all get reloaded at 6:00 EST each day. http://demo.openedit.org/sandbox
Thanks for your response.
I have setup two stores namely Google and Yahoo on Sandbox. They display catalogs on the homepage however these catalogs point to /store and not to /google or /yahoo. I have created cataloglist.html and cataloglist.xconf in both /google/layout and /yahoo/layout directories. Kindly let me know what am I doing wrong.
Ok thanks. That page is now working. We had to make a change to the code to support more than one catalog id on the getStore method. You will need to update your ecommerce code to todays build. Just use your /openedit/update/plugins/ tool.
It works fabolously. I spent a week and a half trying different things.
Thank you, thank you, thank you. :)