Author Topic: Pictures from Bakey missing on the front page when call with Section Picker  (Read 731 times)

Offline rumen

  • Posts: 399
 Hi there,

I use WB2.12 and Bakery 1.83. I made 1 page with few bakery sections inside, but I got problem with the items - complete mess (which make sense), so I deleted the sections and I made different pages for the different items. Now I want to call them on one page but when I call them with section picker only the first items appear on the first page the other appears as text but the pictures missing outside. On the page where is the section the pictures appear normaly. Inside there is no problem, only when I call them with "section picker" they don't appear. 

What can be the problem and how to fix it?

Regards,

Rumen

Offline dbs

  • Betatester
  • **
  • Posts: 8012
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Hi, sectionpicker is not the right thing for that. There is a snippet anyitems or so. Have a look.
http://www.bakery-shop.ch/#snippets

Offline rumen

  • Posts: 399
With Anyitem it happened and now all pictures are OK

Can I ask just how to call that page (the link above) on the first page as well, because I use there Code2 for the code of the page and the I setup as HTML code, so I can't call anyitems as php code inside the HTML. With Section picker it works, just the pictures and the text are no aligned <center>, but left.

Offline jacobi22

  • Posts: 5865
  • Gender: Male
  • Support also via PM or EMail
    • Jacobi22
your solution works for me with sectionpicker and a little correction in view_overview.php from bakery

replace
Code: [Select]
require_once(WB_PATH . '/modules/bakery/config.php');
somewhere in the top with

Code: [Select]
require(WB_PATH . '/modules/bakery/config.php');
in the first call, everything is okay, but in the second and next call's, $img_dir is empty

PHP.net
say's: The require_once statement is identical to require except PHP will check if the file has already been included, and if so, not include (require) it again.
Wer nicht will, findet Gründe, wer will, findet Wege.

Offline jacobi22

  • Posts: 5865
  • Gender: Male
  • Support also via PM or EMail
    • Jacobi22
set a class for the body on the startpage like
Code: [Select]
<body class="startpage">
and then add a definition like this for the bakery items in your style.css  ('i've test this with firefox developer tools)

Code: [Select]
.startpage table tr td.mod_bakery_main_td_f {
    text-align: center;
}
Wer nicht will, findet Gründe, wer will, findet Wege.

Offline rumen

  • Posts: 399
Thank Uwe, it is PERFECT now!!!

Regards,

Rumen

Offline jacobi22

  • Posts: 5865
  • Gender: Male
  • Support also via PM or EMail
    • Jacobi22
the page is also perfect, looks very good!!   (Y) (Y) (Y)
Wer nicht will, findet Gründe, wer will, findet Wege.

Offline hgs

  • Betatester
  • **
  • Posts: 1116
    • EFG MG
 (Y)Really good, I got hungry right away,
Where do I have to go :wink:
LG Harald

"Fange nie an, aufzuhören - höre nie auf, anzufangen." Marcus Tullius Cicero (106-43 v.Chr.)

Offline rumen

  • Posts: 399
It is very small bistro called IL Tempo but at very, very strategic place. In a business office building with 5000+ staff and no food aroud. And one more building like that next to that one.

 

postern-length