Bootstrap Collapsible Accordion doesn't work when logged in as administrator

Permalink Browser Info Environment
Hi, thanks for the great theme!

I have a page that uses Bootstrap's collapse class ( and it works fine when logged in as a standard user, but when logged in as an administrator it ceases to be functional.

I'm using the exact code as this:

This code is in an external form viewable on the frontend.

How would I begin to troubleshoot or fix this?

Type: Pre-Sale
Status: In Progress
View Replies:
jrmathis replied on at Permalink Reply
Sorry, I spoke too soon - it doesn't work even when logged in as a standard user.

I've read through the (imperfect) C5 documentation but I can't figure out how to get this to work.
nipper15 replied on at Permalink Reply
Hi, jrmathis

Are you installing collapse.js?
I think that It's not included in the theme.
You see the URL below.

jrmathis replied on at Permalink Reply
Thanks for your reply!

I've tried various things I've found throughout the forums and the web, including placing

$this->providesAsset('javascript', 'bootstrap/*');

into Stucco's page_theme.php, but no success.

I think I'm just failing to understand how and where to include the collapse.js file. I only need it on one page in particular, but I'm just a bit dense apparently and the documentation seems to glaze over important bits.

If you can give me a step-by-step to make this work with Stucco, I'd be happy to buy you a beer! (not kidding, I'll pay you!) :)
jrmathis replied on at Permalink Reply
UPDATE: I added:

$this->requireAsset('javascript', 'bootstrap/collapse');

And now it works with standard user accounts, but still not with Administrator accounts. Is there a conflict with whatever C5 includes for the top admin bar?

concrete5 Environment Information

# concrete5 Version
Core Version - 8.3.2
Version Installed - 8.3.2
Database Version - 20180122213656

# concrete5 Packages
Simple Slider (1.0), Stucco (2.1.4)

# concrete5 Overrides
blocks/external_form/form/supply_order_form.php, blocks/external_form/form/maintenance_request_form.php, blocks/external_form/form/controller/supply_order_form.php, blocks/external_form/form/controller/maintenance_request_form.php, blocks/external_form/form/controller, blocks/external_form/form, blocks/external_form, blocks/express_form, blocks/express_entry_detail/templates/maintenance_request_details.php, blocks/express_entry_detail/templates, blocks/express_entry_detail, mail/block_express_form_submission.php, src/MySite/Express/Form/Context, src/MySite/Express/Form, src/MySite/Express, src/MySite

# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software

# Server API

# PHP Version

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imagick, imap, intl, ionCube Loader, json, libxml, mbstring, mcrypt, mhash, mssql, mysql, mysqli, odbc, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, pspell, Reflection, session, SimpleXML, soap, sockets, SourceGuardian, SPL, sqlite3, standard, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend Guard Loader, zip, zlib

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 256M
post_max_size - 64M
sql.safe_mode - Off
upload_max_filesize - 64M
mssql.max_links - Unlimited
mssql.max_persistent - Unlimited
mssql.max_procs - Unlimited
mssql.textlimit - Server default
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
odbc.max_links - Unlimited
odbc.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

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0

Hide Post Content

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

Hide Content

Request Refund

Click below to request a refund for License #8127331. Assigned to Southwest EMS of Arkansas.
Created on May 12 2018 at 2:54 pm