Closed (fixed)
Project:
Marinelli
Version:
7.x-3.0-beta9
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Apr 2011 at 13:06 UTC
Updated:
16 Jan 2020 at 08:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
maxplay commentedComment #2
Deepika.chavan commentedHi,
I tried the same thing on my local site.
1. I added following line in template.php after
include_once('logics/banners.inc');line:2. Added following code in myjs.js file (path- /themes/marinelli/myjs.js):
3. Cleared cached data.(here-'admin/config/development/performance').
Rgrds,
Deepika chavan.
Comment #3
maxplay commentedFantastic Deepika - it worked :-)
Just one little comment for other users:
I am using Drupal 7 together with the Marinelli 7.x template.
In this version, the JS file which has to be modified is as follows:
/themes/marinelli/js/marinelli_marinelli.js
I also modified the template.php script to address this location:
drupal_add_js(drupal_get_path('theme', 'marinelli') . '/js/marinelli_marinelli.js');
Otherwise just do what Deepika suggested and it works.
I hope this all makes sence - otherwise please correct me.
Many thanks again Deepika
Maxplay
Comment #4
CarlosSR commented(five years later)
Fantastic! it works perfectly.
But in my carousel banner there are external and internal links.
I wish that external links open a new tab, and internal do not.
How could I do it?
Thanks for helping!
Comment #5
djsagar commentedHi Deepika,
Code is working which you are sharing just created patch for your code in 7.x-4.x Version and change the status for knowledge who had facing this issue.
With help of this page or status change they can resolved there issue.
Thanks!
Comment #6
djsagar commentedPatch for 7.x-4.x Version.
Comment #7
djsagar commentedComment #8
Premanshu commentedThis patch applies cleanly.
Comment #10
gaurav.kapoor commentedComment #11
gaurav.kapoor commentedBy default, there will be a link opening in a new tab. In case someone has internal links as well, they will have to add appropriate JS code.
Comment #12
Deepika.chavan commentedHi,
Below js code may help to open only external links in new tab.
Regards,
Deepika