hello,
I commented out the permission in appbar.ftl and it generated the error
below,I think this may not work cos of the structure of the list-map coupled
with the permission.
org.ofbiz.base.util.GeneralException: Error rendering screen
[component://accounting/widget/CommonScreens.xml#main]:
org.ofbiz.base.util.GeneralException: Error rendering screen
[component://accounting/widget/CommonScreens.xml#main-decorator]:
org.ofbiz.base.util.GeneralException: Error rendering screen
[component://common/widget/CommonScreens.xml#GlobalDecorator]:
java.lang.RuntimeException: Error rendering included template at location
[component://common/webcommon/includes/appbar.ftl]:
freemarker.core.ParseException: Encountered "" at line 47, column 7.
Was expecting one of:
in the CommonScreen.xml,there is appbar.ftl reference:
<!-- render appbar -->
<platform-specific><html><html-template
location="component://assetmaint/webapp/assetmaint/includes/appbar.ftl"/></html></platform-specific>
<container style="contentarea">
<container style="${MainColumnStyle}">
and having an indepth look at the appbar.ftl:
<#if userLogin?has_content>
<div id="main-navigation">
<ul>
<#list displayApps as display>
<#assign thisApp = display.getContextRoot()>
<#assign permission = true>
<#assign selected = false>
<#assign permissions = display.getBasePermission()>
<#list permissions as perm>
<#if (perm != "NONE" && !security.hasEntityPermission(perm, "_VIEW",
session))>
<#assign permission = false>
</#if>
</#list>
<#if permission == true>
<#if thisApp == contextPath>
<#assign selected = true>
</#if>
<li<#if selected> class="selected"</#if>><a
href="${response.encodeURL(thisApp + "/control/main" + externalKeyParam)}"
title=""><#if
uiLabelMap?exists>${uiLabelMap[display.title]}<#else>${display.title}</#if></a></li>
</#if>
</#list>
</ul>
<br class="clear"/>
</div>
</#if>
this shows that the appbar is built in a list-map.Now where is the list-map
populated from?
I did a "view source" on the page and extracted the following which is
similar to the supposed content of the list-map above:
<div id="main-navigation">
<ul>
<li class="selected"><a
href="/accounting/control/main?externalLoginKey=EL70848341536"
title="">Accounting</a></li>
<li><a href="/catalog/control/main?externalLoginKey=EL70848341536"
title="">Catalog</a></li>
<li><a href="/content/control/main?externalLoginKey=EL70848341536"
title="">Content</a></li>
<li><a href="/example/control/main?externalLoginKey=EL70848341536"
title="">Example</a></li>
<li><a href="/facility/control/main?externalLoginKey=EL70848341536"
title="">Facility</a></li>
<li><a
href="/manufacturing/control/main?externalLoginKey=EL70848341536"
title="">Manufacturing</a></li>
<li><a href="/marketing/control/main?externalLoginKey=EL70848341536"
title="">Marketing</a></li>
<li><a href="/ordermgr/control/main?externalLoginKey=EL70848341536"
title="">Order</a></li>
<li><a href="/partymgr/control/main?externalLoginKey=EL70848341536"
title="">Party</a></li>
<li><a href="/webtools/control/main?externalLoginKey=EL70848341536"
title="">WebTools</a></li>
<li><a href="/workeffort/control/main?externalLoginKey=EL70848341536"
title="">WorkEffort</a></li>
</ul>
<br class="clear"/>
</div>
<div class="centerarea">
suggestion is highly welcomed.
Thanks.
Krzysztof Podejma <[EMAIL PROTECTED]> wrote:
just remove security permission for apps that you don't want to use, and
these apps will be hidden.
Krzysztof
2007/7/13, kurtis shipp :
>
>
> I checked through CommonScreen.xml but could not find exactly what I
> want,l only got to see header.ftl,appbar.ftl,messages.ftl and footer.ftl
>
> The scenario is this:
> In the Application Tab bar,there are menus for
> Accounting,Catalog,Content,Example,Facility,Manufacturing,Marketing,Order,Party,Webtools,WorkEffort
>
> and I need only Accounting,Catalog, Party and Webtools for my project.
>
> have extensively checked through related files but does not seem to be
> getting it.
>
> kind idea/suggestion is welcomed.
>
> Thanks.
>
>
>
>
>
> Krzysztof Podejma wrote:
> in this case it is in CommonScreens.xml in screen main
> list-name="invoiceTypes">
>
>
> but in most of screens this kind of data is in bsh files
> Krzysztof
>
> 2007/7/13, kurtis shipp :
> >
> > hello,
> >
> > Concerning the templates I was able to edit the application header
> > (appheader) by editing the file
> >
> c:\ofbiz\application\webapp\accounting\included\commonscreens.xml,alongside
> > this ,l edited commomonscreen.xml
> >
> > Also did some work with ......\accounting\webapp\accounting\main.ftl
> >
> > Now the question is:
> > 1. How do I edit the application navigation tab/bar that has
> > Account,Catalog,Content,Example.....
> >
> > 2. the list value for invoice for example, in the freemarker below:
> >
> > <#list invoiceTypes as invoiceType>
> >
> findInvoices?LookupFlag=Y&invoiceTypeId=${
> > invoiceType.invoiceTypeId}">${
> > uiLabelMap.AccountingShowInvoices} ${invoiceType.get
> > ("description",locale)}
> >
> >
> > where is the content of the list-map populated from?for example in the
> > case of the AccountingShowInvoices,the contents are
> >
> >
> >
> >
> > Show Invoices Commission
> > Show Invoices Customer Return
> > Show Invoices Interest
> > Show Invoices Purchase Invoice
> > Show Invoices Sales Invoice
> >
> > Show Invoices Approved
> > Show Invoices Cancelled
> > Show Invoices In-Process
> > Show Invoices Paid
> > Show Invoices Ready for Posting
> > Show Invoices Received
> > Show Invoices Sent
> > Show Invoices Write Off
> >
> >
> >
> >
> >
> > ---------------------------------
> > Boardwalk for $500? In 2007? Ha!
> > Play Monopoly Here and Now (it's updated for today's economy) at Yahoo!
> > Games.
>
>
>
> ---------------------------------
> Be a better Globetrotter. Get better travel answers from someone who
> knows.
> Yahoo! Answers - Check it out.
---------------------------------
Pinpoint customers who are looking for what you sell.