PDA

View Full Version : custom page content module


tpr
05-18-2004, 03:39 PM
could anyone explain to me what exactly does this module do ?

i assume that i can throw diffrent things into it, just dunno how ;)

thanks

seidel
05-19-2004, 12:00 AM
I have the same problem!

How activate?
how fill for contents?

many thanks

Our Sponsors
 

seidel
05-19-2004, 12:40 AM
Mmmhh... I believe how works this option

My site use this system

www.expertforum.info (spanish site)

look avisos de interes -> torneos climas.... and this link replace the main page!

works ok for me...

but... really I configure as authorīs concept?

Many thanks

joeychgo
05-19-2004, 08:45 AM
I dont get it........ I dont know what this one does either

Our Sponsors
 

Brian
05-19-2004, 06:58 PM
When adding a new page through the CMPS, you see this option:

Page Template:
This is the template that will replace your "Custom Page Content" module. If you don't wish to have a custom template on this page, simply leave this field blank.

Simply enter in the name of a template there and your page will display the content of that template in that module. ;)

seidel
05-19-2004, 10:40 PM
Many Thanks!

But how the custom page is always above the news page? (not order of course) a content page always above dinamic news.?

thanks

tpr
05-20-2004, 03:45 AM
thank you,

though i wish you would let me add a php file to new pages that i create :D

Guy Nesher

Brian
05-20-2004, 11:39 AM
though i wish you would let me add a php file to new pages that i create :D
You can. It's a little different than adding a normal page though. Just make sure that you have this code at the top of the php file:

define('VBA_PORTAL', true);
define('VBA_PAGE', 'yourpagenamehere');

(Replace yourpagenamehere with the indentifier for the page you're trying to include).

Make sure that you require global.php somewhere below that, and then just use this code at the bottom of the file to print out the page:

eval('$HTML .= "' . fetch_template('YOUR_TEMPLATE_NAME_HERE') . '";');
print_portal_output($home, $HTML);

evilc
06-21-2004, 06:14 AM
When adding a new page through the CMPS, you see this option:

Page Template:
This is the template that will replace your "Custom Page Content" module. If you don't wish to have a custom template on this page, simply leave this field blank.

Simply enter in the name of a template there and your page will display the content of that template in that module. ;)

How do i use this module on my main index page??