WebsiteBaker Community Forum (upd)

WebsiteBaker Support (2.8.x) => Droplets & Snippets => Topic started by: diodak on August 07, 2007, 09:13:43 AM

Title: Another page displayed in column
Post by: diodak on August 07, 2007, 09:13:43 AM
I made: http://spojnia.osno.info/, the right column come from database, i made hidden page and i get it by:

// zapytanie do bazy danych
        $wynik = mysql_query("SELECT * FROM wbmod_wysiwyg WHERE page_id='25'")
        or die("Błąd w zapytaniu!");
         
        mysql_close();
    }
    else echo "Nie mogę połączyć się z bazą danych!";
     
    // wyświetlany wyniki zapytania
    while($rek = mysql_fetch_array($wynik)) {
        echo $rek['content'];


Which isn`t good idea, i guess.

My question is: how to display page in this column similiray to :

<?php page_content(); ?>

Regards.
Title: Re: Another page displayed in column
Post by: kweitzel on August 07, 2007, 08:03:55 PM
http://projects.WebsiteBaker.org/websitebaker2/wiki/Docs-EN-Advanced-Howtos-Create-additional-editable-content-blocks

cheers

Klaus
Title: Re: Another page displayed in column
Post by: Lotus on February 22, 2008, 11:06:56 AM
Did you mean "Global boxes"? You´ll find similar solutions as yours in the forum. I did a feature request and later in the tread i posted some solutions others have found.

https://forum.WebsiteBaker.org/index.php/topic,8731.0.html (https://forum.websitebaker.org/index.php/topic,8731.0.html)