You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Rohit Sureka <ro...@yahoo.com> on 2006/07/10 10:08:16 UTC

Does Header Background work in Edit Store?

hi,

i just tried to place a image for the Header Middle Background, in the 'edit products store' page. i uploaded a 10-off.jpg file to the framework/images/webapp/images/ folder and inserted the images/10-off.jpg text in Header Middle Background box. But no image is being displayed. This is the same for Header Right Background option.

Is this option working correctly or am i doing something wrong, please advise.

Thank you.

Rohit

 __________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Does Header Background work in Edit Store?

Posted by Chris Howe <cj...@yahoo.com>.
I can't test the header log at the moment, but we have
that set as the entire path (the image isn't on our
local machine, so our instance would need it either
way)

the Header middle background works when we use
url('/images/ofbiz_logo.jpg')

you should be using the relative path if the image
resides on the local machine if it works.  and in this
case it does.  But, the code does need to be updated
to not require the css markup.  I'll probably look
into this more over the weekend.  Thanks for posting
the JIRA issue.

--- rohit2006 <ro...@yahoo.com> wrote:

> 
> Hi Chris,
> 
> Thanks for the reply.
> 
> It does work only when the entire URL to the image
> is included, e.g
> www.mysite.com/images/image.jpg. This is the same
> case for catalog header
> images too. I have tried this on the latest SVN
> 421810, but it does not
> work.
> 
> i have created a Jira issue for it;
> https://issues.apache.org/jira/browse/OFBIZ-88
> 
> Thanks,
> 
> rohit
> -- 
> View this message in context:
>
http://www.nabble.com/Does-Header-Background-work-in-Edit-Store--tf1916901.html#a5322495
> Sent from the OFBiz - User forum at Nabble.com.
> 
> 


Re: Does Header Background work in Edit Store?

Posted by rohit2006 <ro...@yahoo.com>.
Hi Chris,

Thanks for the reply.

It does work only when the entire URL to the image is included, e.g
www.mysite.com/images/image.jpg. This is the same case for catalog header
images too. I have tried this on the latest SVN 421810, but it does not
work.

i have created a Jira issue for it;
https://issues.apache.org/jira/browse/OFBIZ-88

Thanks,

rohit
-- 
View this message in context: http://www.nabble.com/Does-Header-Background-work-in-Edit-Store--tf1916901.html#a5322495
Sent from the OFBiz - User forum at Nabble.com.


Re: Does Header Background work in Edit Store?

Posted by Chris Howe <cj...@yahoo.com>.
This may have recently changed to be a css property
where before it was an html <img> tag.
Try this instead for the time being:
url('/images/10-off.jpg')

make a Jira issue for it.  CSS markup shouldn't need
to be stored in the database, it should be rendered in
the code calling the field.

--- rohit2006 <ro...@yahoo.com> wrote:

> 
> hi,
> 
> the html source shows this only:
> 
> </div>
>     <div id="middle" style="background-image:
> /images/10-off.jpg;">
>         
>         
>         <div id="welcome-message">
> 
>                 Welcome!
>         </div>
> 
> The image URL is incomplete and it seems the problem
> is in the code of
> ofbiz. What do u think.
> 
> Rohit
> -- 
> View this message in context:
>
http://www.nabble.com/Does-Header-Background-work-in-Edit-Store--tf1916901.html#a5293017
> Sent from the OFBiz - User forum at Nabble.com.
> 
> 


Re: Does Header Background work in Edit Store?

Posted by rohit2006 <ro...@yahoo.com>.
hi,

the html source shows this only:

</div>
    <div id="middle" style="background-image: /images/10-off.jpg;">
        
        
        <div id="welcome-message">

                Welcome!
        </div>

The image URL is incomplete and it seems the problem is in the code of
ofbiz. What do u think.

Rohit
-- 
View this message in context: http://www.nabble.com/Does-Header-Background-work-in-Edit-Store--tf1916901.html#a5293017
Sent from the OFBiz - User forum at Nabble.com.


Re: Does Header Background work in Edit Store?

Posted by Chris Howe <cj...@yahoo.com>.
try it with a leading / (ie. /images/10-off.jpg)

When things don't load where you think they should,
check the source to see how it did output.

--- Rohit Sureka <ro...@yahoo.com> wrote:

> hi,
> 
> i just tried to place a image for the Header Middle
> Background, in the 'edit products store' page. i
> uploaded a 10-off.jpg file to the
> framework/images/webapp/images/ folder and inserted
> the images/10-off.jpg text in Header Middle
> Background box. But no image is being displayed.
> This is the same for Header Right Background option.
> 
> Is this option working correctly or am i doing
> something wrong, please advise.
> 
> Thank you.
> 
> Rohit
> 
>  __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> http://mail.yahoo.com