Left sidebar before include

Permalink Browser Info Environment
Hi,

I am using the Left Sidebar with Auto-Nav on my site.
When people visit site with mobile the Sidebar Menu is at the end of page after the Main section. Sometimes the Main section is very long and user have to scroll at the end of page to choose another page from menu (if not recognize to open small hamburger menu).

I am asking is it possible to put Sidebar before the Main section on mobile view?

Type: Ticket
Status: Resolved
pedroC5
View Replies:
shahroq replied on at Permalink Reply
shahroq
Hi,
You can use `full` page type and divide it into two columns via the core layout feature.
Another option would be duplicating the `left_sidebar.php` and creating another page template out of it, with a change in layout priority:

<div class="container">
    <div class="row">
        <div class="col-sm-4 col-sidebar">SIDEBAR</div>
        <div class="col-sm-8 col-content">CONTENT</div>
    </div>
</div>
pedroC5 replied on at Permalink Reply
pedroC5
Thank you Shahroq!
I used the first one, it worked perfect :)

concrete5 Environment Information

# concrete5 Version
Core Version - 8.5.7
Version Installed - 8.5.7
Database Version - 20210623000000

# Database Information
Version: 10.1.48-MariaDB-0ubuntu0.18.04.1
SQL Mode: NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

# concrete5 Packages
Clear Clipboard (1.0.1), Community Store (2.4.3), Formidable (Full Version) (2.1.7.1), GDPR (1.8.3), Grand Gallery (1.6.1), Pages Carousel (1.1), Pixel Theme (2.4.0), Simple Anchor (1.0.1), Simplelist (0.4.4), Spacer (0.9.4), Touch Gallery 3 (3.3.0), Whale Responsive Tables (1.2.1), Zopim Chat (3rd party) (1.1.0)

# concrete5 Overrides
blocks/cp_readspeaker/add.php, blocks/cp_readspeaker/icon.png, blocks/cp_readspeaker/db.xml, blocks/cp_readspeaker/view.php, blocks/cp_readspeaker/edit.php, blocks/cp_readspeaker/form.php, blocks/cp_readspeaker/view.css, blocks/cp_readspeaker/controller.php, blocks/cp_readspeaker, blocks/page_list/templates/pixel_blog_grid_3_with_filter.php, blocks/page_list/templates/yhteystieto.php, blocks/page_list/templates/yritykset.php, blocks/page_list/templates, blocks/page_list, blocks/search/templates/hae.php, blocks/search/templates/hae_yhteys.php, blocks/search/templates, blocks/search, page_templates/yritys.php, page_templates/yhteys.php

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - On - If blocks on the particular page allow it.
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
nginx/1.14.0

# Server API
fpm-fcgi

# PHP Version
7.2.24-0ubuntu0.18.04.11

# PHP Extensions
bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, json, libxml, mbstring, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, Phar, posix, readline, Reflection, session, shmop, SimpleXML, soap, sockets, sodium, SPL, standard, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, 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 - 1000
memory_limit - 128M
post_max_size - 512M
upload_max_filesize - 512M
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
opcache.max_accelerated_files - 10000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.2 Safari/605.1.15

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.