Hi all
I want to display an image on the screen.in the header.ftl of my application I was trying to do the same as we do in html like: <IMG SRC="...//myapp/webapp/ofbiz_logo.jpeg" WIDTH="209" HEIGHT="69" BORDER="0" ALT=""> Is this not the way we display in ftl. Please clear my doubt Thanks Adithi |
if you notice there is an logo image on each ofbiz page on the backend.
that is a good example on how to display and image. now if you want to do this on the Ecommerce is is a little different. just find a page with the type of image you want to display and find the code that makes it happen. adithi agarwal sent the following on 9/25/2008 8:59 AM: > Hi all > > I want to display an image on the screen.in the header.ftl of my application > I was trying to do the same as we do in html like: > <IMG SRC="...//myapp/webapp/ofbiz_logo.jpeg" WIDTH="209" HEIGHT="69" BORDER="0" ALT=""> > Is this not the way we display in ftl. > Please clear my doubt > > Thanks > Adithi > > > > |
Hello Adithi ,
Yes you can use <img> tag in ftl . For e.g <img src="<@ofbizContentUrl>/images/fieldlookup.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Lookup"> or <img src='/images/fieldlookup.gif' width='15' height='14' border='0' alt='Click here For Field Lookup'/> On Thu, Sep 25, 2008 at 9:54 PM, BJ Freeman <[hidden email]> wrote: > if you notice there is an logo image on each ofbiz page on the backend. > that is a good example on how to display and image. > now if you want to do this on the Ecommerce is is a little different. > just find a page with the type of image you want to display and find the > code that makes it happen. > > > adithi agarwal sent the following on 9/25/2008 8:59 AM: > > Hi all > > > > I want to display an image on the screen.in the header.ftl of my > application > > I was trying to do the same as we do in html like: > > <IMG SRC="...//myapp/webapp/ofbiz_logo.jpeg" WIDTH="209" HEIGHT="69" > BORDER="0" ALT=""> > > Is this not the way we display in ftl. > > Please clear my doubt > > > > Thanks > > Adithi > > > > > > > > > > -- Thanks & Regards -- Surya Kusumakar HotWax Media Pvt. Ltd. www.hotwaxmedia.com |
In reply to this post by myofbiz
Hi Surya I got the image but it is being displayed from images dir in "framework" dir but not from my application's images dir Can you tell me why is it refering that image. This is my img tag: <a href="http://ofbiz.apache.org/"><img src="/images/ofbiz_logo.jpg" ></a> Thankyou Adithi ----- Original Message ---- From: Surya Kusumakar <[hidden email]> To: [hidden email] Sent: Thursday, September 25, 2008 8:13:44 PM Subject: Re: where is uilabelmap Hello Adithi , Yes you can use <img> tag in ftl . For e.g <img src="<@ofbizContentUrl>/images/fieldlookup.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Lookup"> or <img src='/images/fieldlookup.gif' width='15' height='14' border='0' alt='Click here For Field Lookup'/> On Thu, Sep 25, 2008 at 9:54 PM, BJ Freeman <[hidden email]> wrote: > if you notice there is an logo image on each ofbiz page on the backend. > that is a good example on how to display and image. > now if you want to do this on the Ecommerce is is a little different. > just find a page with the type of image you want to display and find the > code that makes it happen. > > > adithi agarwal sent the following on 9/25/2008 8:59 AM: > > Hi all > > > > I want to display an image on the screen.in the header.ftl of my > application > > I was trying to do the same as we do in html like: > > <IMG SRC="...//myapp/webapp/ofbiz_logo.jpeg" WIDTH="209" HEIGHT="69" > BORDER="0" ALT=""> > > Is this not the way we display in ftl. > > Please clear my doubt > > > > Thanks > > Adithi > > > > > > > > > > -- Thanks & Regards -- Surya Kusumakar HotWax Media Pvt. Ltd. www.hotwaxmedia.com |
Hi Adithi,
In ofbiz component one image directory is there and that contain all images, first you create image directory in your application and put image there, i think your problem will be solved. On Fri, Sep 26, 2008 at 5:52 PM, adithi agarwal <[hidden email]>wrote: > > > Hi Surya > > I got the image but it is being displayed from images dir in "framework" > dir but not from my application's images dir Can you tell me why is it > refering that image. > This is my img tag: > <a href="http://ofbiz.apache.org/"><img src="/images/ofbiz_logo.jpg" > ></a> > > Thankyou > Adithi > > ----- Original Message ---- > From: Surya Kusumakar <[hidden email]> > To: [hidden email] > Sent: Thursday, September 25, 2008 8:13:44 PM > Subject: Re: where is uilabelmap > > Hello Adithi , > > Yes you can use <img> tag in ftl . > For e.g > > <img src="<@ofbizContentUrl>/images/fieldlookup.gif</@ofbizContentUrl>" > width="16" height="16" border="0" alt="Lookup"> > > or > > <img src='/images/fieldlookup.gif' width='15' height='14' border='0' > alt='Click here For Field Lookup'/> > > On Thu, Sep 25, 2008 at 9:54 PM, BJ Freeman <[hidden email]> wrote: > > > if you notice there is an logo image on each ofbiz page on the backend. > > that is a good example on how to display and image. > > now if you want to do this on the Ecommerce is is a little different. > > just find a page with the type of image you want to display and find the > > code that makes it happen. > > > > > > adithi agarwal sent the following on 9/25/2008 8:59 AM: > > > Hi all > > > > > > I want to display an image on the screen.in the header.ftl of my > > application > > > I was trying to do the same as we do in html like: > > > <IMG SRC="...//myapp/webapp/ofbiz_logo.jpeg" WIDTH="209" HEIGHT="69" > > BORDER="0" ALT=""> > > > Is this not the way we display in ftl. > > > Please clear my doubt > > > > > > Thanks > > > Adithi > > > > > > > > > > > > > > > > > > > -- > Thanks & Regards > -- > Surya Kusumakar > HotWax Media Pvt. Ltd. > www.hotwaxmedia.com > > > > > |
Brajesh Patel wrote:
> Hi Adithi, > In ofbiz component one image directory is there and that contain all > images, first you create image directory in your application and put image > there, i think your problem will be solved. > > On Fri, Sep 26, 2008 at 5:52 PM, adithi agarwal <[hidden email]>wrote: > > >> Hi Surya >> >> I got the image but it is being displayed from images dir in "framework" >> dir but not from my application's images dir Can you tell me why is it >> refering that image. >> This is my img tag: >> <a href="http://ofbiz.apache.org/"><img src="/images/ofbiz_logo.jpg" >> >>> </a> >>> >> Thankyou >> Adithi >> >> ----- Original Message ---- >> From: Surya Kusumakar <[hidden email]> >> To: [hidden email] >> Sent: Thursday, September 25, 2008 8:13:44 PM >> Subject: Re: where is uilabelmap >> >> Hello Adithi , >> >> Yes you can use <img> tag in ftl . >> For e.g >> >> <img src="<@ofbizContentUrl>/images/fieldlookup.gif</@ofbizContentUrl>" >> width="16" height="16" border="0" alt="Lookup"> >> >> or >> >> <img src='/images/fieldlookup.gif' width='15' height='14' border='0' >> alt='Click here For Field Lookup'/> >> >> On Thu, Sep 25, 2008 at 9:54 PM, BJ Freeman <[hidden email]> wrote: >> >> >>> if you notice there is an logo image on each ofbiz page on the backend. >>> that is a good example on how to display and image. >>> now if you want to do this on the Ecommerce is is a little different. >>> just find a page with the type of image you want to display and find the >>> code that makes it happen. >>> >>> >>> adithi agarwal sent the following on 9/25/2008 8:59 AM: >>> >>>> Hi all >>>> >>>> I want to display an image on the screen.in the header.ftl of my >>>> >>> application >>> >>>> I was trying to do the same as we do in html like: >>>> <IMG SRC="...//myapp/webapp/ofbiz_logo.jpeg" WIDTH="209" HEIGHT="69" >>>> >>> BORDER="0" ALT=""> >>> >>>> Is this not the way we display in ftl. >>>> Please clear my doubt >>>> >>>> Thanks >>>> Adithi >>>> >>>> >>>> >>>> >>>> >>> >> -- >> Thanks & Regards >> -- >> Surya Kusumakar >> HotWax Media Pvt. Ltd. >> www.hotwaxmedia.com >> >> >> >> >> >> > > You are not specifying component specific path so it is referring to absolute path that is from framework component .In framework component there is an directory named image within webapp.So you have to create image directory in your component too. Thanks and Regards Surya Kusumakar HotWaxMedia Pvt Ltd www.hotwaxmedia.com |
In reply to this post by myofbiz
Hi Brajesh,
I actually created image dir in my application, in my webapp/myapplication/images/ofbiz_logo.gif.But its refering to image in framework dir. Thanks ----- Original Message ---- From: Brajesh Patel <[hidden email]> To: [hidden email] Sent: Friday, September 26, 2008 6:11:11 AM Subject: Re: where is uilabelmap Hi Adithi, In ofbiz component one image directory is there and that contain all images, first you create image directory in your application and put image there, i think your problem will be solved. On Fri, Sep 26, 2008 at 5:52 PM, adithi agarwal <[hidden email]>wrote: > > > Hi Surya > > I got the image but it is being displayed from images dir in "framework" > dir but not from my application's images dir Can you tell me why is it > refering that image. > This is my img tag: > <a href="http://ofbiz.apache.org/"><img src="/images/ofbiz_logo.jpg" > ></a> > > Thankyou > Adithi > > ----- Original Message ---- > From: Surya Kusumakar <[hidden email]> > To: [hidden email] > Sent: Thursday, September 25, 2008 8:13:44 PM > Subject: Re: where is uilabelmap > > Hello Adithi , > > Yes you can use <img> tag in ftl . > For e.g > > <img src="<@ofbizContentUrl>/images/fieldlookup.gif</@ofbizContentUrl>" > width="16" height="16" border="0" alt="Lookup"> > > or > > <img src='/images/fieldlookup.gif' width='15' height='14' border='0' > alt='Click here For Field Lookup'/> > > On Thu, Sep 25, 2008 at 9:54 PM, BJ Freeman <[hidden email]> wrote: > > > if you notice there is an logo image on each ofbiz page on the backend. > > that is a good example on how to display and image. > > now if you want to do this on the Ecommerce is is a little different. > > just find a page with the type of image you want to display and find the > > code that makes it happen. > > > > > > adithi agarwal sent the following on 9/25/2008 8:59 AM: > > > Hi all > > > > > > I want to display an image on the screen.in the header.ftl of my > > application > > > I was trying to do the same as we do in html like: > > > <IMG SRC="...//myapp/webapp/ofbiz_logo.jpeg" WIDTH="209" HEIGHT="69" > > BORDER="0" ALT=""> > > > Is this not the way we display in ftl. > > > Please clear my doubt > > > > > > Thanks > > > Adithi > > > > > > > > > > > > > > > > > > > -- > Thanks & Regards > -- > Surya Kusumakar > HotWax Media Pvt. Ltd. > www.hotwaxmedia.com > > > > > |
In reply to this post by brajeshpatel
Actually, that's not true. The url for the image must be enclosed in the
<@ofbizUrl> transform. Also, make sure your application's image folder is accessible in the web.xml file. -Adrian Brajesh Patel wrote: > Hi Adithi, > In ofbiz component one image directory is there and that contain all > images, first you create image directory in your application and put image > there, i think your problem will be solved. > > On Fri, Sep 26, 2008 at 5:52 PM, adithi agarwal <[hidden email]>wrote: > >> >> Hi Surya >> >> I got the image but it is being displayed from images dir in "framework" >> dir but not from my application's images dir Can you tell me why is it >> refering that image. >> This is my img tag: >> <a href="http://ofbiz.apache.org/"><img src="/images/ofbiz_logo.jpg" >>> </a> >> Thankyou >> Adithi >> >> ----- Original Message ---- >> From: Surya Kusumakar <[hidden email]> >> To: [hidden email] >> Sent: Thursday, September 25, 2008 8:13:44 PM >> Subject: Re: where is uilabelmap >> >> Hello Adithi , >> >> Yes you can use <img> tag in ftl . >> For e.g >> >> <img src="<@ofbizContentUrl>/images/fieldlookup.gif</@ofbizContentUrl>" >> width="16" height="16" border="0" alt="Lookup"> >> >> or >> >> <img src='/images/fieldlookup.gif' width='15' height='14' border='0' >> alt='Click here For Field Lookup'/> >> >> On Thu, Sep 25, 2008 at 9:54 PM, BJ Freeman <[hidden email]> wrote: >> >>> if you notice there is an logo image on each ofbiz page on the backend. >>> that is a good example on how to display and image. >>> now if you want to do this on the Ecommerce is is a little different. >>> just find a page with the type of image you want to display and find the >>> code that makes it happen. >>> >>> >>> adithi agarwal sent the following on 9/25/2008 8:59 AM: >>>> Hi all >>>> >>>> I want to display an image on the screen.in the header.ftl of my >>> application >>>> I was trying to do the same as we do in html like: >>>> <IMG SRC="...//myapp/webapp/ofbiz_logo.jpeg" WIDTH="209" HEIGHT="69" >>> BORDER="0" ALT=""> >>>> Is this not the way we display in ftl. >>>> Please clear my doubt >>>> >>>> Thanks >>>> Adithi >>>> >>>> >>>> >>>> >>> >> >> -- >> Thanks & Regards >> -- >> Surya Kusumakar >> HotWax Media Pvt. Ltd. >> www.hotwaxmedia.com >> >> >> >> >> > |
In reply to this post by myofbiz
Hi Adithi,
Add path like <@ofbizContentUrl>/images/ofbiz_logo.gif</@ofbizContentUrl>. On Fri, Sep 26, 2008 at 7:46 PM, adithi agarwal <[hidden email]>wrote: > Hi Brajesh, > > I actually created image dir in my application, in my > webapp/myapplication/images/ofbiz_logo.gif.But its refering to image in > framework dir. > > Thanks > > > > ----- Original Message ---- > From: Brajesh Patel <[hidden email]> > To: [hidden email] > Sent: Friday, September 26, 2008 6:11:11 AM > Subject: Re: where is uilabelmap > > Hi Adithi, > In ofbiz component one image directory is there and that contain all > images, first you create image directory in your application and put image > there, i think your problem will be solved. > > On Fri, Sep 26, 2008 at 5:52 PM, adithi agarwal <[hidden email] > >wrote: > > > > > > > Hi Surya > > > > I got the image but it is being displayed from images dir in "framework" > > dir but not from my application's images dir Can you tell me why is it > > refering that image. > > This is my img tag: > > <a href="http://ofbiz.apache.org/"><img src="/images/ofbiz_logo.jpg" > > ></a> > > > > Thankyou > > Adithi > > > > ----- Original Message ---- > > From: Surya Kusumakar <[hidden email]> > > To: [hidden email] > > Sent: Thursday, September 25, 2008 8:13:44 PM > > Subject: Re: where is uilabelmap > > > > Hello Adithi , > > > > Yes you can use <img> tag in ftl . > > For e.g > > > > <img src="<@ofbizContentUrl>/images/fieldlookup.gif</@ofbizContentUrl>" > > width="16" height="16" border="0" alt="Lookup"> > > > > or > > > > <img src='/images/fieldlookup.gif' width='15' height='14' border='0' > > alt='Click here For Field Lookup'/> > > > > On Thu, Sep 25, 2008 at 9:54 PM, BJ Freeman <[hidden email]> wrote: > > > > > if you notice there is an logo image on each ofbiz page on the backend. > > > that is a good example on how to display and image. > > > now if you want to do this on the Ecommerce is is a little different. > > > just find a page with the type of image you want to display and find > the > > > code that makes it happen. > > > > > > > > > adithi agarwal sent the following on 9/25/2008 8:59 AM: > > > > Hi all > > > > > > > > I want to display an image on the screen.in the header.ftl of my > > > application > > > > I was trying to do the same as we do in html like: > > > > <IMG SRC="...//myapp/webapp/ofbiz_logo.jpeg" WIDTH="209" HEIGHT="69" > > > BORDER="0" ALT=""> > > > > Is this not the way we display in ftl. > > > > Please clear my doubt > > > > > > > > Thanks > > > > Adithi > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > Thanks & Regards > > -- > > Surya Kusumakar > > HotWax Media Pvt. Ltd. > > www.hotwaxmedia.com > > > > > > > > > > > > > > > |
That will point to the framework/images folder, *not* the application's
folder. -Adrian Brajesh Patel wrote: > Hi Adithi, > Add path like > <@ofbizContentUrl>/images/ofbiz_logo.gif</@ofbizContentUrl>. > > > On Fri, Sep 26, 2008 at 7:46 PM, adithi agarwal <[hidden email]>wrote: > >> Hi Brajesh, >> >> I actually created image dir in my application, in my >> webapp/myapplication/images/ofbiz_logo.gif.But its refering to image in >> framework dir. >> >> Thanks >> >> >> >> ----- Original Message ---- >> From: Brajesh Patel <[hidden email]> >> To: [hidden email] >> Sent: Friday, September 26, 2008 6:11:11 AM >> Subject: Re: where is uilabelmap >> >> Hi Adithi, >> In ofbiz component one image directory is there and that contain all >> images, first you create image directory in your application and put image >> there, i think your problem will be solved. >> >> On Fri, Sep 26, 2008 at 5:52 PM, adithi agarwal <[hidden email] >>> wrote: >>> >>> Hi Surya >>> >>> I got the image but it is being displayed from images dir in "framework" >>> dir but not from my application's images dir Can you tell me why is it >>> refering that image. >>> This is my img tag: >>> <a href="http://ofbiz.apache.org/"><img src="/images/ofbiz_logo.jpg" >>>> </a> >>> Thankyou >>> Adithi >>> >>> ----- Original Message ---- >>> From: Surya Kusumakar <[hidden email]> >>> To: [hidden email] >>> Sent: Thursday, September 25, 2008 8:13:44 PM >>> Subject: Re: where is uilabelmap >>> >>> Hello Adithi , >>> >>> Yes you can use <img> tag in ftl . >>> For e.g >>> >>> <img src="<@ofbizContentUrl>/images/fieldlookup.gif</@ofbizContentUrl>" >>> width="16" height="16" border="0" alt="Lookup"> >>> >>> or >>> >>> <img src='/images/fieldlookup.gif' width='15' height='14' border='0' >>> alt='Click here For Field Lookup'/> >>> >>> On Thu, Sep 25, 2008 at 9:54 PM, BJ Freeman <[hidden email]> wrote: >>> >>>> if you notice there is an logo image on each ofbiz page on the backend. >>>> that is a good example on how to display and image. >>>> now if you want to do this on the Ecommerce is is a little different. >>>> just find a page with the type of image you want to display and find >> the >>>> code that makes it happen. >>>> >>>> >>>> adithi agarwal sent the following on 9/25/2008 8:59 AM: >>>>> Hi all >>>>> >>>>> I want to display an image on the screen.in the header.ftl of my >>>> application >>>>> I was trying to do the same as we do in html like: >>>>> <IMG SRC="...//myapp/webapp/ofbiz_logo.jpeg" WIDTH="209" HEIGHT="69" >>>> BORDER="0" ALT=""> >>>>> Is this not the way we display in ftl. >>>>> Please clear my doubt >>>>> >>>>> Thanks >>>>> Adithi >>>>> >>>>> >>>>> >>>>> >>>> >>> >>> -- >>> Thanks & Regards >>> -- >>> Surya Kusumakar >>> HotWax Media Pvt. Ltd. >>> www.hotwaxmedia.com >>> >>> >>> >>> >>> >> >> >> >> > |
In reply to this post by myofbiz
Adithi,
You will need to change the Content Path prefix in the content application. You can do this by going to Content->Web site and setting the secure and non secure content path prefix. Suppose you want to serve the contents from images folder of your application, give content prefix as /<your application mount point> Thanks, Raj adithi agarwal wrote: > Hi Brajesh, > > I actually created image dir in my application, in my webapp/myapplication/images/ofbiz_logo.gif.But its refering to image in framework dir. > > Thanks > > > > ----- Original Message ---- > From: Brajesh Patel <[hidden email]> > To: [hidden email] > Sent: Friday, September 26, 2008 6:11:11 AM > Subject: Re: where is uilabelmap > > Hi Adithi, > In ofbiz component one image directory is there and that contain all > images, first you create image directory in your application and put image > there, i think your problem will be solved. > > On Fri, Sep 26, 2008 at 5:52 PM, adithi agarwal <[hidden email]>wrote: > > >> Hi Surya >> >> I got the image but it is being displayed from images dir in "framework" >> dir but not from my application's images dir Can you tell me why is it >> refering that image. >> This is my img tag: >> <a href="http://ofbiz.apache.org/"><img src="/images/ofbiz_logo.jpg" >> >>> </a> >>> >> Thankyou >> Adithi >> >> ----- Original Message ---- >> From: Surya Kusumakar <[hidden email]> >> To: [hidden email] >> Sent: Thursday, September 25, 2008 8:13:44 PM >> Subject: Re: where is uilabelmap >> >> Hello Adithi , >> >> Yes you can use <img> tag in ftl . >> For e.g >> >> <img src="<@ofbizContentUrl>/images/fieldlookup.gif</@ofbizContentUrl>" >> width="16" height="16" border="0" alt="Lookup"> >> >> or >> >> <img src='/images/fieldlookup.gif' width='15' height='14' border='0' >> alt='Click here For Field Lookup'/> >> >> On Thu, Sep 25, 2008 at 9:54 PM, BJ Freeman <[hidden email]> wrote: >> >> >>> if you notice there is an logo image on each ofbiz page on the backend. >>> that is a good example on how to display and image. >>> now if you want to do this on the Ecommerce is is a little different. >>> just find a page with the type of image you want to display and find the >>> code that makes it happen. >>> >>> >>> adithi agarwal sent the following on 9/25/2008 8:59 AM: >>> >>>> Hi all >>>> >>>> I want to display an image on the screen.in the header.ftl of my >>>> >>> application >>> >>>> I was trying to do the same as we do in html like: >>>> <IMG SRC="...//myapp/webapp/ofbiz_logo.jpeg" WIDTH="209" HEIGHT="69" >>>> >>> BORDER="0" ALT=""> >>> >>>> Is this not the way we display in ftl. >>>> Please clear my doubt >>>> >>>> Thanks >>>> Adithi >>>> >>>> >>>> >>>> >>>> >>> >> -- >> Thanks & Regards >> -- >> Surya Kusumakar >> HotWax Media Pvt. Ltd. >> www.hotwaxmedia.com >> >> >> >> >> >> > > > > > |
In reply to this post by brajeshpatel
Brajesh Patel wrote:
> Hi Adithi, > Add path like > <@ofbizContentUrl>/images/ofbiz_logo.gif</@ofbizContentUrl>. > > > On Fri, Sep 26, 2008 at 7:46 PM, adithi agarwal <[hidden email]>wrote: > > >> Hi Brajesh, >> >> I actually created image dir in my application, in my >> webapp/myapplication/images/ofbiz_logo.gif.But its refering to image in >> framework dir. >> >> Thanks >> >> >> >> ----- Original Message ---- >> From: Brajesh Patel <[hidden email]> >> To: [hidden email] >> Sent: Friday, September 26, 2008 6:11:11 AM >> Subject: Re: where is uilabelmap >> >> Hi Adithi, >> In ofbiz component one image directory is there and that contain all >> images, first you create image directory in your application and put image >> there, i think your problem will be solved. >> >> On Fri, Sep 26, 2008 at 5:52 PM, adithi agarwal <[hidden email] >> >>> wrote: >>> >>> Hi Surya >>> >>> I got the image but it is being displayed from images dir in "framework" >>> dir but not from my application's images dir Can you tell me why is it >>> refering that image. >>> This is my img tag: >>> <a href="http://ofbiz.apache.org/"><img src="/images/ofbiz_logo.jpg" >>> >>>> </a> >>>> >>> Thankyou >>> Adithi >>> >>> ----- Original Message ---- >>> From: Surya Kusumakar <[hidden email]> >>> To: [hidden email] >>> Sent: Thursday, September 25, 2008 8:13:44 PM >>> Subject: Re: where is uilabelmap >>> >>> Hello Adithi , >>> >>> Yes you can use <img> tag in ftl . >>> For e.g >>> >>> <img src="<@ofbizContentUrl>/images/fieldlookup.gif</@ofbizContentUrl>" >>> width="16" height="16" border="0" alt="Lookup"> >>> >>> or >>> >>> <img src='/images/fieldlookup.gif' width='15' height='14' border='0' >>> alt='Click here For Field Lookup'/> >>> >>> On Thu, Sep 25, 2008 at 9:54 PM, BJ Freeman <[hidden email]> wrote: >>> >>> >>>> if you notice there is an logo image on each ofbiz page on the backend. >>>> that is a good example on how to display and image. >>>> now if you want to do this on the Ecommerce is is a little different. >>>> just find a page with the type of image you want to display and find >>>> >> the >> >>>> code that makes it happen. >>>> >>>> >>>> adithi agarwal sent the following on 9/25/2008 8:59 AM: >>>> >>>>> Hi all >>>>> >>>>> I want to display an image on the screen.in the header.ftl of my >>>>> >>>> application >>>> >>>>> I was trying to do the same as we do in html like: >>>>> <IMG SRC="...//myapp/webapp/ofbiz_logo.jpeg" WIDTH="209" HEIGHT="69" >>>>> >>>> BORDER="0" ALT=""> >>>> >>>>> Is this not the way we display in ftl. >>>>> Please clear my doubt >>>>> >>>>> Thanks >>>>> Adithi >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>> -- >>> Thanks & Regards >>> -- >>> Surya Kusumakar >>> HotWax Media Pvt. Ltd. >>> www.hotwaxmedia.com >>> >>> >>> >>> >>> >>> >> >> >> >> > > In FTL you have to use <ofbizContentUrl> and keep the images directory in webapp directory for your customize application. For e.g <img src="<@*ofbizContentUrl*>/myWebapp/images/myContent.jpg</@*ofbizContentUrl*>" > -- Thanks & Regards Surya Kusumakar HotWax Media Pvt. Ltd. www.hotwaxmedia.com |
In reply to this post by myofbiz
Thankyou Surya and Brajesh for your reply..but adding path like:<@ofbizContentUrl>/images/ofbiz_logo.gif</@ofbizContentUrl>...did not work
Thanks Adithi ----- Original Message ---- From: surya <[hidden email]> To: [hidden email] Sent: Saturday, September 27, 2008 12:32:01 AM Subject: Re: where is uilabelmap Brajesh Patel wrote: > Hi Adithi, > Add path like > <@ofbizContentUrl>/images/ofbiz_logo.gif</@ofbizContentUrl>. > > > On Fri, Sep 26, 2008 at 7:46 PM, adithi agarwal <[hidden email]>wrote: > > >> Hi Brajesh, >> >> I actually created image dir in my application, in my >> webapp/myapplication/images/ofbiz_logo.gif.But its refering to image in >> framework dir. >> >> Thanks >> >> >> >> ----- Original Message ---- >> From: Brajesh Patel <[hidden email]> >> To: [hidden email] >> Sent: Friday, September 26, 2008 6:11:11 AM >> Subject: Re: where is uilabelmap >> >> Hi Adithi, >> In ofbiz component one image directory is there and that contain all >> images, first you create image directory in your application and put image >> there, i think your problem will be solved. >> >> On Fri, Sep 26, 2008 at 5:52 PM, adithi agarwal <[hidden email] >> >>> wrote: >>> >>> Hi Surya >>> >>> I got the image but it is being displayed from images dir in "framework" >>> dir but not from my application's images dir Can you tell me why is it >>> refering that image. >>> This is my img tag: >>> <a href="http://ofbiz.apache.org/"><img src="/images/ofbiz_logo.jpg" >>> >>>> </a> >>>> >>> Thankyou >>> Adithi >>> >>> ----- Original Message ---- >>> From: Surya Kusumakar <[hidden email]> >>> To: [hidden email] >>> Sent: Thursday, September 25, 2008 8:13:44 PM >>> Subject: Re: where is uilabelmap >>> >>> Hello Adithi , >>> >>> Yes you can use <img> tag in ftl . >>> For e.g >>> >>> <img src="<@ofbizContentUrl>/images/fieldlookup.gif</@ofbizContentUrl>" >>> width="16" height="16" border="0" alt="Lookup"> >>> >>> or >>> >>> <img src='/images/fieldlookup.gif' width='15' height='14' border='0' >>> alt='Click here For Field Lookup'/> >>> >>> On Thu, Sep 25, 2008 at 9:54 PM, BJ Freeman <[hidden email]> wrote: >>> >>> >>>> if you notice there is an logo image on each ofbiz page on the backend. >>>> that is a good example on how to display and image. >>>> now if you want to do this on the Ecommerce is is a little different. >>>> just find a page with the type of image you want to display and find >>>> >> the >> >>>> code that makes it happen. >>>> >>>> >>>> adithi agarwal sent the following on 9/25/2008 8:59 AM: >>>> >>>>> Hi all >>>>> >>>>> I want to display an image on the screen.in the header.ftl of my >>>>> >>>> application >>>> >>>>> I was trying to do the same as we do in html like: >>>>> <IMG SRC="...//myapp/webapp/ofbiz_logo.jpeg" WIDTH="209" HEIGHT="69" >>>>> >>>> BORDER="0" ALT=""> >>>> >>>>> Is this not the way we display in ftl. >>>>> Please clear my doubt >>>>> >>>>> Thanks >>>>> Adithi >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>> -- >>> Thanks & Regards >>> -- >>> Surya Kusumakar >>> HotWax Media Pvt. Ltd. >>> www.hotwaxmedia.com >>> >>> >>> >>> >>> >>> >> >> >> >> > > In FTL you have to use <ofbizContentUrl> and keep the images directory in webapp directory for your customize application. For e.g <img src="<@*ofbizContentUrl*>/myWebapp/images/myContent.jpg</@*ofbizContentUrl*>" > -- Thanks & Regards Surya Kusumakar HotWax Media Pvt. Ltd. www.hotwaxmedia.com |
did you do the step
https://demo.hotwaxmedia.com/content/control/EditWebSite;?webSiteId=WebStore Standard Content Prefix adithi agarwal sent the following on 9/27/2008 3:24 PM: > Thankyou Surya and Brajesh for your reply..but adding path like:<@ofbizContentUrl>/images/ofbiz_logo.gif</@ofbizContentUrl>...did not work > > Thanks > Adithi > > > > ----- Original Message ---- > From: surya <[hidden email]> > To: [hidden email] > Sent: Saturday, September 27, 2008 12:32:01 AM > Subject: Re: where is uilabelmap > > Brajesh Patel wrote: >> Hi Adithi, >> Add path like >> <@ofbizContentUrl>/images/ofbiz_logo.gif</@ofbizContentUrl>. >> >> >> On Fri, Sep 26, 2008 at 7:46 PM, adithi agarwal <[hidden email]>wrote: >> >> >>> Hi Brajesh, >>> >>> I actually created image dir in my application, in my >>> webapp/myapplication/images/ofbiz_logo.gif.But its refering to image in >>> framework dir. >>> >>> Thanks >>> >>> >>> >>> ----- Original Message ---- >>> From: Brajesh Patel <[hidden email]> >>> To: [hidden email] >>> Sent: Friday, September 26, 2008 6:11:11 AM >>> Subject: Re: where is uilabelmap >>> >>> Hi Adithi, >>> In ofbiz component one image directory is there and that contain all >>> images, first you create image directory in your application and put image >>> there, i think your problem will be solved. >>> >>> On Fri, Sep 26, 2008 at 5:52 PM, adithi agarwal <[hidden email] >>> >>>> wrote: >>>> >>>> Hi Surya >>>> >>>> I got the image but it is being displayed from images dir in "framework" >>>> dir but not from my application's images dir Can you tell me why is it >>>> refering that image. >>>> This is my img tag: >>>> <a href="http://ofbiz.apache.org/"><img src="/images/ofbiz_logo.jpg" >>>> >>>>> </a> >>>>> >>>> Thankyou >>>> Adithi >>>> >>>> ----- Original Message ---- >>>> From: Surya Kusumakar <[hidden email]> >>>> To: [hidden email] >>>> Sent: Thursday, September 25, 2008 8:13:44 PM >>>> Subject: Re: where is uilabelmap >>>> >>>> Hello Adithi , >>>> >>>> Yes you can use <img> tag in ftl . >>>> For e.g >>>> >>>> <img src="<@ofbizContentUrl>/images/fieldlookup.gif</@ofbizContentUrl>" >>>> width="16" height="16" border="0" alt="Lookup"> >>>> >>>> or >>>> >>>> <img src='/images/fieldlookup.gif' width='15' height='14' border='0' >>>> alt='Click here For Field Lookup'/> >>>> >>>> On Thu, Sep 25, 2008 at 9:54 PM, BJ Freeman <[hidden email]> wrote: >>>> >>>> >>>>> if you notice there is an logo image on each ofbiz page on the backend. >>>>> that is a good example on how to display and image. >>>>> now if you want to do this on the Ecommerce is is a little different. >>>>> just find a page with the type of image you want to display and find >>>>> >>> the >>> >>>>> code that makes it happen. >>>>> >>>>> >>>>> adithi agarwal sent the following on 9/25/2008 8:59 AM: >>>>> >>>>>> Hi all >>>>>> >>>>>> I want to display an image on the screen.in the header.ftl of my >>>>>> >>>>> application >>>>> >>>>>> I was trying to do the same as we do in html like: >>>>>> <IMG SRC="...//myapp/webapp/ofbiz_logo.jpeg" WIDTH="209" HEIGHT="69" >>>>>> >>>>> BORDER="0" ALT=""> >>>>> >>>>>> Is this not the way we display in ftl. >>>>>> Please clear my doubt >>>>>> >>>>>> Thanks >>>>>> Adithi >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>> -- >>>> Thanks & Regards >>>> -- >>>> Surya Kusumakar >>>> HotWax Media Pvt. Ltd. >>>> www.hotwaxmedia.com >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >> > Hello Adithi , > > In FTL you have to use <ofbizContentUrl> and keep the images directory > in webapp directory for your customize application. > For e.g > <img > src="<@*ofbizContentUrl*>/myWebapp/images/myContent.jpg</@*ofbizContentUrl*>" > > -- > Thanks & Regards > Surya Kusumakar > HotWax Media Pvt. Ltd. > www.hotwaxmedia.com > > > |
In reply to this post by myofbiz
another solution is to put you logo in the
and using widgets commonscreen.xml <set field="layoutSettings.headerImageUrl" value="/images/yourlogoimage.png" global="true"/> this is the one I use. the Logo only shows on my app. adithi agarwal sent the following on 9/27/2008 3:24 PM: > Thankyou Surya and Brajesh for your reply..but adding path like:<@ofbizContentUrl>/images/ofbiz_logo.gif</@ofbizContentUrl>...did not work > > Thanks > Adithi > > > > ----- Original Message ---- > From: surya <[hidden email]> > To: [hidden email] > Sent: Saturday, September 27, 2008 12:32:01 AM > Subject: Re: where is uilabelmap > > Brajesh Patel wrote: >> Hi Adithi, >> Add path like >> <@ofbizContentUrl>/images/ofbiz_logo.gif</@ofbizContentUrl>. >> >> >> On Fri, Sep 26, 2008 at 7:46 PM, adithi agarwal <[hidden email]>wrote: >> >> >>> Hi Brajesh, >>> >>> I actually created image dir in my application, in my >>> webapp/myapplication/images/ofbiz_logo.gif.But its refering to image in >>> framework dir. >>> >>> Thanks >>> >>> >>> >>> ----- Original Message ---- >>> From: Brajesh Patel <[hidden email]> >>> To: [hidden email] >>> Sent: Friday, September 26, 2008 6:11:11 AM >>> Subject: Re: where is uilabelmap >>> >>> Hi Adithi, >>> In ofbiz component one image directory is there and that contain all >>> images, first you create image directory in your application and put image >>> there, i think your problem will be solved. >>> >>> On Fri, Sep 26, 2008 at 5:52 PM, adithi agarwal <[hidden email] >>> >>>> wrote: >>>> >>>> Hi Surya >>>> >>>> I got the image but it is being displayed from images dir in "framework" >>>> dir but not from my application's images dir Can you tell me why is it >>>> refering that image. >>>> This is my img tag: >>>> <a href="http://ofbiz.apache.org/"><img src="/images/ofbiz_logo.jpg" >>>> >>>>> </a> >>>>> >>>> Thankyou >>>> Adithi >>>> >>>> ----- Original Message ---- >>>> From: Surya Kusumakar <[hidden email]> >>>> To: [hidden email] >>>> Sent: Thursday, September 25, 2008 8:13:44 PM >>>> Subject: Re: where is uilabelmap >>>> >>>> Hello Adithi , >>>> >>>> Yes you can use <img> tag in ftl . >>>> For e.g >>>> >>>> <img src="<@ofbizContentUrl>/images/fieldlookup.gif</@ofbizContentUrl>" >>>> width="16" height="16" border="0" alt="Lookup"> >>>> >>>> or >>>> >>>> <img src='/images/fieldlookup.gif' width='15' height='14' border='0' >>>> alt='Click here For Field Lookup'/> >>>> >>>> On Thu, Sep 25, 2008 at 9:54 PM, BJ Freeman <[hidden email]> wrote: >>>> >>>> >>>>> if you notice there is an logo image on each ofbiz page on the backend. >>>>> that is a good example on how to display and image. >>>>> now if you want to do this on the Ecommerce is is a little different. >>>>> just find a page with the type of image you want to display and find >>>>> >>> the >>> >>>>> code that makes it happen. >>>>> >>>>> >>>>> adithi agarwal sent the following on 9/25/2008 8:59 AM: >>>>> >>>>>> Hi all >>>>>> >>>>>> I want to display an image on the screen.in the header.ftl of my >>>>>> >>>>> application >>>>> >>>>>> I was trying to do the same as we do in html like: >>>>>> <IMG SRC="...//myapp/webapp/ofbiz_logo.jpeg" WIDTH="209" HEIGHT="69" >>>>>> >>>>> BORDER="0" ALT=""> >>>>> >>>>>> Is this not the way we display in ftl. >>>>>> Please clear my doubt >>>>>> >>>>>> Thanks >>>>>> Adithi >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>> -- >>>> Thanks & Regards >>>> -- >>>> Surya Kusumakar >>>> HotWax Media Pvt. Ltd. >>>> www.hotwaxmedia.com >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >> > Hello Adithi , > > In FTL you have to use <ofbizContentUrl> and keep the images directory > in webapp directory for your customize application. > For e.g > <img > src="<@*ofbizContentUrl*>/myWebapp/images/myContent.jpg</@*ofbizContentUrl*>" > > -- > Thanks & Regards > Surya Kusumakar > HotWax Media Pvt. Ltd. > www.hotwaxmedia.com > > > |
In reply to this post by myofbiz
adithi agarwal wrote:
> Thankyou Surya and Brajesh for your reply..but adding path like:<@ofbizContentUrl>/images/ofbiz_logo.gif</@ofbizContentUrl>...did not work > > Thanks > Adithi > > > > ----- Original Message ---- > From: surya <[hidden email]> > To: [hidden email] > Sent: Saturday, September 27, 2008 12:32:01 AM > Subject: Re: where is uilabelmap > > Brajesh Patel wrote: > >> Hi Adithi, >> Add path like >> <@ofbizContentUrl>/images/ofbiz_logo.gif</@ofbizContentUrl>. >> >> >> On Fri, Sep 26, 2008 at 7:46 PM, adithi agarwal <[hidden email]>wrote: >> >> >> >>> Hi Brajesh, >>> >>> I actually created image dir in my application, in my >>> webapp/myapplication/images/ofbiz_logo.gif.But its refering to image in >>> framework dir. >>> >>> Thanks >>> >>> >>> >>> ----- Original Message ---- >>> From: Brajesh Patel <[hidden email]> >>> To: [hidden email] >>> Sent: Friday, September 26, 2008 6:11:11 AM >>> Subject: Re: where is uilabelmap >>> >>> Hi Adithi, >>> In ofbiz component one image directory is there and that contain all >>> images, first you create image directory in your application and put image >>> there, i think your problem will be solved. >>> >>> On Fri, Sep 26, 2008 at 5:52 PM, adithi agarwal <[hidden email] >>> >>> >>>> wrote: >>>> >>>> Hi Surya >>>> >>>> I got the image but it is being displayed from images dir in "framework" >>>> dir but not from my application's images dir Can you tell me why is it >>>> refering that image. >>>> This is my img tag: >>>> <a href="http://ofbiz.apache.org/"><img src="/images/ofbiz_logo.jpg" >>>> >>>> >>>>> </a> >>>>> >>>>> >>>> Thankyou >>>> Adithi >>>> >>>> ----- Original Message ---- >>>> From: Surya Kusumakar <[hidden email]> >>>> To: [hidden email] >>>> Sent: Thursday, September 25, 2008 8:13:44 PM >>>> Subject: Re: where is uilabelmap >>>> >>>> Hello Adithi , >>>> >>>> Yes you can use <img> tag in ftl . >>>> For e.g >>>> >>>> <img src="<@ofbizContentUrl>/images/fieldlookup.gif</@ofbizContentUrl>" >>>> width="16" height="16" border="0" alt="Lookup"> >>>> >>>> or >>>> >>>> <img src='/images/fieldlookup.gif' width='15' height='14' border='0' >>>> alt='Click here For Field Lookup'/> >>>> >>>> On Thu, Sep 25, 2008 at 9:54 PM, BJ Freeman <[hidden email]> wrote: >>>> >>>> >>>> >>>>> if you notice there is an logo image on each ofbiz page on the backend. >>>>> that is a good example on how to display and image. >>>>> now if you want to do this on the Ecommerce is is a little different. >>>>> just find a page with the type of image you want to display and find >>>>> >>>>> >>> the >>> >>> >>>>> code that makes it happen. >>>>> >>>>> >>>>> adithi agarwal sent the following on 9/25/2008 8:59 AM: >>>>> >>>>> >>>>>> Hi all >>>>>> >>>>>> I want to display an image on the screen.in the header.ftl of my >>>>>> >>>>>> >>>>> application >>>>> >>>>> >>>>>> I was trying to do the same as we do in html like: >>>>>> <IMG SRC="...//myapp/webapp/ofbiz_logo.jpeg" WIDTH="209" HEIGHT="69" >>>>>> >>>>>> >>>>> BORDER="0" ALT=""> >>>>> >>>>> >>>>>> Is this not the way we display in ftl. >>>>>> Please clear my doubt >>>>>> >>>>>> Thanks >>>>>> Adithi >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>> -- >>>> Thanks & Regards >>>> -- >>>> Surya Kusumakar >>>> HotWax Media Pvt. Ltd. >>>> www.hotwaxmedia.com >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >> >> > Hello Adithi , > > In FTL you have to use <ofbizContentUrl> and keep the images directory > in webapp directory for your customize application. > For e.g > <img > src="<@*ofbizContentUrl*>/myWebapp/images/myContent.jpg</@*ofbizContentUrl*>" > > > -- > Thanks & Regards > Surya Kusumakar > HotWax Media Pvt. Ltd. > www.hotwaxmedia.com > > > > I think you have not specified your application name , like if you have created Example application then you have to write like this : <img src="<@ofbizContentUrl>/example/images/save.png</@ofbizContentUrl>"> -- Thanks & Regards Surya Kusumakar HotWax Media Pvt. Ltd. www.hotwaxmedia.com |
Free forum by Nabble | Edit this page |