-
AuthorPosts
-
May 17, 2006 at 3:18 pm #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 Friendnathanbohn
- Join date:
- March 2006
- Posts:
- 230
- Downloads:
- 0
- Uploads:
- 0
- Thanked:
- 9 times in 1 posts
May 20, 2006 at 11:16 pm #209447in 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
August 5, 2006 at 10:00 pm #210029Hi 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 \”]]\”
-
AuthorPosts
This topic contains 3 replies, has 2 voices, and was last updated by srangelov 18 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum