AW: [daisy] How to make external links open in a new window?

"Ehms, Jürgen" jge at msc-ge.com
Mon Oct 8 02:19:11 CDT 2007


I had the same problem with Link-target and Link-Styling so I patched this
this in HTML-Area. 

\daisy-2.0\daisywiki\webapp\daisy\resources\cocoon\forms\htmlarea\plugins\DaisyLinkUtils\daisy-link-utils.js

\daisy-2.0\daisywiki\webapp\daisy\resources\cocoon\forms\htmlarea\plugins\DaisyLinkUtils\popups\link.xml

Here I hard coded the target and class selection as a js-Array in link.xml.
But this is not the good way, becorse you have to do this on every Update.
I'm not so familiar with Ajax, but the the best way would be to load this with ajax like the table styles are done from a xml-file in skinning.

If you, ore anybody have a better solution, let me know.


Jürgen Ehms




> 
MSC Vertriebs GmbH
registered office : Stutensee
Jurisdiction and registered Mannheim, Germany, HRB No. 10 3631
Managing Director: Manfred Schwarztrauber, Lothar Kümmerlin, Rüdiger Kuhn

Gleichmann & Co. Electronics GmbH
registered office : Frankenthal
Jurisdiction and registered Ludwigshafen, Germany, HRB No. 21305
Managing Director: Manfred Schwarztrauber, Josef Schuy, Thomas Klein

-----Ursprüngliche Nachricht-----
> Von: daisy-bounces at lists.cocoondev.org 
> [mailto:daisy-bounces at lists.cocoondev.org] Im Auftrag von hepabolu
> Gesendet: Freitag, 5. Oktober 2007 15:57
> An: open source CMS - general mailinglist
> Betreff: [daisy] How to make external links open in a new window?
> 
> 
> Hi,
> 
> I'm sure this is written up somewhere, but I cannot find it. 
> I want to 
> configure the external links so they open up in a separate window. Is 
> that a skinning issue or a configuration issue?
> 
> I cannot find how to do it in the WYSIWYG editor and the users prefer 
> not to go into the HTML to add 'target="_blank" to every 
> external link.
> 
> Bye, Helma
> _______________________________________________
> daisy community mailing list
> Professional Daisy support: 
> http://outerthought.org/site/services/daisy/da> isysupport.html
> 
> mail to: daisy at lists.cocoondev.org
> list 
> information: http://lists.cocoondev.org/mailman/listinfo/daisy
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: link.xml
Type: text/xml
Size: 7585 bytes
Desc: link.xml
Url : http://lists.cocoondev.org/pipermail/daisy/attachments/20071008/ed43070b/link-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: daisy-link-utils.js
Type: application/octet-stream
Size: 31653 bytes
Desc: daisy-link-utils.js
Url : http://lists.cocoondev.org/pipermail/daisy/attachments/20071008/ed43070b/daisy-link-utils-0001.obj


More information about the daisy mailing list