You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Mansour Al Akeel <ma...@gmail.com> on 2010/10/04 03:41:52 UTC
Setting up layoutSettings.headerImageLinkUrl in the theme
Hello all:
In the themes there is varilabe that couldn't figure out how to set.
<#if layoutSettings.headerImageLinkUrl?exists>
<#assign logoLinkURL = "${layoutSettings.headerImageLinkUrl}">
<#else>
<#assign logoLinkURL = "${layoutSettings.commonHeaderImageLinkUrl}">
</#if>
I understand commonHeaderImageLinkUrl is set in the common component
at framework/common/widget/CommonScreens.xml
how can "headerImageLinkUrl" be used in the theme ?
Re: Setting up layoutSettings.headerImageLinkUrl in the theme
Posted by Mansour Al Akeel <ma...@gmail.com>.
Thank you Erwan.
On Wed Oct 06,2010 09:40 pm, Erwan de FERRIERES wrote:
> Le 04/10/2010 03:41, Mansour Al Akeel a ?crit :
> > Hello all:
> >
> > In the themes there is varilabe that couldn't figure out how to set.
> >
> > <#if layoutSettings.headerImageLinkUrl?exists>
> > <#assign logoLinkURL = "${layoutSettings.headerImageLinkUrl}">
> > <#else>
> > <#assign logoLinkURL = "${layoutSettings.commonHeaderImageLinkUrl}">
> > </#if>
> >
> > I understand commonHeaderImageLinkUrl is set in the common component
> > at framework/common/widget/CommonScreens.xml
> >
> > how can "headerImageLinkUrl" be used in the theme ?
> >
> >
> >
> image logo is defined in the theme data, eg :
> <VisualThemeResource visualThemeId="BLUELIGHT"
> resourceTypeEnumId="VT_HDR_IMAGE_URL"
> resourceValue="/images/ofbiz_logo.gif" sequenceId="01"/>
>
> Cheers,
>
> --
> Erwan de FERRIERES
> www.nereide.biz
Re: Setting up layoutSettings.headerImageLinkUrl in the theme
Posted by Erwan de FERRIERES <er...@nereide.fr>.
Le 04/10/2010 03:41, Mansour Al Akeel a écrit :
> Hello all:
>
> In the themes there is varilabe that couldn't figure out how to set.
>
> <#if layoutSettings.headerImageLinkUrl?exists>
> <#assign logoLinkURL = "${layoutSettings.headerImageLinkUrl}">
> <#else>
> <#assign logoLinkURL = "${layoutSettings.commonHeaderImageLinkUrl}">
> </#if>
>
> I understand commonHeaderImageLinkUrl is set in the common component
> at framework/common/widget/CommonScreens.xml
>
> how can "headerImageLinkUrl" be used in the theme ?
>
>
>
image logo is defined in the theme data, eg :
<VisualThemeResource visualThemeId="BLUELIGHT"
resourceTypeEnumId="VT_HDR_IMAGE_URL"
resourceValue="/images/ofbiz_logo.gif" sequenceId="01"/>
Cheers,
--
Erwan de FERRIERES
www.nereide.biz
Re: Setting up layoutSettings.headerImageLinkUrl in the theme
Posted by Mansour Al Akeel <ma...@gmail.com>.
Hello BJ:
Thank you for helping. I found the purpose of
layoutSettings.headerImageLinkUrl.
>From applications/party/widget/partymgr/CommonScreens.xml
<!-- layoutSettings.headerImageUrl can be used to specify an application specific logo; if not set,
then the global layoutSettings.commonHeaderImageUrl (specified in GlobalDecorator) will be used. -->
<!--<set field="layoutSettings.headerImageUrl" value="/images/ofbiz_logo.gif" global="true"/>-->
<!-- <set field="layoutSettings.headerMiddleBackgroundUrl" value="" global="true"/> -->
<!-- <set field="layoutSettings.headerRightBackgroundUrl" value="" global="true"/> -->
<!-- TODO: Use transform to specify component URI -->
This is cool.
On Sun Oct 03,2010 08:09 pm, BJ Freeman wrote:
> from
> framework/common/widgets/commonscreens.xml
> <set field="layoutSettings.commonHeaderImageLinkUrl"
> from-field="layoutSettings.commonHeaderImageLinkUrl"
> default-value="main" global="true"/>
>
>
> Mansour Al Akeel sent the following on 10/3/2010 6:41 PM:
> >Hello all:
> >
> >In the themes there is varilabe that couldn't figure out how to set.
> >
> ><#if layoutSettings.headerImageLinkUrl?exists>
> > <#assign logoLinkURL = "${layoutSettings.headerImageLinkUrl}">
> ><#else>
> > <#assign logoLinkURL = "${layoutSettings.commonHeaderImageLinkUrl}">
> ></#if>
> >
> >I understand commonHeaderImageLinkUrl is set in the common component
> >at framework/common/widget/CommonScreens.xml
> >
> >how can "headerImageLinkUrl" be used in the theme ?
> >
> >
> >
Re: Setting up layoutSettings.headerImageLinkUrl in the theme
Posted by BJ Freeman <bj...@free-man.net>.
I won't be able to dig into this till next week.
Mansour Al Akeel sent the following on 10/4/2010 5:34 PM:
> It's still not working with me.
> I am not sure if I missed something. Here's what I did:
> Edited framework/common/widget/CommonScreens.xml
> and replaced every occurance of "/images/ofbiz_logo.gif" with
> "/images/myLogo.png".
> deleted the old ofbiz_logo.gif and placed the mine.
> I commented out :
>
> <!--
> <VisualThemeResource visualThemeId="AFAMIA_THEME" resourceTypeEnumId="VT_HDR_IMAGE_URL" resourceValue="/images/ofbiz_logo.gif" sequenceId="01"/>
> -->
>
> I ran ./ant clean run-install (Do I have to do this ?)
> ./statrofbiz.sh
>
> Again nothing shows. And viewing the source gives:
> <li class="logo-area"><a href="/manufacturing/control/main"><img alt="OFBiz: Manufacturing Manager" src="/images/ofbiz_logo.gif"/></a></li>
>
> Did I miss anything ?
>
>
> On Tue Oct 05,2010 12:57 am, Mansour Al Akeel wrote:
>> BJ:
>> I am using the latest from trunk. I am trying it now with 10.04 release
>> to see.
>>
>>
>>
>> On Mon Oct 04,2010 02:50 pm, BJ Freeman wrote:
>>> I figured that is where you were headed and why is gave you that set
>>> you need to comment it out.
>>> I am not sure if they modified others
>>> I have not installed any new code lately to see.
>>> It does work with the versions I am using.
>>>
>>>
>>>
>>> =========================
>>> 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
>>> Mansour Al Akeel sent the following on 10/4/2010 1:18 PM:
>>>
>>>
>>>> BJ:
>>>> changing the image in the file framework/common/widget/CommonScreens.xml
>>>> doesn't change the logo !
>>>> I changed the name form "/image/ofbiz_logo.gif" to "/images/mylogo.png"
>>>> but still this doesn't show. And in the page source it's still the old
>>>> value.
>>>>
>>>> I did a clean then run-install I even dropped and recreated the DB.
>>>> Any idea ?
>>>>
>>>> On Sun Oct 03,2010 08:09 pm, BJ Freeman wrote:
>>>>> from
>>>>> framework/common/widgets/commonscreens.xml
>>>>> <set field="layoutSettings.commonHeaderImageLinkUrl"
>>>>> from-field="layoutSettings.commonHeaderImageLinkUrl"
>>>>> default-value="main" global="true"/>
>>>>>
>>>>>
>>>>> Mansour Al Akeel sent the following on 10/3/2010 6:41 PM:
>>>>>> Hello all:
>>>>>>
>>>>>> In the themes there is varilabe that couldn't figure out how to set.
>>>>>>
>>>>>> <#if layoutSettings.headerImageLinkUrl?exists>
>>>>>> <#assign logoLinkURL = "${layoutSettings.headerImageLinkUrl}">
>>>>>> <#else>
>>>>>> <#assign logoLinkURL = "${layoutSettings.commonHeaderImageLinkUrl}">
>>>>>> </#if>
>>>>>>
>>>>>> I understand commonHeaderImageLinkUrl is set in the common component
>>>>>> at framework/common/widget/CommonScreens.xml
>>>>>>
>>>>>> how can "headerImageLinkUrl" be used in the theme ?
>>>>>>
>>>>>>
>>>>>>
>>>>
>
Re: Setting up layoutSettings.headerImageLinkUrl in the theme
Posted by Mansour Al Akeel <ma...@gmail.com>.
It's still not working with me.
I am not sure if I missed something. Here's what I did:
Edited framework/common/widget/CommonScreens.xml
and replaced every occurance of "/images/ofbiz_logo.gif" with
"/images/myLogo.png".
deleted the old ofbiz_logo.gif and placed the mine.
I commented out :
<!--
<VisualThemeResource visualThemeId="AFAMIA_THEME" resourceTypeEnumId="VT_HDR_IMAGE_URL" resourceValue="/images/ofbiz_logo.gif" sequenceId="01"/>
-->
I ran ./ant clean run-install (Do I have to do this ?)
./statrofbiz.sh
Again nothing shows. And viewing the source gives:
<li class="logo-area"><a href="/manufacturing/control/main"><img alt="OFBiz: Manufacturing Manager" src="/images/ofbiz_logo.gif"/></a></li>
Did I miss anything ?
On Tue Oct 05,2010 12:57 am, Mansour Al Akeel wrote:
> BJ:
> I am using the latest from trunk. I am trying it now with 10.04 release
> to see.
>
>
>
> On Mon Oct 04,2010 02:50 pm, BJ Freeman wrote:
> > I figured that is where you were headed and why is gave you that set
> > you need to comment it out.
> > I am not sure if they modified others
> > I have not installed any new code lately to see.
> > It does work with the versions I am using.
> >
> >
> >
> > =========================
> > 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
> > Mansour Al Akeel sent the following on 10/4/2010 1:18 PM:
> >
> >
> > >BJ:
> > >changing the image in the file framework/common/widget/CommonScreens.xml
> > >doesn't change the logo !
> > >I changed the name form "/image/ofbiz_logo.gif" to "/images/mylogo.png"
> > >but still this doesn't show. And in the page source it's still the old
> > >value.
> > >
> > >I did a clean then run-install I even dropped and recreated the DB.
> > >Any idea ?
> > >
> > >On Sun Oct 03,2010 08:09 pm, BJ Freeman wrote:
> > >>from
> > >>framework/common/widgets/commonscreens.xml
> > >> <set field="layoutSettings.commonHeaderImageLinkUrl"
> > >>from-field="layoutSettings.commonHeaderImageLinkUrl"
> > >>default-value="main" global="true"/>
> > >>
> > >>
> > >>Mansour Al Akeel sent the following on 10/3/2010 6:41 PM:
> > >>>Hello all:
> > >>>
> > >>>In the themes there is varilabe that couldn't figure out how to set.
> > >>>
> > >>><#if layoutSettings.headerImageLinkUrl?exists>
> > >>> <#assign logoLinkURL = "${layoutSettings.headerImageLinkUrl}">
> > >>><#else>
> > >>> <#assign logoLinkURL = "${layoutSettings.commonHeaderImageLinkUrl}">
> > >>></#if>
> > >>>
> > >>>I understand commonHeaderImageLinkUrl is set in the common component
> > >>>at framework/common/widget/CommonScreens.xml
> > >>>
> > >>>how can "headerImageLinkUrl" be used in the theme ?
> > >>>
> > >>>
> > >>>
> > >
Re: Setting up layoutSettings.headerImageLinkUrl in the theme
Posted by Mansour Al Akeel <ma...@gmail.com>.
BJ:
I am using the latest from trunk. I am trying it now with 10.04 release
to see.
On Mon Oct 04,2010 02:50 pm, BJ Freeman wrote:
> I figured that is where you were headed and why is gave you that set
> you need to comment it out.
> I am not sure if they modified others
> I have not installed any new code lately to see.
> It does work with the versions I am using.
>
>
>
> =========================
> 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
> Mansour Al Akeel sent the following on 10/4/2010 1:18 PM:
>
>
> >BJ:
> >changing the image in the file framework/common/widget/CommonScreens.xml
> >doesn't change the logo !
> >I changed the name form "/image/ofbiz_logo.gif" to "/images/mylogo.png"
> >but still this doesn't show. And in the page source it's still the old
> >value.
> >
> >I did a clean then run-install I even dropped and recreated the DB.
> >Any idea ?
> >
> >On Sun Oct 03,2010 08:09 pm, BJ Freeman wrote:
> >>from
> >>framework/common/widgets/commonscreens.xml
> >> <set field="layoutSettings.commonHeaderImageLinkUrl"
> >>from-field="layoutSettings.commonHeaderImageLinkUrl"
> >>default-value="main" global="true"/>
> >>
> >>
> >>Mansour Al Akeel sent the following on 10/3/2010 6:41 PM:
> >>>Hello all:
> >>>
> >>>In the themes there is varilabe that couldn't figure out how to set.
> >>>
> >>><#if layoutSettings.headerImageLinkUrl?exists>
> >>> <#assign logoLinkURL = "${layoutSettings.headerImageLinkUrl}">
> >>><#else>
> >>> <#assign logoLinkURL = "${layoutSettings.commonHeaderImageLinkUrl}">
> >>></#if>
> >>>
> >>>I understand commonHeaderImageLinkUrl is set in the common component
> >>>at framework/common/widget/CommonScreens.xml
> >>>
> >>>how can "headerImageLinkUrl" be used in the theme ?
> >>>
> >>>
> >>>
> >
Re: Setting up layoutSettings.headerImageLinkUrl in the theme
Posted by BJ Freeman <bj...@free-man.net>.
I figured that is where you were headed and why is gave you that set
you need to comment it out.
I am not sure if they modified others
I have not installed any new code lately to see.
It does work with the versions I am using.
=========================
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
Mansour Al Akeel sent the following on 10/4/2010 1:18 PM:
> BJ:
> changing the image in the file framework/common/widget/CommonScreens.xml
> doesn't change the logo !
> I changed the name form "/image/ofbiz_logo.gif" to "/images/mylogo.png"
> but still this doesn't show. And in the page source it's still the old
> value.
>
> I did a clean then run-install I even dropped and recreated the DB.
> Any idea ?
>
> On Sun Oct 03,2010 08:09 pm, BJ Freeman wrote:
>> from
>> framework/common/widgets/commonscreens.xml
>> <set field="layoutSettings.commonHeaderImageLinkUrl"
>> from-field="layoutSettings.commonHeaderImageLinkUrl"
>> default-value="main" global="true"/>
>>
>>
>> Mansour Al Akeel sent the following on 10/3/2010 6:41 PM:
>>> Hello all:
>>>
>>> In the themes there is varilabe that couldn't figure out how to set.
>>>
>>> <#if layoutSettings.headerImageLinkUrl?exists>
>>> <#assign logoLinkURL = "${layoutSettings.headerImageLinkUrl}">
>>> <#else>
>>> <#assign logoLinkURL = "${layoutSettings.commonHeaderImageLinkUrl}">
>>> </#if>
>>>
>>> I understand commonHeaderImageLinkUrl is set in the common component
>>> at framework/common/widget/CommonScreens.xml
>>>
>>> how can "headerImageLinkUrl" be used in the theme ?
>>>
>>>
>>>
>
Re: Setting up layoutSettings.headerImageLinkUrl in the theme
Posted by Mansour Al Akeel <ma...@gmail.com>.
BJ:
changing the image in the file framework/common/widget/CommonScreens.xml
doesn't change the logo !
I changed the name form "/image/ofbiz_logo.gif" to "/images/mylogo.png"
but still this doesn't show. And in the page source it's still the old
value.
I did a clean then run-install I even dropped and recreated the DB.
Any idea ?
On Sun Oct 03,2010 08:09 pm, BJ Freeman wrote:
> from
> framework/common/widgets/commonscreens.xml
> <set field="layoutSettings.commonHeaderImageLinkUrl"
> from-field="layoutSettings.commonHeaderImageLinkUrl"
> default-value="main" global="true"/>
>
>
> Mansour Al Akeel sent the following on 10/3/2010 6:41 PM:
> >Hello all:
> >
> >In the themes there is varilabe that couldn't figure out how to set.
> >
> ><#if layoutSettings.headerImageLinkUrl?exists>
> > <#assign logoLinkURL = "${layoutSettings.headerImageLinkUrl}">
> ><#else>
> > <#assign logoLinkURL = "${layoutSettings.commonHeaderImageLinkUrl}">
> ></#if>
> >
> >I understand commonHeaderImageLinkUrl is set in the common component
> >at framework/common/widget/CommonScreens.xml
> >
> >how can "headerImageLinkUrl" be used in the theme ?
> >
> >
> >
Re: Setting up layoutSettings.headerImageLinkUrl in the theme
Posted by BJ Freeman <bj...@free-man.net>.
from
framework/common/widgets/commonscreens.xml
<set field="layoutSettings.commonHeaderImageLinkUrl"
from-field="layoutSettings.commonHeaderImageLinkUrl"
default-value="main" global="true"/>
Mansour Al Akeel sent the following on 10/3/2010 6:41 PM:
> Hello all:
>
> In the themes there is varilabe that couldn't figure out how to set.
>
> <#if layoutSettings.headerImageLinkUrl?exists>
> <#assign logoLinkURL = "${layoutSettings.headerImageLinkUrl}">
> <#else>
> <#assign logoLinkURL = "${layoutSettings.commonHeaderImageLinkUrl}">
> </#if>
>
> I understand commonHeaderImageLinkUrl is set in the common component
> at framework/common/widget/CommonScreens.xml
>
> how can "headerImageLinkUrl" be used in the theme ?
>
>
>