Welcome, Guest. Please login or register.
Did you miss your activation email?
February 13, 2012, 01:04:47 AM

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.
149699 Posts in 21103 Topics by 7538 Members
Latest Member: ionline
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: repeat content every page  (Read 318 times)
liorel

Offline Offline

Posts: 7



WWW
« on: March 14, 2010, 01:28:13 PM »

hi,
i want to make one page that will be dynamic and to put it
over all the pages in the website... (for example, a news scroller that will show on all the pages..)

how can i do that ?
i mean what is the function that i need to insert to my template that will pull the page_id that i want..

hope i was clear enough (sorry about my poor english).

thanks anyway,
Lior.

http://www.intercity.co.il
« Last Edit: March 14, 2010, 02:47:49 PM by liorel » Logged

Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4755



« Reply #1 on: March 14, 2010, 02:26:36 PM »

Search for Global Blocks.

Here is one hint:
http://www.websitebaker2.org/forum/index.php/topic,2154.0.html

Regards,
Stefek
Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
liorel

Offline Offline

Posts: 7



WWW
« Reply #2 on: March 14, 2010, 02:37:47 PM »

thans alot...
i just found other way by myself.. and its work great for me... if you see any problem with my
way, please notify me.

this  is my way to solve this problem:

in the index.php file i add this code :

Code:
<?php
global 
$wb;
$current_page_id $wb->page_id;
$wb->page_id 5
page_content(2);
$wb->page_id $current_page_id;
?>



all the changes i'll do on page_id 5....

thanks for the fast answer...
Lior

http://www.intercity.co.il
« Last Edit: March 14, 2010, 02:48:10 PM by liorel » Logged

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!