Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 09:43:10 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155554 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: page inside mediaboxadvanced  (Read 487 times)
PcPostar

Offline Offline

Posts: 17



« on: December 06, 2011, 05:55:36 PM »

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?

Logged

If you don't go, you don't have a story.
pcwacht
AddOn Development
*
Offline Offline

Posts: 2859



WWW
« Reply #1 on: December 06, 2011, 08:06:09 PM »

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
Logged

http://www.ictwacht.nl = Dutch ICT info
http://www.pcwacht.nl = My first
both still work in progress, since years.....
PcPostar

Offline Offline

Posts: 17



« Reply #2 on: December 06, 2011, 11:45:35 PM »

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 8page_content(); ?></div>

<div><?php $page_id 2page_content(); ?></div>


But it puts out page with ID 1 Two times. How can I manually display chosen content at chosen place at the page?
Logged

If you don't go, you don't have a story.
pcwacht
AddOn Development
*
Offline Offline

Posts: 2859



WWW
« Reply #3 on: December 07, 2011, 08:44:49 AM »

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: http://www.websitebaker2.org/forum/index.php/topic,21793.0.html

Have fun,
John
Logged

http://www.ictwacht.nl = Dutch ICT info
http://www.pcwacht.nl = My first
both still work in progress, since years.....
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!