Change link to open in File |
Change link to open in File |
Peska |
Aug 28 2018, 07:19 AM
Post
#1
|
Group: Members Posts: 1 Joined: 28-August 18 Member No.: 26,702 |
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> |
Christian J |
Aug 28 2018, 08:30 AM
Post
#2
|
. Group: WDG Moderators Posts: 9,686 Joined: 10-August 06 Member No.: 7 |
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.
|
Lo-Fi Version | Time is now: 15th June 2024 - 04:46 PM |