Hi Guys,
I try to speed up a bloated homepage and catch some content of tabs on demand only.
Therefor I need to render the content of some tabs without loading all of the page, which is really slow because of CURL requests. I experimented with renderWith, it's working but it feels wrong.
First I check for an action which I use to fetch the tab content:
$params = $this->getURLParams();
if ($params['Action']) {
if ($params['Action'] == 'latestsamples') {
echo $this->renderWith('LatestBooks');
exit;
}
}
Since I couldn't make the page stop rendering the HomePage Template I just print the returned string and shut it off.
The code will do for now, but there are more tabs and I'd like to do it i a proper way. Can somebody help me out?
Cheers,
Johannes