PHP code example of toumoro / tm-ml-links

1. Go to this page and download the library: Download toumoro/tm-ml-links library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

toumoro / tm-ml-links example snippets

typoscript
plugin.tx_tmmllinks {
    # Séparateur entre l'icône et le texte du lien
    separator = &nbsp;

    # Définition pour les liens externes
    external {
        10.image = EXT:tm_ml_links/Resources/Public/Icons/globe.gif
        10.image.link = 0
        20.linkTag = 1
    }

    # Définition pour les fichiers PDF
    pdf {
        10.image = EXT:tm_ml_links/Resources/Public/Icons/filetypes/pdf.png
        10.image.link = 0
        20.linkTag = 1
        30.filesize = 1
    }

    # Configuration spéciale pour les liens Wikipedia
    externalDomain {
        1 {
            domain = http://en.wikipedia.org
            10.image = EXT:tm_ml_links/Resources/Public/Icons/domains/wikipedia.png
            10.image.link = 0
            20.linkTag = 1
        }
    }
}