WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • page inside mediaboxadvanced
  • Print
Pages: [1]   Go Down

Author Topic: page inside mediaboxadvanced  (Read 4360 times)

PcPostar

  • Guest
page inside mediaboxadvanced
« 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

Offline pcwacht

  • Posts: 2923
  • Gender: Male
    • Dutch ICT info
Re: page inside mediaboxadvanced
« 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

  • Guest
Re: page inside mediaboxadvanced
« 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: [Select]
<div><?php $page_id = 8; page_content(); ?></div>

<div><?php $page_id = 2; page_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

Offline pcwacht

  • Posts: 2923
  • Gender: Male
    • Dutch ICT info
Re: page inside mediaboxadvanced
« 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: https://forum.WebsiteBaker.org/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.....

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • page inside mediaboxadvanced
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2