SalientAnimal Posted February 12, 2014 Share Posted February 12, 2014 Hi All, I have temporarily taken over the administration of an existing site that will soon e discontinued, however I need to add a few links to files without re-inventing the wheel. The link needs to link to a file using a URL. below is the link that I have created, however it is not opening the file: [readon2 url="images/repairs/returns policy process effective 1 feb 2014.pdf"]Returns Policy Process (Effective 1 Feb 2014)[/readon2] Regularly these files link to new webpages with content on them, here is a working link: [readon2 url="index.php?option=com_content&view=article&id=504&Itemid=504"]Repairs Status[/readon2] but as mentioned, I need it to link directly to a file and not to a page, keeping the format of the link. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/286135-link-to-file/ Share on other sites More sharing options...
trq Posted February 12, 2014 Share Posted February 12, 2014 Neither of your examples are valid html. You might want to specify what exactly your working with here. Quote Link to comment https://forums.phpfreaks.com/topic/286135-link-to-file/#findComment-1468595 Share on other sites More sharing options...
SalientAnimal Posted February 12, 2014 Author Share Posted February 12, 2014 This is in Joomla. Quote Link to comment https://forums.phpfreaks.com/topic/286135-link-to-file/#findComment-1468597 Share on other sites More sharing options...
Ch0cu3r Posted February 12, 2014 Share Posted February 12, 2014 I'm not a Joomla user, but I dont think you want to use the readon tag, this is used for adding a Read More link to an article. Instead you need to open your page into Joomla's WYSIWYG editor press the link button to link to the file instead. Or if joomla allows html then use a html anchor tag <a href="images/repairs/returns policy process effective 1 feb 2014.pdf">Returns Policy Process (Effective 1 Feb 2014)</a> Quote Link to comment https://forums.phpfreaks.com/topic/286135-link-to-file/#findComment-1468629 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.