Compatible with Table Sorter Plugin?

Permalink Browser Info Environment
I've several tables and I wanted to make them autosorted. The Plugin Table Sorter is just what I needed. However it appears that it doesn't seem to work with this theme. Is there anything I need to do from a javascript/loading perspective to get this to work with this theme?

Type: Discussion
Status: In Progress
plschneide
View Replies:
jb1 replied on at Permalink Reply
jb1
Sure, the key feature of the addon is that it must load the required JavaScript once (when the page loads), as all page loads are done via Ajax. Other than that, as long as there's no JS clashes it should work. Just have a look through the view.php files (block templates) included with the theme as a guide.
Hope this helps.
JB
plschneide replied on at Permalink Reply
plschneide
Thanks for your help. I've been looking through the various templates - view.php and unfortunately I am not seeing what you are describing.

I believe you are saying I need to edit the view.php of the plugin? I see the 2 js files it needs to load (that obviously are not being loaded) but not sure what to do.
jb1 replied on at Permalink Reply
jb1
If you take a look at the "jb_mobile_gallery" block within the Mobile App theme, the view.php contains the inclusion of any relevant JS files (rather than doing that in the controller.php which is the typical approach in C5). This is because the Mobile App theme preload all the relevant content and skips any "header" stuff that other blocks may include (like CSS and JS). So they have to be done in the view.php file to get included.

Hope this helps.

JB
plschneide replied on at Permalink Reply
plschneide
Thanks that did it - for those interested - I added the following lines to the view.php in the tablesorter
<script type="text/javascript" src="<?php  echo $this->getBlockURL(); ?>/js/engaging.js"></script>
<script type="text/javascript" src="<?php  echo $this->getBlockURL(); ?>/js/tablesorter.js"></script>
jb1 replied on at Permalink Reply
jb1
Great to hear :)

JB
On 16 Jan 2016 6:01 pm, "concrete5 Community" <discussions@concretecms.com>
wrote:

concrete5 Environment Information

# concrete5 Version
5.6.3.3

# concrete5 Packages
Dynamic Iframe (1.61), engagingit_table_sorter (1.1), Example FAQ (1.1.1), Extended Google Map (1.2), Get Directions (1.0b), Iframe (1.0), Mobile App (1.1.5).

# concrete5 Overrides
blocks/form

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

# Server Software
Apache/2.0.64 (Unix) mod_ssl/2.0.64 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 PHP/5.3.27

# Server API
apache2handler

# PHP Version
5.3.27

# PHP Extensions
apache2handler, apc, bcmath, calendar, Core, ctype, curl, date, dom, ereg, exif, filter, ftp, gd, gettext, hash, iconv, imap, ionCube Loader, json, libxml, mbstring, mcrypt, mysql, mysqli, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, Reflection, session, SimpleXML, soap, sockets, SPL, SQLite, sqlite3, standard, timezonedb, tokenizer, XCache, XCache Cacher, xml, xmlreader, xmlwriter, Zend Guard Loader, zip, zlib.

# PHP Settings
max_execution_time - 520
apc.max_file_size - 1M
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 64M
post_max_size - 20M
safe_mode - Off
safe_mode_exec_dir - /usr/local/php/bin
safe_mode_gid - Off
safe_mode_include_dir - <i>no value</i>
sql.safe_mode - Off
upload_max_filesize - 20M
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
safe_mode_allowed_env_vars - PHP_
safe_mode_protected_env_vars - LD_LIBRARY_PATH
xcache.var_maxttl - 0

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; WOW64; rv:43.0) Gecko/20100101 Firefox/43.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.