Does Header Background work in Edit Store?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Does Header Background work in Edit Store?

rohit
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 
Reply | Threaded
Open this post in threaded view
|

Re: Does Header Background work in Edit Store?

cjhowe
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 <[hidden email]> 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 

Reply | Threaded
Open this post in threaded view
|

Re: Does Header Background work in Edit Store?

rohit
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
Reply | Threaded
Open this post in threaded view
|

Re: Does Header Background work in Edit Store?

cjhowe
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 <[hidden email]> 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.
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Does Header Background work in Edit Store?

rohit
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
Reply | Threaded
Open this post in threaded view
|

Re: Does Header Background work in Edit Store?

cjhowe
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 <[hidden email]> 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.
>
>