Skip to content

Commit

Permalink
Added support for the token [PORTALALIAS]
Browse files Browse the repository at this point in the history
  • Loading branch information
skamphuis committed Dec 22, 2023
1 parent 2dea16d commit db62a18
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Components/Layout/TokenProcessor.vb
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,12 @@ Namespace Ventrian.NewsArticles
objLiteral.Text = GetModuleLink("MyArticles", moduleContext)
objPlaceHolder.Add(objLiteral)

Case "PORTALALIAS"
Dim objLiteral As New Literal
objLiteral.Text = PortalController.Instance.GetCurrentPortalSettings().PortalAlias.HTTPAlias
objPlaceHolder.Add(objLiteral)


Case "RSSLATESTLINK"
Dim objLiteral As New Literal
Dim authorIDParam As String = ""
Expand Down
Binary file added Installs/NewsArticles.00.13.03.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion Templates/Standard/Menu.Item.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- Menu.Item -->
<!-- Menu.Item [PORTALALIAS] -->
<div class="Normal" align="center">
[ISSYNDICATIONENABLED]
<span style="float: right;">
Expand Down

0 comments on commit db62a18

Please sign in to comment.