On Wednesday 26 September 2007, David Goodenough wrote: > On Wednesday 26 September 2007, David Goodenough wrote: > > I have a requirement to display CMS managed content the ecommerce app. > > > > I think that what I have to do is to use content/viewContent.ftl, but I > > am unsure how to invoke this, and what I need to pass to it to refer > > to either specific document in the CMS. I am also unsure how to > > enter suitable documents in the CMS. > > > > Lets take an example, I have a page which is managed through the CMS > > which is the physical location of the store, with links to a map and > > a travel directions etc. > > > > I presume that I set up this page using the Content Manager Application, > > and I have found a place to create a new Content item and give it a > > name, mime-type etc, but I have yet to find where I actually create > > the content itself, i.e either upload a file or type in the content. > > > > Having created it with a name, I guess I need to pass that to > > viewContent.ftl in order that it be displayed. Say I was passing it from > > a Menu item, I guess that I am going to invoke it with an <A> tag, > > something like:- > > > > <a href="<@ofbizUrl>viewContent</@ofbizUrl>" (or it is > > content/viewContent?) but I am unsure how I pass in the ID of the content > > I want to view. > > > > Are there any guides to using CMS managed content in the emcommerce app? > > > > David > > Looking at the way the Store Policies are displayed it would appear that I > need to create a document with a content-id of "WebStoreCONTENT" and a > map-key appropriate to the thing I want to display. > > <sub-content content-id="WebStoreCONTENT" map-key="policies"/> > > But I do not know how to view or edit this item (the policies document) or > to create a new one. > > Can someone give me step by step instructions to get to the right place as > I am currently lost. > > David
Well I found that, by using ContentManager-DataResources I found the STORE_POLICIE and STORE_POLICIE2 documents, and I think I now understand how to create and edit them. I think I also understand how to create new Content, attach it to a document and assign it a parent. What I do not understand is how the map-key=policies" maps to the document ID STORE_POLICIE. Can anyone help - please. David
