function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
di_zoudi_zou 

Opening Knowledge Articles in a new tab

I have an Apex Page that uses knowledge:articleList:

 

<knowledge:articleList articleVar="article" categories="BoxToneVersion:All" sortBy="mostViewed" pageSize="5">
<tr>
<td>{!article.articlenumber}</td>
<td><a target="_parent" href="{!URLFOR($Action.KnowledgeArticle.View, article.id)}">{!article.title}</a></td>
</tr>

</knowledge:articleList>

 In my customer portal, whenever I click on a link to a Knowledge Article, the link takes to me the article in the same tab. Is there a way to set it so that the article opens in a new tab? If so, how would I do that?

francoisLfrancoisL

You need to update value for the target attribute.

 

the right value to open in a new tab is "_blank".

 

http://www.w3schools.com/tags/att_a_target.asp