"Back to Gallery Page" control

Permalink Browser Info Environment
I know each individual gallery page is generated on the fly. Is it possible to put some control in that code to have a "Back to Gallery" link? Would be nice to do that without using the browser's back button.

Type: Pre-Sale
Status: Resolved
bjalexander
View Replies:
emirii replied on at Permalink Reply
emirii
Hello, if you are familiar with HTML and the theming of concrete5 and you are only using the single page for galleryES, you can create a "back" link thay uses Javascript to go back on users browser (or hard link to your gallery page) on the single page template file named view.php in the theme. this would be the best since you can customize it how you want.

If you arent, let me know and I can work something out with an overrides file. Thanks!
emirii replied on at Permalink Reply
emirii
Hello, if you are familiar with HTML and the theming of concrete5 and you are only using the single page for galleryES, you can create a "back" link thay uses Javascript to go back on users browser (or hard link to your gallery page) on the single page template file named view.php in the theme. this would be the best since you can customize it how you want.

If you arent, let me know and I can work something out with an overrides file. Thanks!
bjalexander replied on at Permalink Reply
bjalexander
Perfect! Just in case anyone else hits this, here's the code I used on view.php. Instead of coding it to go to a specific URL, I'm just sending them back one page. I put it at the bottom of the page with an hr above so if something else uses the single page it won't look out of place.

<hr><a href="javascript:history.go(-1)">Go back to previous page</a>

concrete5 Environment Information

# concrete5 Version
5.6.3.3

# concrete5 Packages
301 Redirects (2.2.2), Advanced Forms (1.13.1), Designer Content (3.1.1), Dojo Page Filter Pro (2.3), Dynamic Iframe (1.7), GalleryES (1.50), Iframe (1.0), Mailchimp (1.3.4), Pro Blog (12.4.4), RSS Feed Creator (1.24), Socializer (5.6.0.0.6.1.6), Structura Theme (1.1.1), Whale Nivo Image Slider (1.2).

# concrete5 Overrides
blocks/case_study_summary, blocks/case_study_overview, blocks/case_study_block, blocks/content, blocks/templates, blocks/problog_list, blocks/autonav, languages/el_GR, languages/nb_NO, languages/es_PE, languages/sv_SE, languages/zh_TW, languages/de_DE, languages/he_IL, languages/da_DK, languages/vi_VN, languages/fa_IR, languages/fr_FR, languages/zh_CN, languages/it_IT, languages/sl_SI, languages/ru_RU, languages/ro_RO, languages/ja_JP, languages/es_MX, languages/fi_FI, languages/pt_PT, languages/cs_CZ, languages/tr_TR, languages/es_ES, languages/es_AR, languages/ar, languages/nl_NL, languages/sk_SK, themes/MTG_Site, themes/MTG_Site.zip

# 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 - Only when manually removed or the cache is cleared.

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
5.2.17

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, ctype, curl, date, dba, dbase, dom, exif, filter, ftp, gd, gettext, gmp, hash, iconv, imagick, imap, json, ldap, libxml, mbstring, mcrypt, mhash, mime_magic, mysql, mysqli, ncurses, odbc, openssl, pcntl, pcre, PDO, pdo_dblib, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, posix, pspell, readline, Reflection, session, shmop, SimpleXML, soap, sockets, SPL, SQLite, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend Optimizer, 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 - 50M
safe_mode - Off
safe_mode_exec_dir - <i>no value</i>
safe_mode_gid - Off
safe_mode_include_dir - <i>no value</i>
sql.safe_mode - Off
upload_max_filesize - 50M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
odbc.max_links - Unlimited
odbc.max_persistent - Unlimited
pcre.backtrack_limit - 200000
pcre.recursion_limit - 200000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
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

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:36.0) Gecko/20100101 Firefox/36.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.