Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Display several images on specific sicebox

Display several images on specific sicebox

Locked

Views: 883

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
21 Feb 2008, 5:46 PM
#1
llama_de_anor avatar

llama_de_anor

New Zenner

Join Date:
Nov 2007
Location:
Girona (Spain)
Posts:
31
Plugin Contributions:
0

Display several images on specific sicebox

Hello to everyone,

I have been reading this forum time ago, but this is my first post. First I would like to congatulate those who make this web possible and to all zenners' contributions.

Well, I have a question. I have looked up in the web for the answer but I didn't find out. Sorry if it is answered in some place.

I'm customizong the sideboxes adding a background image in the sideboxcontent. But now, I have to add a second image to one specific sidebox. Is it possible?

http://www.catacracks.es/
I would like to add another image on "Información" sidebox.
The site is still under construction.

Thanks in advance.

21 Feb 2008, 8:18 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Display several images on specific sicebox

You can specify a different background image for #informationContent tag in the stylesheet or add another but not as a background image

22 Feb 2008, 10:01 AM
#3
llama_de_anor avatar

llama_de_anor

New Zenner

Join Date:
Nov 2007
Location:
Girona (Spain)
Posts:
31
Plugin Contributions:
0

Re: Display several images on specific sicebox

Thanks for your reply, Kobra
I create another background image as you say in #informationContent and here is the result http://www.catacracks.es/

But, when you say "or add another but not as a background image", what do you mean? I don't understand at all. You mean there is another way to add the image?

And, I've got another question, if you can help me. This new image that is displayed in "información" sidebox, can be displayed a little out of the sidebox?
Something like this:
http://www.rudyalvarado.es/catacracks/

Thanks a lot

22 Feb 2008, 3:28 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Display several images on specific sicebox

But, when you say "or add another but not as a background image", what do you mean? I don't understand at all. You mean there is another way to add the image?
Look at the language sidebox

22 Feb 2008, 6:08 PM
#5
llama_de_anor avatar

llama_de_anor

New Zenner

Join Date:
Nov 2007
Location:
Girona (Spain)
Posts:
31
Plugin Contributions:
0

Re: Display several images on specific sicebox

I'm sorry, but I've looked at language sidebox with ie developer and with firefox developer but I can't see what you mean...
I've looked at stylesheet css and I didn't find a language sidebox detail :cry:
May I look up in another place?

Thank ya

22 Feb 2008, 6:28 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Display several images on specific sicebox

Look at the code for the language sidebox as this is an image(s) in the sidebox

25 Feb 2008, 12:56 PM
#7
llama_de_anor avatar

llama_de_anor

New Zenner

Join Date:
Nov 2007
Location:
Girona (Spain)
Posts:
31
Plugin Contributions:
0

Re: Display several images on specific sicebox

I'm very sorry Kobra. I'm so newest in zencart that I don't know where is the file for language sidebox code. :frusty:, and I've looked for it with the developers tool kit...

Please, can you specify me the route?

Thank you very much for your time.

25 Feb 2008, 5:10 PM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Display several images on specific sicebox

Depending on what you want add in one of 2 places in the sidebox/tpl_information.php file as noted:

  $content = '';
  $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
  $content .= "\n" . '<ul style="margin: 0; padding: 0; list-style-type: none;">' . "\n";
  for ($i=0; $i<sizeof($information); $i++) {
    $content .= '<li>' . $information[$i] . '</li>' . "\n";
  }
  Here as an addition li
  $content .= '</ul>' .  "\n";
  Or here as an src
  $content .= '</div>';
?>