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
SOLVED i18n Нow to remove the menu item from the output
#1
Information 
Hi!
I need your help.
I want to display two menu on the site  -  main menu + off-canvas menu(for mobile).

In the main menu, one of the items i need hide.
In the off-canvas menu(for mobile) we need all menu items including hidden in main menu.

To display the main menu, I use:

PHP Code:
<?php get_i18n_navigation(return_page_slug(),0,1,I18N_SHOW_MENU'menu'); ?>

To display the off-canvas menu, I use:

PHP Code:
<?php get_i18n_navigation(return_page_slug(),0,99,I18N_SHOW_MENU'off-canvas'); ?>

I tried to disable the desired option in the admin panel - "turn on / off the visibility of the in menu". BUT THEN the item is lost in both menu.

Maybe there is some php code like menu rendering to remove an item from the menu, knowing link page or ID or name page or slug or something else.
PHP I do not know, I can only slightly edit.
I use machine translation. Forgive me my errors.
Reply


Messages In This Thread
i18n Нow to remove the menu item from the output - by AleksK - 2017-02-16, 11:21:41



Users browsing this thread: 2 Guest(s)