Crimson theme pagelist

Permalink Browser Info Environment
Hello,
I am using a pagelist-block (datasouth_slide_itemv2_list) on my websites homepage. The thumbnails link to internal pages. Now when clicking the thumbnails, the links open in a new browser-window. Since I am a designer and not a developer my technical knowledge is rather limited. Is it standard behavior for the pagelist-slider to open links in a new window, or am I doing something wrong, did i not make the correct settings? I just would like the pagelist-slider NOT to open new browser-window but in the same window. I need to use the link-target=_self, but how can I do that?

Many thanks in advance. Kind regards!

Type: Discussion
Status: In Progress
LightwC5
View Replies:
datasouth replied on at Permalink Reply
datasouth
Hi,

Sorry for the delayed reply.

I have uploaded the new version of the theme along with the fixes. Kindly update the theme and clear the browser's cache. Please see instructions below:

If you reinstalled the theme then you can go to the page and add attribrute "Open Links in New Tab" via Page Settings -> Attributes -> Open Links in New Tab

If you don't want to reinstall the theme you need to add the attribute via Pages & Themes -> Attributes -> Add Attribute -> Select "Checkbox" and hit Go -> enter the following:

Handle: open_links_in_new_tab
Name: Open Links in New Tab

and hit Add. You can now go to the page and add attribrute "Open Links in New Tab" via Page Settings -> Attributes -> Open Links in New Tab

Let me know how it goes. Regards.
LightwC5 replied on at Permalink Reply
LightwC5
Hello Datasouth.

Don't be sorry for the delay, after all, it was weekend, I understand.

Thanks for making the fixes. I downloaded your new theme-version and reinstalled it.
The pagelist-slider works like a charm now!
Thanks very much for your support and thanks for making the Crimson theme. It is one of my favorites.

Kind regards!
cmerritt replied on at Permalink Reply
cmerritt
Hi,

The fix you added for this has created another issue.
You have added the following code to your page list templates above the $date.
$page = $c->getCurrentPage();
                    $linksInNewTab = $page->getAttribute('open_links_in_new_tab');
                    if ($linksInNewTab) {
                        $target = '_blank';
                    }
                    $date = $dh->formatDateTime($page->getCollectionDatePublic(), true);

The result of the code to check for open link in new tab is that anything below that is using the current page page attributes rather than the page list pages.
If show date is selected then all the pages in the page list show the date of the page the page list is on.
I have fixed my site by moving the code to below the date code.

Colin
datasouth replied on at Permalink Reply
datasouth
Hi Colin,

Thanks for informing the issue and for the tip to solve it, I have updated the theme files to solve the issue you stated. Let me know if it is working in your end.

Best Regards,
Neil

concrete5 Environment Information

# concrete5 Version
Core Version - 8.1.0
Version Installed - 8.1.0
Database Version - 20170123000000

# concrete5 Packages
Crimson (1.2.6)

# concrete5 Overrides
languages/es_PY/LC_MESSAGES/messages.mo, languages/es_PY/LC_MESSAGES, languages/es_PY, languages/nl_NL/LC_MESSAGES/messages.mo, languages/nl_NL/LC_MESSAGES, languages/nl_NL, languages/da_DK/LC_MESSAGES/messages.mo, languages/da_DK/LC_MESSAGES, languages/da_DK, languages/pt_BR/LC_MESSAGES/messages.mo, languages/pt_BR/LC_MESSAGES, languages/pt_BR, languages/de_DE/LC_MESSAGES/messages.mo, languages/de_DE/LC_MESSAGES, languages/de_DE, languages/es_PE/LC_MESSAGES/messages.mo, languages/es_PE/LC_MESSAGES, languages/es_PE, languages/el_GR/LC_MESSAGES/messages.mo, languages/el_GR/LC_MESSAGES, languages/el_GR, languages/fi_FI/LC_MESSAGES/messages.mo, languages/fi_FI/LC_MESSAGES, languages/fi_FI, languages/cs_CZ/LC_MESSAGES/messages.mo, languages/cs_CZ/LC_MESSAGES, languages/cs_CZ, languages/it_IT/LC_MESSAGES/messages.mo, languages/it_IT/LC_MESSAGES, languages/it_IT, languages/ja_JP/LC_MESSAGES/messages.mo, languages/ja_JP/LC_MESSAGES, languages/ja_JP, languages/en_GB/LC_MESSAGES/messages.mo, languages/en_GB/LC_MESSAGES, languages/en_GB, languages/sv_SE/LC_MESSAGES/messages.mo, languages/sv_SE/LC_MESSAGES, languages/sv_SE, languages/nb_NO/LC_MESSAGES/messages.mo, languages/nb_NO/LC_MESSAGES, languages/nb_NO, languages/ru_RU/LC_MESSAGES/messages.mo, languages/ru_RU/LC_MESSAGES, languages/ru_RU, languages/es_PY/LC_MESSAGES/messages.mo, languages/es_PY/LC_MESSAGES, languages/es_PY, languages/nl_NL/LC_MESSAGES/messages.mo, languages/nl_NL/LC_MESSAGES, languages/nl_NL, languages/da_DK/LC_MESSAGES/messages.mo, languages/da_DK/LC_MESSAGES, languages/da_DK, languages/pt_BR/LC_MESSAGES/messages.mo, languages/pt_BR/LC_MESSAGES, languages/pt_BR, languages/de_DE/LC_MESSAGES/messages.mo, languages/de_DE/LC_MESSAGES, languages/de_DE, languages/es_PE/LC_MESSAGES/messages.mo, languages/es_PE/LC_MESSAGES, languages/es_PE, languages/el_GR/LC_MESSAGES/messages.mo, languages/el_GR/LC_MESSAGES, languages/el_GR, languages/fi_FI/LC_MESSAGES/messages.mo, languages/fi_FI/LC_MESSAGES, languages/fi_FI, languages/cs_CZ/LC_MESSAGES/messages.mo, languages/cs_CZ/LC_MESSAGES, languages/cs_CZ, languages/it_IT/LC_MESSAGES/messages.mo, languages/it_IT/LC_MESSAGES, languages/it_IT, languages/ja_JP/LC_MESSAGES/messages.mo, languages/ja_JP/LC_MESSAGES, languages/ja_JP, languages/en_GB/LC_MESSAGES/messages.mo, languages/en_GB/LC_MESSAGES, languages/en_GB, languages/sv_SE/LC_MESSAGES/messages.mo, languages/sv_SE/LC_MESSAGES, languages/sv_SE, languages/nb_NO/LC_MESSAGES/messages.mo, languages/nb_NO/LC_MESSAGES, languages/nb_NO, languages/ru_RU/LC_MESSAGES/messages.mo, languages/ru_RU/LC_MESSAGES, languages/ru_RU

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

# Server Software
Apache/2.4.25 (cPanel) OpenSSL/1.0.1e-fips mod_bwlimited/1.4

# Server API
cgi-fcgi

# PHP Version
5.6.30

# PHP Extensions
bcmath, calendar, cgi-fcgi, Core, ctype, curl, date, dom, ereg, fileinfo, filter, ftp, gd, gettext, hash, iconv, imap, ionCube Loader, json, libxml, mbstring, mcrypt, mhash, mysql, mysqli, mysqlnd, openssl, pcntl, pcre, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, readline, Reflection, session, SimpleXML, soap, sockets, SPL, sqlite3, standard, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, 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 - 8M
sql.safe_mode - Off
upload_max_filesize - 2M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
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

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/602.4.8 (KHTML, like Gecko) Version/10.0.3 Safari/602.4.8

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.