You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Hardik Handa <Ha...@hcl.com> on 2011/02/22 06:30:02 UTC

Drop down menu with category and subCategory of the same problem

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.

-----------------------------------------------------------------------------------------------------------------------

Re: Drop down menu with category and subCategory of the same problem

Posted by BJ Freeman <bj...@free-man.net>.
so why tell me why not answer the question he ask?
BTW I don't follow the pattern you suggest.
to much maintainence.

=========================
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

David E Jones sent the following on 2/21/2011 11:15 PM:

>
>
> BJ: what are you talking about? In what way has this "been moved away from"? Do you mean the use of FTL templates?
>
> Nope. In fact, FTL templates are meant to be used exclusively in customer-facing sites, such as the ecommerce webapp in OFBiz.
>
> -David
>
>
> On Feb 21, 2011, at 9:55 PM, BJ Freeman wrote:
>
>> 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:bjfree@free-man.net]
>>> Sent: 22 February 2011 AM 11:16
>>> To: user@ofbiz.apache.org
>>> 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:bjfree@free-man.net]
>>>> Sent: 22 February 2011 AM 11:09
>>>> To: user@ofbiz.apache.org
>>>> 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.
>>>>>
>>>>> -----------------------------------------------------------------------------------------------------------------------
>>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>
>

Re: Drop down menu with category and subCategory of the same problem

Posted by David E Jones <de...@me.com>.

BJ: what are you talking about? In what way has this "been moved away from"? Do you mean the use of FTL templates?

Nope. In fact, FTL templates are meant to be used exclusively in customer-facing sites, such as the ecommerce webapp in OFBiz.

-David


On Feb 21, 2011, at 9:55 PM, BJ Freeman wrote:

> 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:bjfree@free-man.net]
>> Sent: 22 February 2011 AM 11:16
>> To: user@ofbiz.apache.org
>> 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:bjfree@free-man.net]
>>> Sent: 22 February 2011 AM 11:09
>>> To: user@ofbiz.apache.org
>>> 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.
>>>> 
>>>> -----------------------------------------------------------------------------------------------------------------------
>>>> 
>>> 
>>> 
>> 
>> 
>> 
> 


RE: Drop down menu with category and subCategory of the same problem

Posted by Hardik Handa <Ha...@hcl.com>.
I have done all this . Have reffered to sidedeepcategory.ftl and sideepcategory.groovy in ecommerce store for implementation. You are actually not understanding my question mate. I have done all the basic framework activities ! Kindly read my first mail again attaching it again here for your reference.


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 !


-----Original Message-----
From: BJ Freeman [mailto:bjfree@free-man.net] 
Sent: 22 February 2011 AM 11:39
To: user@ofbiz.apache.org
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:bjfree@free-man.net]
> Sent: 22 February 2011 AM 11:26
> To: user@ofbiz.apache.org
> 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:bjfree@free-man.net]
>> Sent: 22 February 2011 AM 11:16
>> To: user@ofbiz.apache.org
>> 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:bjfree@free-man.net]
>>> Sent: 22 February 2011 AM 11:09
>>> To: user@ofbiz.apache.org
>>> 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.
>>>>
>>>> -----------------------------------------------------------------------------------------------------------------------
>>>>
>>>
>>>
>>
>>
>>
>
>
>



Re: Drop down menu with category and subCategory of the same problem

Posted by BJ Freeman <bj...@free-man.net>.
Skip if you look at the code you will see that is does not follow the 
pattern used now. Yes the widget call the Ftl when you need the power of 
  ftl when widget will not do the job.

the "moved away from" reference is from the ver 3.0 to ver 4.0 where the 
decorator of widget then the themes were added so the functionality of 
"screens" was done in widgets, with the code for laying out the data 
left in the sometimes left in FTL's.

David brings up that using only FTL only in eccomerce, this is the first 
time I have heard this on either mailing list or documentation,so I 
learned something.

=========================
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


skip@thedevers sent the following on 2/22/2011 9:08 AM:
> 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:bjfree@free-man.net]
> Sent: Monday, February 21, 2011 10:09 PM
> To: user@ofbiz.apache.org
> 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:bjfree@free-man.net]
>> Sent: 22 February 2011 AM 11:26
>> To: user@ofbiz.apache.org
>> 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:bjfree@free-man.net]
>>> Sent: 22 February 2011 AM 11:16
>>> To: user@ofbiz.apache.org
>>> 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:bjfree@free-man.net]
>>>> Sent: 22 February 2011 AM 11:09
>>>> To: user@ofbiz.apache.org
>>>> 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.
>>>>>
>>>>> -----------------------------------------------------------------------
> ------------------------------------------------
>>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>>
>
>
>


RE: Drop down menu with category and subCategory of the same problem

Posted by "skip@thedevers" <sk...@thedevers.org>.
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:bjfree@free-man.net]
Sent: Monday, February 21, 2011 10:09 PM
To: user@ofbiz.apache.org
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:bjfree@free-man.net]
> Sent: 22 February 2011 AM 11:26
> To: user@ofbiz.apache.org
> 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:bjfree@free-man.net]
>> Sent: 22 February 2011 AM 11:16
>> To: user@ofbiz.apache.org
>> 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:bjfree@free-man.net]
>>> Sent: 22 February 2011 AM 11:09
>>> To: user@ofbiz.apache.org
>>> 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.
>>>>
>>>> -----------------------------------------------------------------------
------------------------------------------------
>>>>
>>>
>>>
>>
>>
>>
>
>
>



Re: Drop down menu with category and subCategory of the same problem

Posted by BJ Freeman <bj...@free-man.net>.
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:bjfree@free-man.net]
> Sent: 22 February 2011 AM 11:26
> To: user@ofbiz.apache.org
> 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:bjfree@free-man.net]
>> Sent: 22 February 2011 AM 11:16
>> To: user@ofbiz.apache.org
>> 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:bjfree@free-man.net]
>>> Sent: 22 February 2011 AM 11:09
>>> To: user@ofbiz.apache.org
>>> 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.
>>>>
>>>> -----------------------------------------------------------------------------------------------------------------------
>>>>
>>>
>>>
>>
>>
>>
>
>
>


RE: Drop down menu with category and subCategory of the same problem

Posted by Hardik Handa <Ha...@hcl.com>.
What are you using presently ???

-----Original Message-----
From: BJ Freeman [mailto:bjfree@free-man.net] 
Sent: 22 February 2011 AM 11:26
To: user@ofbiz.apache.org
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:bjfree@free-man.net]
> Sent: 22 February 2011 AM 11:16
> To: user@ofbiz.apache.org
> 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:bjfree@free-man.net]
>> Sent: 22 February 2011 AM 11:09
>> To: user@ofbiz.apache.org
>> 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.
>>>
>>> -----------------------------------------------------------------------------------------------------------------------
>>>
>>
>>
>
>
>



Re: Drop down menu with category and subCategory of the same problem

Posted by BJ Freeman <bj...@free-man.net>.
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:bjfree@free-man.net]
> Sent: 22 February 2011 AM 11:16
> To: user@ofbiz.apache.org
> 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:bjfree@free-man.net]
>> Sent: 22 February 2011 AM 11:09
>> To: user@ofbiz.apache.org
>> 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.
>>>
>>> -----------------------------------------------------------------------------------------------------------------------
>>>
>>
>>
>
>
>


RE: Drop down menu with category and subCategory of the same problem

Posted by Hardik Handa <Ha...@hcl.com>.
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:bjfree@free-man.net] 
Sent: 22 February 2011 AM 11:16
To: user@ofbiz.apache.org
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:bjfree@free-man.net]
> Sent: 22 February 2011 AM 11:09
> To: user@ofbiz.apache.org
> 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.
>>
>> -----------------------------------------------------------------------------------------------------------------------
>>
>
>



Re: Drop down menu with category and subCategory of the same problem

Posted by BJ Freeman <bj...@free-man.net>.
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:bjfree@free-man.net]
> Sent: 22 February 2011 AM 11:09
> To: user@ofbiz.apache.org
> 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.
>>
>> -----------------------------------------------------------------------------------------------------------------------
>>
>
>


RE: Drop down menu with category and subCategory of the same problem

Posted by Hardik Handa <Ha...@hcl.com>.
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:bjfree@free-man.net] 
Sent: 22 February 2011 AM 11:09
To: user@ofbiz.apache.org
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.
>
> -----------------------------------------------------------------------------------------------------------------------
>


Re: Drop down menu with category and subCategory of the same problem

Posted by BJ Freeman <bj...@free-man.net>.
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.
>
> -----------------------------------------------------------------------------------------------------------------------
>