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 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
Find out the navigation level?
#3
Zegnåt Wrote:GetSimple never goes any deeper than 2 levels, and an expansion of this limit hasn't been planned (as of yet). So all you need to do is check whether $parent exists and is a valid non-empty string. If it doesn't exist or is empty you're at the top-level. If it exists and is a string, you're on a child page.

Thanks for your fast answer.
The variable $parent does not seem to exist. How do you create it?
Furthermore I would need some kind of "get_parent_page_url()" and "get_parent_page_title()" to display the name and URL of the parent. I can't find anything about that in the GetSimple-Documentation.
My breadcrumb looks like this:
[Image: breadcrumb.png]
Reply


Messages In This Thread
Find out the navigation level? - by media-seven - 2010-10-06, 19:10:09
Find out the navigation level? - by Zegnåt - 2010-10-06, 20:11:42
Find out the navigation level? - by media-seven - 2010-10-06, 20:33:24
Find out the navigation level? - by Zegnåt - 2010-10-07, 01:04:31
Find out the navigation level? - by media-seven - 2010-10-07, 16:21:03
Find out the navigation level? - by Zegnåt - 2010-10-07, 16:54:20
Find out the navigation level? - by media-seven - 2010-10-07, 17:10:00
Find out the navigation level? - by Zegnåt - 2010-10-07, 18:32:45



Users browsing this thread: 1 Guest(s)