Menu Third Level

Permalink Browser Info Environment
I am using Derwin for 5.6.x
I need to add a third level like this;
About / 2nd level / 3rd level

One of two things happen:
1. However, even though a down arrow shows, I am not able to see the third level and it makes it so the link to the 2nd level doesn't work any longer either.
2. The sub pages do not show

Solution?

Type: Discussion
Status: Resolved
watkec
View Replies:
pilipala replied on at Permalink Reply
pilipala
Hi

This theme uses Bootstrap, which has a two level menu, not a multi-level menu. The reason for this is that Bootstrap aims to be more accessible on touch devices and mobiles. Therefore, this theme is not suitable for multi-level menu website designs.

If you wanted to make it multi-level, you would need to customise it. It is a Bootstrap 3 theme, so if you search on the internet for "multi level bootstrap menu" and look for Bootstrap version 3 solutions, you will find some examples.

The menu is hard coded into header.php, so you would need to change the levels there. The file is located here:

derwen\themes\derwen\elements\header.php

On line 104 of header.php you will see this code
$bt->controller->displaySubPageLevelsNum = 1;

This says how many sub levels to show. So if you wanted it to be 2, then you would change the 1 to 2.

Also, you would need to add some CSS to show the third level.

You may find these blog posts on customising the concrete5 menu helpful:
1. Discusses the autonav block

http://c5blog.jordanlev.com/blog/2011/12/customizing-the-autonav-te...

2. Discusses hard coded autonav options

http://c5blog.jordanlev.com/blog/2012/04/hard-coded-autonav-options...

If you need to change the autonav template, it is located here:

derwen\blocks\autonav\templates\view.php

Thanks,

Jennifer

concrete5 Environment Information

# concrete5 Version
5.6.3.4

# concrete5 Packages
Awkward Slider (1.0.4), Before & After Image (1.2), Blueberry Image Slider (1.3), City5 Carousel (0.9.6), Derwen (0.9.7), Designer Content (3.1.1), Dynamic Iframe (1.7), Simple Accordion (0.9.3), tcSlider (2.2.9), tnSpacer (1.3), Whale Nivo Image Slider (1.2).

# concrete5 Overrides
languages/vi_VN, languages/ja_JP, languages/zh_TW, languages/pt_PT, languages/sv_SE, languages/sk_SK, languages/es_PE, languages/pl_PL, languages/es_MX, languages/fr_FR, languages/tr_TR, languages/sl_SI, languages/el_GR, languages/ru_RU, languages/fi_FI, languages/nb_NO, languages/de_DE, languages/pt_BR, languages/es_AR, languages/da_DK, languages/nl_NL, languages/fa_IR, languages/ar, languages/cs_CZ, languages/ro_RO, languages/it_IT, languages/es_ES

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - Off

# Server Software
Apache/2.4.18 (Ubuntu)

# Server API
apache2handler

# PHP Version
5.6.32-1+ubuntu16.04.1+deb.sury.org+2

# PHP Extensions
apache2handler, calendar, Core, ctype, curl, date, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imap, intl, json, libxml, mbstring, mcrypt, mhash, mysql, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, readline, Reflection, session, shmop, SimpleXML, soap, sockets, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xdebug, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend OPcache, zip, zlib.

# PHP Settings
max_execution_time - 60
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 10000
memory_limit - 256M
post_max_size - 256M
sql.safe_mode - Off
upload_max_filesize - 200M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
xdebug.max_nesting_level - 256
xdebug.max_stack_frames - -1
xdebug.var_display_max_children - 128
xdebug.var_display_max_data - 512
xdebug.var_display_max_depth - 3
opcache.max_accelerated_files - 2000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.