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
i18n how to set the parent menu no-clickable?
#2
Hi
There are two ways that I know of:
First(simple but inconvenient):
i18n plugin + menu rendering (http://mvlcek.bplaced.net/multi-level-navigation/navigation-rendering)

href attribute, remove the output from the reference, and then lose each parent menu link.
Validator allows you to create <a> tag without HREF - no error
<a> tag saved for easier styling with CSS

Example code without HREF:
use a component

in code second row
href="<?php echo htmlspecialchars($item->link); ?>"
must be removed


Code:
<li class="<?php echo $item->classes; ?>">
 <a href="<?php echo htmlspecialchars($item->link); ?>">
   <?php echo htmlspecialchars($item->text); ?>
 </a>
 <?php if ($item->isOpen) { ?>
   <ul><?php $item->outputChildren(); ?></ul>
 <?php } ?>
</li>


Second (a little more complicated, but perfectly adjusted):
i18n plugin + Сustom Fields plugin + menu rendering 
(http://mvlcek.bplaced.net/multi-level-navigation/navigation-rendering)
http://mvlcek.bplaced.net/get-simple/custom-fields

This method allows you to choose where post a link and where not to post a link.

very well described here

Non-Clickable Links for il8N Navigation?
I use machine translation. Forgive me my errors.
Reply


Messages In This Thread
RE: i18n how to set the parent menu no-clickable? - by AleksK - 2017-02-16, 07:46:04



Users browsing this thread: 1 Guest(s)