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 1121 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 830 postParser->parse_message
/showthread.php 1121 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 1121 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 830 postParser->parse_message
/showthread.php 1121 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
Get a field from all pages
#1
Hi guys,
hope this is not a repeated questions, but I tried searching here and googling, but couldn't find the answer.

What I'm currently trying to do - just briefly - is an affialite shop where I get data from suppliers' xml file and parse those into pages.

I am going to use a special field (via special fields plugin) which will store the URL to the image of the product...

What I would like to do next is pull this field from all pages in my GetSimple and put that to a list...is that possible?

Basically I just want to have a page with a lot of product thumbnails leading to a getsimple page with description and bigger picture...

Thanks in advance for any help!
Reply
#2
I do not know how that plugin works but page fields are auto cached into a global pagesArray.
Read the wiki on page cache
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#3
First of all, thank you for pointing me into the right direction (hopefully)

I believe/hope the plugin just adds another field to pages
should this work?

Code:
function listPages(){
    global $pagesArray;
$pages= subval_sort($pagesArray,'menuOrder');
     foreach ($pages as $page) {
         echo '<ul>';
        echo '<li>'.$page['MYCUSTOMFIELDHERE'].'</li>';
        echo '</ul>';
    }
}

I am writing from a mobile device so I can't test it...but in your opinion (or anyone else's for that matter) would this code work the way I think it should?

Thanks again!
Reply




Users browsing this thread: 2 Guest(s)