Hey BJ I just took a look at CategoryScreens.xml in the product subtree and it looks to me like ofbiz is still using freemarker templates to render screens. The only differences I see are the use of groovy instead of bash and a new "link" element.
Am I missing something? I do not see that ftl has been "moved away from". Skip -----Original Message----- From: BJ Freeman [mailto:[email protected]] Sent: Monday, February 21, 2011 10:09 PM To: [email protected] Subject: Re: Drop down menu with category and subCategory of the same problem if you look in products/widgets (trunk or 10.4) you will see the code that generates screens and menus. also the data is martialed in the groovy files, either called out in the Widget or in the web-inf/action folder with the name of the ftl file, defined in the widget. The look and feel of these screens are controlled by the code in the themes folder. so if you want to change functionality work with the widgets. if you want you own look and feel then create a new theme. hope that helps ========================= BJ Freeman Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=52> Specialtymarket.com <http://www.specialtymarket.com/> Systems Integrator-- Glad to Assist Chat Y! messenger: bjfr33man Hardik Handa sent the following on 2/21/2011 9:58 PM: > What are you using presently ??? > > -----Original Message----- > From: BJ Freeman [mailto:[email protected]] > Sent: 22 February 2011 AM 11:26 > To: [email protected] > Subject: Re: Drop down menu with category and subCategory of the same problem > > Ok so your using an Ftl, and the pattern your using has been moved away > from. > I will let someone that may stil use this pattern respond. > :D > thanks for the added into. > > ========================= > BJ Freeman > Strategic Power Office with Supplier Automation<http://www.businessesnetwork.com/automation/viewforum.php?f=52> > Specialtymarket.com<http://www.specialtymarket.com/> > Systems Integrator-- Glad to Assist > > Chat Y! messenger: bjfr33man > > > Hardik Handa sent the following on 2/21/2011 9:49 PM: >> I have been working on ofbiz for a long time now and know the functionalities well as in my knowledge base in middle level ! All i wanted was that could you solve my problem, which i have already mentioned FYI everything is set in accordance to ofbiz framework. With reference to my first mail could you solve my problem i am pasting in the code >> <div id="site_main_nav"> >> <ul class="cufon topnav"> >> <#list topLevelList as category> >> <li class="first_child"><@categoryList parentCategory="" category=category /> >> >> >> <#if (Static["org.ofbiz.product.category.CategoryWorker"].checkTrailItem(request, category.getString("productCategoryId"))) || (curCategoryId?exists&& curCategoryId == category.productCategoryId)> >> <#assign subCatList = Static["org.ofbiz.product.category.CategoryWorker"].getRelatedCategoriesRet( request, "subCatList", category.getString("productCategoryId"), true)> >> <#if subCatList?exists> >> >> <ul class="subnav"> >> <#list subCatList as subCat> >> <li><@categoryList parentCategory=category category=subCat /></#list></li> >> </ul> >> >> >> </#if> >> </#if> >> </#list> >> </li> >> </ul> >> </#if> >> >> >> -----Original Message----- >> From: BJ Freeman [mailto:[email protected]] >> Sent: 22 February 2011 AM 11:16 >> To: [email protected] >> Subject: Re: Drop down menu with category and subCategory of the same problem >> >> I assume you are trying to work in the ofbiz patterns, so let you know >> where to look in ofbiz. >> headers are dealt with in themes. >> however functinoality of forms and screens are dealt with in the >> component/widgets. >> >> if you doing something not in the ofbiz patterns please explain. >> >> >> >> >> ========================= >> >> BJ Freeman >> Strategic Power Office with Supplier Automation<http://www.businessesnetwork.com/automation/viewforum.php?f=52> >> Specialtymarket.com<http://www.specialtymarket.com/> >> Systems Integrator-- Glad to Assist >> >> Chat Y! messenger: bjfr33man >> >> >> Hardik Handa sent the following on 2/21/2011 9:40 PM: >>> BJ could you be more specific towards your answer i don't see a direct solution to my query with your reply. Thanks in advance. >>> >>> -----Original Message----- >>> From: BJ Freeman [mailto:[email protected]] >>> Sent: 22 February 2011 AM 11:09 >>> To: [email protected] >>> Subject: Re: Drop down menu with category and subCategory of the same problem >>> >>> the themes is where you defined how the screens renders to the end user. >>> this is also defined for specific component/screens in its decorators >>> >>> ========================= >>> BJ Freeman >>> Strategic Power Office with Supplier Automation<http://www.businessesnetwork.com/automation/viewforum.php?f=52> >>> Specialtymarket.com<http://www.specialtymarket.com/> >>> Systems Integrator-- Glad to Assist >>> >>> Chat Y! messenger: bjfr33man >>> >>> >>> Hardik Handa sent the following on 2/21/2011 9:30 PM: >>>> I want to display drop down in my header with category and subcategory as drop down options, i was able to get the top level element i.e. category but the subcategory list is a bit dicey. For example whenever i click widgets all the elements in the menu bar on mousemove over give subcategory list of the Widgets, if i click gadgets all of the elements show subcategory list for gadgets ! Any Suggestions ?? Thanks in advance >>>> >>>> >>>> Regards, >>>> Hardik Handa >>>> Software Engineer - CMHP-RETAIL-COE-eCommerce >>>> HCL Technologies Ltd. >>>> C-22A, Sector 57, NOIDA. 201301, UP. (India) >>>> Tel: +91-120-2586417-19 >>>> Mob: +91-9811671898 >>>> www.hcltech.com >>>> www.hcl.com >>>> >>>> >>>> >>>> >>>> ::DISCLAIMER:: >>>> ----------------------------------------------------------------------- ------------------------------------------------ >>>> >>>> The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. >>>> It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in >>>> this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. >>>> Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of >>>> this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have >>>> received this email in error please delete it and notify the sender immediately. Before opening any mail and >>>> attachments please check them for viruses and defect. >>>> >>>> ----------------------------------------------------------------------- ------------------------------------------------ >>>> >>> >>> >> >> >> > > >
