subpage question

mikep

Avatar: mikep

2008-04-25 16:45

how do I add a 2nd 'our offer' subpage to my home page but still keep the content in the middle, thanks

» Quick.Cms v2.x

mike

treewood (OpenSolution)

Avatar: treewood

2008-04-26 12:58

mikep - could you exlpain more what you want get? Maybe some screenshots etc. I want help you but you should give more informations

mikep

Avatar: mikep

2008-04-26 14:52

my page is 1024 wide and I would like to have menu 3 /4 on the left side, content in the middle, and the our offer subpage on the right, I have managed to add a new column to container.tpl and named it column 3 then placed my boxes 1 & 2 but really I would like to use it for offers and news with photos

treewood (OpenSolution)

Avatar: treewood

2008-04-28 07:38

mikep - ok i understand now ... hmm... this will not be easy. you want to display our offer subpage and news with photos in right menu.
I can only give some advice but you should now PHP well to do it.
In templates/themes/default.php add something like that:

$aDataColumn $oPage->throwPage'ID_PAGE_FOR_EXAMPLE_OUR_OFFER' );

After add in templates/container.tpl variable $aDataColumn[sName], $aDataColumn[sDescriptionShort] etc. etc. Use variable names from templates/pages_default.tpl but change $aData to $aDataColumn
and check actions_client/p.php to display subpages in the same way (search for code $oPage->listSubpages) by putting subpages in templates/themes/default.php.
After you should add template to display this subpages using blocks with name SUBPAGES in templates/pages_default.tpl.

This is long story... you should try

gilbe

No avatar

2008-11-05 18:40

Bump

Did you find a solution to this. I've tried the suggestion here which seems very logical but for some reason it just doesn't display the page.


..templates/themes/default.php

$News = $oPage->throwPage('22');

..templates/pages_default.tpl

<div id="news" class="box">
<h1> $News[sName] </h1>
$News[sDescriptionFull]
</div>

Any help would be greatly appreciated

gilbe

No avatar

2008-11-05 18:59

ok ive half figured out that you have to add something like this :

$aDataNews = $oPage->throwPage( 22 );

to the action_client/p.php

then you can reference $aDataNews[sName] etc etc

Back to top
about us | contact