Results 1 to 5 of 5

Thread: tinyMCE - typolinks vs. advlink

  1. #1
    New user
    Join Date
    06-21-09.
    Posts
    27

    Default 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
    ConTao rules!
    Thank you Leo and the team.

  2. #2
    New user
    Join Date
    06-21-09.
    Posts
    27

    Default 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>
    ConTao rules!
    Thank you Leo and the team.

  3. #3
    Core developer
    Official Contao Team
    leo's Avatar
    Join Date
    06-04-09.
    Location
    Wuppertal, Germany
    Posts
    201

    Default Re: tinyMCE - typolinks vs. advlink

    Why don't you use the "insert lightbox image" button in TinyMCE?

  4. #4
    New user
    Join Date
    06-21-09.
    Posts
    27

    Default 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
    ConTao rules!
    Thank you Leo and the team.

  5. #5
    Core developer
    Official Contao Team
    leo's Avatar
    Join Date
    06-04-09.
    Location
    Wuppertal, Germany
    Posts
    201

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •