• Welcome to KonaKart Community Forum. Please login or sign up.
 

Konakart CategoriesTile.jsp

Started by ada_v, April 23, 2009, 12:19:07 pm

Previous topic - Next topic

ada_v

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.

julie

If you call the getCats() method of the category manager, it contains the whole of the category tree.