songohan
Posts: 89
|
| Posted: 09/23/2008, 7:38 AM |
|
I would appreciate your opinion on this:
When creating a site, in last few projects I used following approach:
I create index file as normal page. Header, footer and all other pages for main functionality are includable pages.
In index, I include header, footer and than use Panels with before show event that takes "page" parameter from url, checks against hardcoded value and decides which panel is to be shown.
Eg. each panel has code like this:
---------
if (CCGetFromGet("page", "") == 'portfolio')
$Component->Visible = true;
---------
All panels are hidden by default.
Now, do you think that this method will noticeably slow down page generation compared to using all pages as regular pages with just header and footer included without conditioning??
To me it seems like it is slower even on my local machine but also something else might be the issue.
What do you think about this approach in general?
Many thanx,
Andrej
|
 |
 |
songohan
Posts: 89
|
| Posted: 09/24/2008, 1:02 PM |
|
no opinions?
everyone bussy with 4.1 testing? :)
|
 |
 |
|