tinyMCE - typolinks vs. advlink
I see there is typolinks instead advlink but i am wondering why there is no support in typolinks for advanced feature Relationship page to target ..where i can choose Lightbox for ex.: link to different picture than thumbnail with lightbox
..so now i have to have two buttons for links and two buttons for pics and that is like...hm you know what i mean
Re: tinyMCE - typolinks vs. advlink
Solved:
It's not a perfect solution but it does the job.
Instead of hacking tiny_mce for a better rel="" solution than advlink can offer, we'll write a Javascript dealing with the creation of the rel="lightbox" attribute. Leaving tiny_mce (almost) all alone.
.... details are here: http://www.bibblan.com/martin/tinymce-rel-with-lightbox
the only thing you have to adopt from link above ...is the code for mootools instead of prototype:
Code:
<script type="text/javascript">
<![CDATA[//><!--
window.addEvent('domready', function(){
$$('a[class^=lightbox]').each(function(el) {
el.rel = 'lightbox';
});
});
//--><!]]>
</script>
and put it in your fe_main.tpl before this line:
Code:
<script type="text/javascript" src="plugins/slimbox/<?php echo $this->language; ?>/js/slimbox.js"></script>
Re: tinyMCE - typolinks vs. advlink
Why don't you use the "insert lightbox image" button in TinyMCE?
Re: tinyMCE - typolinks vs. advlink
Quote:
Originally Posted by leo
Why don't you use the "insert lightbox image" button in TinyMCE?
well I am using it... but sometimes there are two different images one for thumbnail and one for big image displayed in lightbox modal window
...so clickable thumbnail is different from the one displayed in a lightbox modal
...so first i have to put thumbnail(with clasic or with lightbox image - thumbnail selected) in the content and than put a link on it for this different big picture ..so this link must have attribute rel="lightbox" which is not possible with typolinks plugin ;)
hope u understand what i mean
Re: tinyMCE - typolinks vs. advlink
Yes I do, and it is a good point actually. If you create a ticket, I'll add an option to version 2.8.