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!
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 |
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!
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!
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.
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
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
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
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
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.