Developer forum

Forum » Templates » URL Provider for News

URL Provider for News

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply
Hi there,

In the Management Center I enabled the URL Provider for news and disabled the older "Convert Module URLs". Yet when I view a list of News articles, they still link to /nl-NL/nieuws.aspx?PID=31&Action=1&NewsId=123 rather than to something like /nl-NL/Nieuws/news-title.aspx.

I am using the following link tags to link to a news item:

<a href="<!--@News:Href-->"><!--@News:Heading--></a>

Is there anything else I need to add or configure to make this work? I am running on version 19.2.2.3.

Thanks in advance for looking at this.

Imar

Replies

 
Nicolai Høeg Pedersen
Reply
&NewsId=XX just have to be the first parameter in the link.

So: Default.aspx?ID=123&NewsId=123&PID=31&Action=1

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

But the URL comes from the tag @News:Href, not from my own code. (I know I also said that in the other thread; just posted it here in case someone else is reading this thread as well).

Imar
 

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply
This post has been marked as an answer

For future readers of this thread: it turns out that for this to work correctly, you (currently) also need the old News module installed....

Imar

Votes for this answer: 0

 

You must be logged in to post in the forum