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
Cannot order subpages list, why?
#7
(2019-02-20, 09:43:03)SalamandersPL Wrote: Your code gave me this:

https://www.salamanders-studio.com/temp/result2.png

Well, it would be great to have that option to sort it same as displayed in CMS.
And what is "menuOrder" for?

Smile

Do you have install i18N plugin? If you have, create a new component (Theme->Edit Components) with this code:

Component name -> custom-nav
PHP Code:
<li class="<?php echo $item->classes; ?>">

 
 <a href="<?php echo htmlspecialchars($item->link); ?>">
 
   <?php echo htmlspecialchars($item->title); ?>
  </a>
 
  <?php if ($item->isOpen) { ?>
    <ul><?php $item->outputChildren(); ?></ul>
  <?php ?>
</li> 
In template add this:
PHP Code:
<?php if (return_page_slug()=='term-conditions') { ?>    
    <ul class="tree">    
    <?php get_i18n_navigation('term-conditions',1,100,I18N_SHOW_NORMAL'custom-nav'); ?>
    </ul>
<?php ?>
Reply


Messages In This Thread
RE: Cannot order subpages list, why? - by smdp-1971 - 2019-02-20, 19:33:50



Users browsing this thread: 1 Guest(s)