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
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
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
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
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
Parse content from another page... - 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: Parse content from another page... (/showthread.php?tid=3206)



Parse content from another page... - widecircle - 2012-05-19

Is there a "good" way to have content from another page beeing pulled into a page.
For example to have content from an "About Us" - section pulled into the "Home" - section of a get simple website.
I guess you could just use some PHP like simpleXML to load & parse the XML-file for that section but I just wonder if there is another way of doing it that is more related to the get simple cms.

Best, Niklas


Parse content from another page... - n00dles101 - 2012-05-19

just use getPageContent('slug_name') to output content from another page


Parse content from another page... - widecircle - 2012-05-21

Aha!
Thank you very much for that answer!

Niklas


Parse content from another page... - widecircle - 2012-05-21

Hmm...now I've tried this but it seems as though it doesn't work.
No matter what I do it still treat it as if the code would be <?php get_page_content(); ?>

Niklas


Parse content from another page... - n00dles101 - 2012-05-21

What version of GS are you using , this function is from version 3.1 onwards.


Parse content from another page... - widecircle - 2012-05-21

n00dles101 Wrote:What version of GS are you using , this function is from version 3.1 onwards.

Hi - thanks for a fast answer!

I'm using version 3.1

I have a page with a slug that is kontakt - i.e www.mysite.com/kontakt
Then I try this <?php get_page_content('kontakt'); ?> with no result other than it outputs the content as if I would be using <?php get_page_content(); ?>


Parse content from another page... - n00dles101 - 2012-05-21

Yes this is what it does.

It allows you to pull in the content areas from other pages into 1.

What exactly are you trying to do?


Parse content from another page... - widecircle - 2012-05-21

Hi!
Hmmm...maybe we misunderstand each other or maybe I misunderstood the whole thing.
I'm trying to have the content for the kontakt-section or "kontakt-page" to be displayed on the start/index page. When is use <?php get_page_content('kontakt'); ?> on the indexpage it still display the content for the startpage. Am I missing something obvious here? :?

Niklas


Parse content from another page... - widecircle - 2012-05-21

widecircle Wrote:Hi!
Hmmm...maybe we misunderstand each other or maybe I misunderstood the whole thing.
I'm trying to have the content for the kontakt-section or "kontakt-page" to be displayed on the start/index page. When is use <?php get_page_content('kontakt'); ?> on the indexpage it still display the content for the startpage. Am I missing something obvious here? :?

Niklas

Oh - and to clarify - the slug of what I call "kontakt-page" is kontakt..


Parse content from another page... - n00dles101 - 2012-05-21

it's a different function your using.

use : getPageContent('slug_name')

The one your using is for the current page only.


Parse content from another page... - widecircle - 2012-05-21

Oh - crap!
I was missing something obvious - how embarrassing. Smile
Thank you very much for taking some of your time to help me out... Smile
Now it works like a charm!!

Niklas


Parse content from another page... - n00dles101 - 2012-05-21

no problem...
good luck with the sitte...


Parse content from another page... - shawn_a - 2012-05-21

n00dles101 Wrote:no problem...
good luck with the sitte...

wow thats not confusing at all.
I say we replace that with an alias getContentForPage() in the future.