OpenEdit User Forum

Welcome 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 homepage

I 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>
    <page-action name="CartModule.loadCatalog"/>
    <property name="catalogid">business</property>
</page>

Then I have a file at /education/cataloglist.html and I have created /education/cataloglist.xconf as follows

<page>
    <page-action name="CartModule.loadCatalog"/>
    <property name="catalogid">education</property>
</page>

Then I reference them on homepage as follows:

$pages.include("/business/cataloglist.html?categoryid=index")
$pages.include("/education/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?

Christopher Burkey (OpenEdit) Sat, Feb 21, 9:57 AM

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

Shakeel Ahmad Tue, Feb 24, 1:54 AM

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

Christopher Burkey (OpenEdit) Tue, Feb 24, 11:58 AM

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.

Shakeel Ahmad Tue, Feb 24, 4:03 PM

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.

Christopher Burkey (OpenEdit) Tue, Feb 24, 4:36 PM

It works fabolously. I spent a week and a half trying different things.

Thank you, thank you, thank you. :)

Shakeel Ahmad Wed, Feb 25, 5:08 AM

Log in or post as Anonymous:

Submission test: 0+5=