Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Web Site Functionality _ Change link to open in File

Posted by: Peska Aug 28 2018, 07:19 AM

Hi guys, I don't know if it's the right place to post this, but here it goes:

i'm working on a new intranet site, as an intern. I have very little experience in HTML. We have a news app which shows our newest newsarticles on the front page. We upload the news file as a .pdf and have to add it as content to the newsarticle. Now when we're on the homepage and click on the article, it opens in a details page which states the link to the .pdf. there we can click the .pdf file to open it as a file.

So newsarticle => detailspage (where you can put in content and displays the .pdf link => click the link to open in adobe.

Now what i want is when we click the newsarticle, it opens as a .pdf immediately, instead going through the details/contents page.

here's a copy of the news overview on our homepage.

<div class="extranieuws_header">
<p><b class="newsBodyHeader">Overzicht laatste nieuws:</b></p>

</div>
<div class="extranieuws_item_wrapper">

{{for results}}
<div class="item link-item">
<a class="articleLink" href="{{>~createDetailLink(Id)}}" target="_blank" title="{{:Title}}" >{{>~formatDate(PublicationDate || Created,'DD/MM/YYYY')}} - {{:Title}}</a>
</div>

{{/for}}

<div class=" disclaimer">
<p><b class= "Disclaimerheader"> Klik op het icoontje rechts voor het nieuwsarchief ----------- </b></p>

and here's the details page in which we have to click the .pdf file


<div class="kembitnieuws_wrapper">
<div class="kembitnieuws_content">
<div class="kembitnieuws_title_wrapper">
<div class="newstitle">
<h1>{{:Title}}</h1>
</div>
<div class="kembitnieuws_datum">{{>~formatDate(PublicationDate || Created,'MM/DD/YYYY')}} - {{>~fromNowDate(PublicationDate || Created,'en')}}</div>

</div>
<div class="kembitnieuws_description">
{{if Image}}
<img src="{{:Image.Url}}" style="max-width: 300px;">
{{/if}}
{{:Content}}<br>
</div>
</div>
<div style="clear:both"></div>
<div class="kembitnieuws_leesverder">
<a id="kembitnieuws_closelink" href="java script:window.close();" style="color:rgb(255, 133, 0);">< close this article</a>
</div>
</div>

Posted by: Christian J Aug 28 2018, 08:30 AM

The parts with {{ and }} characters is not HTML, it looks like some kind of web publishing system (that in turn may generate HTML) but I don't know which one.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)