Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • srangelov Friend
    #116696

    I installed Remository Ext – a great addon!
    I am trying to put a link into the description of a file.
    In the ReMository Configuration -> Rights there is a field for allowed HTML tags to be used within the Description field – br,p, and so on. I tried to add the th e tag a href=”” but still the Remository cannot understand that I am trying to make a link within the description and what I see on my page is :
    <a href=”http://www.donna.bg”>Donna.bg</a> instead of Donna.bg – the weblink.
    If any one have any ideas how to add a link to the description, I will highly appreciate your comments!
    P.S. I want to add several link there, that is hwy I do not want to use the field URL address of the file provider! The file for download is a result of a cooperation and I am trying to make links to other partners.

    nathanbohn Friend
    #209447

    in the xml installer file… when you see <description> add

    <![CDATA[

    after it and add

    ]]

    before the </description> tag and you will be able to add <a href=””> tag. You might want to make your <a> tag target=”blank” so it opens in a new window

    srangelov Friend
    #210029

    Hi and thank you for the reply.
    But the only xml file with tag \”<description>\” is remository_installer.xml and I think this is not the correct file to be changed.
    Once again the problem – I need to add a URL link within the description of a file added to the Remository system, so that when a user view the file and read the description of this file would see the link and would be able to click on it.

    P.S.

    I tried to modify and put that code into the remository.html.php file – the line where the short description is shown on the page:
    <td> <![CDATA[
    <?php
    $sdesc = ”;
    if (($file->description<>”) AND ($file->autoshort)) {
    $slen = 0;
    $slen = strlen($file->description);
    if ($slen>=($repository->Small_Text_Len-4)){
    $sdesc=substr($file->description,0,$repository->Small_Text_Len-4).’…’;
    } else {
    $sdesc=$file->description;
    }
    } elseif ($file->smalldesc<>”) {
    $sdesc = $file->smalldesc;
    }
    echo $sdesc; ?>
    ]]
    </td>

    But on my webiste I see again <a href=””> instead of a link. More over at the end of every short description there is \”]]\”

Viewing 3 posts - 1 through 3 (of 3 total)

This topic contains 3 replies, has 2 voices, and was last updated by  srangelov 18 years, 3 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum