PDA

View Full Version : ReMository Ext Description Field Rights


srangelov
05-17-2006, 03:18 PM
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
05-20-2006, 11:16 PM
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
08-05-2006, 10:00 PM
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 \"]]\"