Accordion: Jump to / Link to Specific Tab

Permalink Browser Info Environment
Hello,

Is it possible to jump to / link to a tab when rendered in the accordion view? The tab view works well, but I need a link to open the tab in the accordion view. Any insight on how I can accomplish this would be greatly appreciated.

Thank you!

Type: Discussion
Status: Archived
tabercreative
View Replies:
JohntheFish replied on at Permalink Reply
JohntheFish
[Deleted]
JohntheFish replied on at Permalink Reply
JohntheFish
I looked into this and the functionality turns out to be already there. Its a while since I used it, hence I didn't remember :-)

If you go to the edit setting global/accordion initial state and select "initially open", then the accordion will open either the first section or the sticky section or the linked section.

If you don't want that as a global option, you can override the setting in a custom template as perhttps://c5magic.co.uk/addons/magic-tabs/developer-interfaces...

I will add a note about this to the problem solving support page.
JohntheFish replied on at Permalink Reply
JohntheFish
I have written this up with a little more detail at:
https://c5magic.co.uk/addons/magic-tabs/jump-and-linking-specific-ta...
tabercreative replied on at Permalink Reply
tabercreative
My apologies, I just realized I never thanked you for the prompt response and explanation. Thank you!

In the scenario I was dealing with, I had an overview section, then accordion sections for more info. I didn't want a tab to be initially opened because the accordions depended on a yes/no answer in the overview.

So, in using your explanation, the solution was to put the overview in the initially opened tab, then the yes/no answer opened the according accordion (hah).

Thanks again. Problem solved.

concrete5 Environment Information

# concrete5 Version
Core Version - 8.5.2
Version Installed - 8.5.2
Database Version - 20190925072210

# Database Information
Version: 5.7.12-log
SQL Mode:

# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - On
Full Page Caching - On - In all cases.
Full Page Cache Lifetime - Every 5 minutes.

# Server Software
nginx/1.18.0

# Server API
fpm-fcgi

# PHP Version
7.1.33-25+ubuntu18.04.1+deb.sury.org+1

# PHP Extensions
bcmath, calendar, cgi-fcgi, Core, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, igbinary, imap, intl, json, libxml, mbstring, memcached, msgpack, mysqli, mysqlnd, newrelic, openssl, pcre, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, readline, Reflection, session, shmop, SimpleXML, soap, sockets, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, Zend OPcache, 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 - 128M
post_max_size - 100M
sql.safe_mode - Off
upload_max_filesize - 100M
memcached.sess_lock_max_wait - not set
memcached.sess_lock_wait_max - 150
memcached.sess_server_failure_limit - 0
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
newrelic.special.max_nesting_level - -1
newrelic.special.max_span_events - 0
newrelic.transaction_tracer.max_segments_cli - 100000
newrelic.transaction_tracer.max_segments_web - 0
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
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.