Creating multiple popups in a content block

Permalink Browser Info Environment
Even though this is listed as beginner level I am struggling to figure out how to create multiple pop-ups in a single content block of text. I have a largish block of text where I want to create the equivalent of popup 'footnotes'. In other words, clicking on a bit of text, say '(1)' pops up a small text popup with the explanatory note. There are perhaps 6 or more such notes in the text block and several pages will have notes. I am not finding any guidance on the documentation page that you link. Could you provide some guidance on that, please. Thanks.

Type: Discussion
Status: In Progress
deoldphart
View Replies:
pvernaglia replied on at Permalink Reply
pvernaglia
Hi,
Here's what you want to do. First install a regular Content Block with your long text, then you need to create links in that text for popups. Click the Source button and edit the text you want to have activate the popup:

<a id="popup1">Link Text</a>

Save that then install a Content PopUp Block. Select the Link Type CSS Selector and in the field for Class or ID put #popup1. Put the text you want to popup in the Content section and save the block.

You will need to install a separate PopUp Content Block for each link you have in your regular Content Block. Each should use a different ID. Once the page is published the popUps will work for you.

Peter
deoldphart replied on at Permalink Reply
deoldphart
Okay, thanks. That works. I thought it might be something like that but I was rather hoping I didn't have to put a separate instance of the block for each note. I can work with that.

The popups look good and will get the job done. I don't suppose there is a chance we could get the cursor to turn into a fist on hovering over the target to make it obvious that it is clickable. Thanks.

EDIT: Never mind about the cursor. I found out how with a style statement. (I'm a bit of a novice learning on the fly.) Now I have everything working the way I want. THanks for the handy add-on.
pvernaglia replied on at Permalink Reply
pvernaglia
You can form the link like this <a href="#" id="popup1">Link Text</a> if you don't want to play with styling.

concrete5 Environment Information

# concrete5 Version
Core Version - 8.5.4
Version Installed - 8.5.4
Database Version - 20200609145307

# Database Information
Version: 10.3.24-MariaDB-log-cll-lve
SQL Mode: NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

# concrete5 Packages
Cloneamental (0.9.3), Nestable Manual Nav (1.4.1), Simple Nav Menu (1.1.1), Touch Gallery 3 (3.3.0), Webli Content PopUp (2.3)

# concrete5 Overrides
None

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

# Server Software
LiteSpeed

# Server API
litespeed

# PHP Version
5.6.40

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

# PHP Settings
max_execution_time - 120
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 360
max_input_vars - 8000
memory_limit - 256M
post_max_size - 512M
sql.safe_mode - Off
upload_max_filesize - 512M
ic24.api.max_timeout - 7
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 - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
opcache.max_accelerated_files - 7963
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5
zend_optimizerplus.max_accelerated_files - 2000
zend_optimizerplus.max_file_size - 0
zend_optimizerplus.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:85.0) Gecko/20100101 Firefox/85.0

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.