The following warnings occurred:
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 745 errorHandler->error_callback
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
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 916 build_postbit
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
/inc/functions_post.php 861 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 46 - File: showthread.php(1650) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1650) : eval()'d code 46 errorHandler->error_callback
/showthread.php 1650 eval




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
two themes on cms
#5
Something like that would currently be impossible to do dynamically. That’s not to say it can’t be done.

You can create 2 different template files. A normal one and one for the second theme. Instead of the normal get_content() function in the second template file you put in code that will call the contents from the page “hello”. Now you go to the pages panel and add 2 pages, “hello” and “hello2”. You can fill the content field of the hello-page and at the hello2-page you’ll need to select the second template file under page options.

The result should be 2 pages, the second one showing the same content as the first one, of which the text is always as written on the first page. The style can be different because you’re using two different template files. The reason I said it won’t be dynamic is because you’ll need to hard code what content you want to show. Unless of course you are going to have some sort of pattern in the URL, because than you could try to match against that.

Good luck.
“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Reply


Messages In This Thread
two themes on cms - by mobiten - 2010-03-03, 09:27:43
two themes on cms - by internet54 - 2010-03-03, 11:19:57
two themes on cms - by Zegnåt - 2010-03-03, 11:29:15
two themes on cms - by mobiten - 2010-03-03, 12:25:25
two themes on cms - by Zegnåt - 2010-03-03, 20:50:56
two themes on cms - by internet54 - 2010-03-04, 03:01:18
two themes on cms - by mobiten - 2010-03-06, 12:11:07
two themes on cms - by internet54 - 2010-03-06, 14:05:13
two themes on cms - by mobiten - 2010-03-06, 19:21:41
two themes on cms - by Zegnåt - 2010-03-06, 21:38:59
two themes on cms - by mobiten - 2010-03-09, 11:07:25
two themes on cms - by internet54 - 2010-03-09, 17:04:10
two themes on cms - by Zegnåt - 2010-03-09, 17:20:00
two themes on cms - by mobiten - 2010-03-10, 07:55:22
two themes on cms - by Zegnåt - 2010-03-10, 08:15:25
two themes on cms - by internet54 - 2010-03-10, 09:13:41
two themes on cms - by ccagle8 - 2010-03-10, 09:35:12
two themes on cms - by mobiten - 2010-03-10, 09:47:16
two themes on cms - by Zegnåt - 2010-03-10, 16:46:42
two themes on cms - by mobiten - 2010-03-10, 17:06:27
two themes on cms - by Zegnåt - 2010-03-10, 18:00:01
two themes on cms - by mobiten - 2010-03-10, 20:05:13
two themes on cms - by Zegnåt - 2010-03-10, 23:59:13
two themes on cms - by mobiten - 2010-03-13, 05:15:47
two themes on cms - by Zegnåt - 2010-03-13, 05:21:31



Users browsing this thread: 5 Guest(s)