rendering single page in theme default
Permalink
hi
I'm currently trying to render a singlePage with the default.php from my theme.
This is what i currently have:
default.php
TestSP.php - singlePage
The singlePage is rendered within the default.php. But after the single page, there is a copy of the whole default.php attached. (see attached screenshot).
OK. I know. Normally you have to make a view.php with the same theme as the default.php has. except the main area where print $innerContent is. But unfortunately... This is not the way i can take.
So any ideas, how to render a singlePage into the default.php theme file?
Thanks a lot.
I'm currently trying to render a singlePage with the default.php from my theme.
This is what i currently have:
default.php
<!-- SNIP --> <div id="text"> <?php $content = new Area('Inhalt'); $content->display($c); print $innerContent; ?> </div> <!-- SNAP -->
TestSP.php - singlePage
The singlePage is rendered within the default.php. But after the single page, there is a copy of the whole default.php attached. (see attached screenshot).
OK. I know. Normally you have to make a view.php with the same theme as the default.php has. except the main area where print $innerContent is. But unfortunately... This is not the way i can take.
So any ideas, how to render a singlePage into the default.php theme file?
Thanks a lot.