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



GetSimple Support Forum
components on selected pages - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Feature Requests (http://get-simple.info/forums/forumdisplay.php?fid=7)
+--- Thread: components on selected pages (/showthread.php?tid=208)



components on selected pages - kotos - 2009-11-04

Something like this:

<?php get_component('sidebar'); ?- show on page "home, other">

<?php get_component('news'); ?- show on page "page2, page3">

and will be nice to see editor there (tiny mce)


components on selected pages - Zegnåt - 2009-11-05

Components are made to be pieces of templates that you can edit. So if you want your pages to be marked up different you can use multiple template files in your theme.

You could also take a look at my function for per page components. Then you can have the same template file, which will load a certain component, but also create components for certain selected pages that replace the standard one without having to do weird things with your theme.

There has been talk about using an editor for components, but also against it. This because components are made to be this closely related to the template files and an editor will disable the possibility of using PHP.

More talk about this can be found in these topics: additional contents sections and Component Sorting.