WebsiteBaker Community Forum

WebsiteBaker Support (2.12.x) => General Help & Support => Topic started by: rumen on November 12, 2018, 09:48:03 PM

Title: Pictures from Bakey missing on the front page when call with Section Picker
Post by: rumen on November 12, 2018, 09:48:03 PM
 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 (https://prnt.sc/lhjnaw). On the page where is the section the pictures appear normaly (https://prnt.sc/lhjoty). 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
Title: Re: Pictures from Bakey missing on the front page when call with Section Picker
Post by: dbs on November 12, 2018, 10:37:18 PM
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
Title: Re: Pictures from Bakey missing on the front page when call with Section Picker
Post by: rumen on November 13, 2018, 01:16:28 AM
With Anyitem it happened and now all pictures are OK (https://tempomenu.com/pages/menju.php)

Can I ask just how to call that page (the link above) on the first page (https://tempomenu.com) 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.
Title: Re: Pictures from Bakey missing on the front page when call with Section Picker
Post by: Gast on November 13, 2018, 01:21:06 AM
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 (http://php.net/manual/en/function.require-once.php) 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.
Title: Re: Pictures from Bakey missing on the front page when call with Section Picker
Post by: Gast on November 13, 2018, 01:36:42 AM
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;
}
Title: Re: Pictures from Bakey missing on the front page when call with Section Picker
Post by: rumen on November 13, 2018, 09:52:03 AM
Thank Uwe, it is PERFECT now (https://tempomenu.com/)!!!

Regards,

Rumen
Title: Re: Pictures from Bakey missing on the front page when call with Section Picker
Post by: Gast on November 13, 2018, 10:25:26 AM
the page is also perfect, looks very good!!   (Y) (Y) (Y)
Title: Re: Pictures from Bakey missing on the front page when call with Section Picker
Post by: hgs on November 13, 2018, 11:14:26 AM
 (Y)Really good, I got hungry right away,
Where do I have to go :wink:
Title: Re: Pictures from Bakey missing on the front page when call with Section Picker
Post by: rumen on November 13, 2018, 12:33:52 PM
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.