Hyperlink PDF on motd.dtl

Moderator: crythias

Locked
Naglix
Znuny newbie
Posts: 19
Joined: 03 Mar 2014, 14:36
Znuny Version: 3.3.x

Hyperlink PDF on motd.dtl

Post by Naglix »

Good Day,

Would like to find out the following,
I have 3 PDF files that I would like to link to the motd.dtl file, once clicked it will open in a new Tab.
I went through all href style of link a file, but only keep getting Error 404.
I went and gave the folder and Files permission for all to read, write & Execute still no luck.
What am I mission that i can't open a pdf link in OTRS motd.dtl

I test my href in normal style browser it works in OTRS it does not, why is this and how do i get this to work.

Kind Regards,
Naglix
System Info:
OTRS: 3.3.x
OS: Linux - Ubuntu
web services: Apache2
DB: postgre
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Hyperlink PDF on motd.dtl

Post by reneeb »

Please show us the changes you've done...
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Naglix
Znuny newbie
Posts: 19
Joined: 03 Mar 2014, 14:36
Znuny Version: 3.3.x

Re: Hyperlink PDF on motd.dtl

Post by Naglix »

The Code below is the code I have now used to link the pdf in the motd.dtl file.

Code: Select all

<td width="45%">
    <div class="Header">
	<!-- Self Help AD -->
		<h2>$Text{"Active Directory Self-Help Documentation"}</h2>
		<p>
		<ul>
			<li>Please Read through the AD Self-help Document:
			<li>AD Self-Help: <a href="PDF/AD_Selfservice_Enrollment.pdf" target="_blank">Enrollment</a>
			<li>AD Self-Help: <a href="PDF/AD_Selfservice_Reset.pdf" target="_blank">Reset</a>
		</ul>
		</p>
	</td>
</tr>
the href my be wrong for I'm still trying out some style to open the pdf in a new tab.
file:/// location/file.pdf
http://location/file.pdf
I have tried but not working
Regards,
Naglix
System Info:
OTRS: 3.3.x
OS: Linux - Ubuntu
web services: Apache2
DB: postgre
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Hyperlink PDF on motd.dtl

Post by reneeb »

You should use

Code: Select all

<a href="$Config{"Frontend::WebPath"}/PDF/AD_Selfservice_Enrollment.pdf" target="_blank">Enrollment</a>
and put the PDF files in <OTRS_HOME>/var/httpd/htdocs/PDF/
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Naglix
Znuny newbie
Posts: 19
Joined: 03 Mar 2014, 14:36
Znuny Version: 3.3.x

Re: Hyperlink PDF on motd.dtl

Post by Naglix »

Thank you Kindly for assistance reneeb, that did the trick.
Where is the documentation on this that one can have a more knowledge read through.

Kind Regards,
Naglix
System Info:
OTRS: 3.3.x
OS: Linux - Ubuntu
web services: Apache2
DB: postgre
Locked