KonaKart Community Forum

Installation / Configuration => Programming of KonaKart => Topic started by: ada_v on April 23, 2009, 12:19:07 pm

Title: Konakart CategoriesTile.jsp
Post by: ada_v on April 23, 2009, 12:19:07 pm
Hi,

Probably it is a very simple question, but because I'm new in KonaKart I meet lready with a problem :-)

- how can I list all the categories and subcategories in CategoriesTile
- I tried to do something like this:

<logic:iterate id="cat" name="catList" type="com.konakart.appif.CategoryIf">   
   <html:link page="/SelectCat.do" paramId="catId" paramName="cat" paramProperty="id">
      <%for (int i = 0; i < cat.getLevel(); i++){%>
         <%="&nbsp;"%>
      <% }%>
           <%=cat.getName()%>
   </html:link>
       
      <logic:iterate id="cat" name="subCatArray" type="com.konakart.appif.CategoryIf">
         <html:link page="/SelectCat.do" paramId="catId" paramName="cat" paramProperty="id">
         <%=cat.getName()%>
         </html:link>
   </logic:iterate>     

</logic:iterate>


Can anyone say me how it is wrong or how could I do this?

Thank in advance.
Title: Re: Konakart CategoriesTile.jsp
Post by: julie on April 23, 2009, 12:56:58 pm
If you call the getCats() method of the category manager, it contains the whole of the category tree.