Hello,
my name is Guido aka belba. I'm a newby at this board but not a newby at WB. I'm using WB for several projects.
For a current project I have to use WB for some reasons, for example the webserver offers only a MySQL DB V4.0 and it it dossen't support a customer .htacces file.
A special problem was that I have for the hompage severeal sections (about 20) to mange. For this numbers of sections is the standart way to manage pretty uncomfortable.
My idea was that I create severeal chlid-pages as type WYSIWYG and that I include this pages as kind as subcontentpages in the homepage.
A possible site struckture could looks like this:
Homepage (defaulttemplate)
- top20 (contains sub content fof homepage, templatetop20; visibility = none)
- description of shop 1 (contains sub content fof homepage, templateshopdescrip
tion; visibility = none)
- description of shop 2 (contains sub content fof homepage, templateshopdescrip
tion; visibility = none)
- description of shop 3 (contains sub content fof homepage, templateshopdescrip
tion; visibility = none)
- description of shop 4 (contains sub content fof homepage, templateshopdescrip
tion; visibility = none)
- description of shop 5 (contains sub content fof homepage, templateshopdescrip
tion; visibility = none)
- description of shop 6 (contains sub content fof homepage, templateshopdescrip
tion; visibility = none)
- impress (is a regular page, defaulttemplate, visibility = public)
- tips & tricks (is a regular page, defaulttemplate, visibility = public)
For this Problem I wrote a code snippet module. In the defaulttemplate you can call it with page_sub_content(PAGE-ID) and it built in your sub-page as sub-content.
An simple example:
At firstd you create one or several sub pages with the template "defaulttemplate"
It is Important that the childpages are switched to the visibility to none.
The Template "templateshopdescrip
tion" contains this:
<div style="color: #ffffff; background-color: #394a5a; padding: 5px;">
<strong> A Nice Title</strong>
<div style="color: #000000; background-color: #ffffff;">
<?php page_content(); ?>
</div>
</div>
Than you create a mainpage wit the dedefaulttemplate. Here ist it important to fill in the right page_id's from the sub-pages in the page_sub_content function.
The defaulttemplate contains following:
<html>
<header>
<title>....</title>
.
.
</header>
<body>
<div id="col1">
<?php show_menu(); ?>
</div>
<div id="col2">
<?php page_sub_content(5); ?>
</div>
<div id="col3">
<?php page_sub_content(6); ?>
</div>
<div id="col4">
<?php page_sub_content(7); ?>
</div>
<div id="col5">
<?php page_sub_content(

; ?>
</div>
</body>
</html>
As result you get a mainpage with the content of several subpages.
Ok I think I have more as enought written for my first posting here and I know my english ist not the best, but I hope it is still understandable

Guido