WebsiteBaker Support (2.8.x) > Templates, Menus & Design
page inside mediaboxadvanced
(1/1)
PcPostar:
Hi, forum-members
I'm integrating mediaboxadvanced inside WebsiteBaker. (source: https://github.com/iaian7/mediaboxAdvanced)
The front page will be full-customized.
I would like to display specific page (page called via page_id) inside the mediabox window.
Is there any method to use function page_content() to display a specific page?
Or in what way can i obtain a specified page from database?
Is there any wb function or will I have to use MySQL queries?
pcwacht:
You can use the template - blank
this will only output the content, nothing else.
You can modify this template if needed
You can use hits for the html solution.
The function page_content allows you to output the page content
'' echo page_content();'' will do
Put it between div's for using the div or inline method
John
PcPostar:
Thank you for your answer.
The problem is as follows:
For example I have page with id 8 and page with id 2 which one I want to show on same page in two different divs.
And my code looks like this:
--- Code: ---<div><?php $page_id = 8; page_content(); ?></div>
<div><?php $page_id = 2; page_content(); ?></div>
--- End code ---
But it puts out page with ID 1 Two times. How can I manually display chosen content at chosen place at the page?
pcwacht:
One could use showsection droplet when it is only wysiwyg content
: http://www.websitebakers.com/pages/droplets/official-library/content/showsection.php
Or the section-picker wich will show any section http://www.websitebakers.com/pages/modules/listings/section-pages/section-picker.php
Or code it yourself, see: https://forum.WebsiteBaker.org/index.php/topic,21793.0.html
Have fun,
John
Navigation
[0] Message Index
Go to full version