Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

In the template, no changes will be accepted

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 3 months ago #139161 by Krikor Boghossian
Replied by Krikor Boghossian on topic In the template, no changes will be accepted
The modal is rendered inside an iframe. Links are disabled because the links will render within that iframe.

If you are administrating the content, you can use target="_blank" and comment out the following section in brconcept.de/2014_archetype/templates/archetype/js/behaviour.js .
// Remove all links when inside a portfolio item
		$('.viewIsModal').on('click','a',function(e){
			e.preventDefault();
		});

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Dietmar
  • Dietmar's Avatar Topic Author
  • Offline
  • New Member
More
10 years 3 months ago #139162 by Dietmar
Replied by Dietmar on topic In the template, no changes will be accepted
Ok, thak's it works now :)

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 3 months ago #139163 by Krikor Boghossian
Replied by Krikor Boghossian on topic In the template, no changes will be accepted
Nice to hear that Dietmar.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
10 years 3 months ago #139164 by Kevin Kosbab
Replied by Kevin Kosbab on topic In the template, no changes will be accepted

Krikor Boghossian wrote: you can use target="_blank" and comment out the following section in brconcept.de/2014_archetype/templates/archetype/js/behaviour.js .


This was very helpful for me too. I commented out the lines of Javascript and have links in the portfolio modal working now, but is there a way to force all links in the modal to use target="_blank"? I'd like to use links in the portfolio pages to go to pages in my online shop etc., so my content has links in the item text and extra fields and I'm hoping to avoid updating them manually.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 3 months ago #139165 by Krikor Boghossian
Replied by Krikor Boghossian on topic In the template, no changes will be accepted
You can use a javascript solution to batch apply that attribute.
(function($) {
	$(window).load(function(){
		$('.viewIsModal a').attr('target','_blank');
	});
})(jQuery);

Try this snippet.
PS. paste it in your custom.js file

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
10 years 3 months ago #139166 by Kevin Kosbab
Replied by Kevin Kosbab on topic In the template, no changes will be accepted
Fantastic! Thanks Krikor.

I ended up using _parent instead of _blank so the links would open in the current window/tab rather than a new one, in case anyone else is looking for the same behaviour.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 3 months ago #139167 by Krikor Boghossian
Replied by Krikor Boghossian on topic In the template, no changes will be accepted
Great, I'm glad the issue was solved.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum