The following warnings occurred:
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/printthread.php 203 postParser->parse_message
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/printthread.php 203 postParser->parse_message
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/printthread.php 203 postParser->parse_message



GetSimple Support Forum
Conditional statements or custom templates? - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: Conditional statements or custom templates? (/showthread.php?tid=2471)



Conditional statements or custom templates? - kate - 2012-01-24

Hello again

I have a conditional statement in my main template to output certain html based on the page slug. Up to now I thought this was a better solution than having to make more custom templates. However I think I saw a thread somewhere in the GS forum that mentioned page load time being affected by conditionals - can anyone advise which is better?

Thanks again

Kate


Conditional statements or custom templates? - mvlcek - 2012-01-24

kate Wrote:I have a conditional statement in my main template to output certain html based on the page slug. Up to now I thought this was a better solution than having to make more custom templates. However I think I saw a thread somewhere in the GS forum that mentioned page load time being affected by conditionals - can anyone advise which is better?

It depends on what you want to achieve. If the content editor needs to be able to choose a template based on subjective criteria, use multiple templates. If the content editor does not care or should not care, use conditional statements. And those will definitely NOT affect page load time (if you stay below a few hundred or so).


Conditional statements or custom templates? - kate - 2012-01-24

Thanks, that's most helpful for the current small site and for future reference.