Developer forum

Forum » Rapido » Dynamic article feed

Dynamic article feed

Siv Hansen
Siv Hansen
Reply

I the documentation, there is reference to a feed, dynamic list (JSON), which should be located under the feed folder in the content section. In my fresh install of DW  9.6.0.0, there is no such feed. How do I solve this?


Replies

 
Jennifer Johansen Dynamicweb Employee
Jennifer Johansen
Reply

Hej Siv

The dynamic list (JSON) feed is under the folder Content/Feeds and only exist on the Rapido 3.1 version.
If you have a dynamicweb 9.6 installation with no Rapido you will not find it.
This link (if you are logged in), will show you to the different  Rapido packages E.g. Rapido 3.1 All package. This package contains the dynamic list (JSON) feed
https://doc.dynamicweb.com/rapido/download

There is also a guide here if your Rapido 3.1 is missing the page dynamic list (JSON) feed

https://doc.dynamicweb.com/rapido/configuration/creating-content/dynamic-articles#sideNavTitle1-2-1

2019-05-03_1038.png
 
Siv Hansen
Siv Hansen
Reply

I have rapido, but I understand I have to create the Dynamic List (json) page myself.. And so I did. I have tried to replicate the steps in this tutorial and also compared it with a demo site I have, that came installed with content (the one I'm working on now does not), and I truly believe they are identical. But I get this error message when trying to display my article page:

 

rror executing template "Designs/Rapido/ItemPublisher/List/DynamicList.cshtml"
System.NullReferenceException: Object reference not set to an instance of an object.
   at CompiledRazorTemplates.Dynamic.RazorEngine_424c0313da564871858dae6070e52c4a.GetArticleCategory(Int32 pageId) in C:\dynamicweb\solutions\hagen.local\Templates\Designs\Rapido\ItemPublisher\List\DynamicList.cshtml:line 20
   at CompiledRazorTemplates.Dynamic.RazorEngine_424c0313da564871858dae6070e52c4a.Execute() in C:\dynamicweb\solutions\hagen.local\Templates\Designs\Rapido\ItemPublisher\List\DynamicList.cshtml:line 139
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader)
   at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
   at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.b__0(TextWriter writer)
   at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()

 

I guess this one says NullPointerException. I need help with this one. Obviously there is something I am missing in my setup. The installation is on localhost, but I am more than willing to share screenshots with you.

 

best wishes.

 
Siv Hansen
Siv Hansen
Reply

Me again. Now the error message is gone, and I don't know why. In my demosite the dynamicarticle container page was resided in a folder. The folder redirected to the dynamicarticle container page, and there it works. I still don't understand why. What is the purpose of the folder?

 
Karsten Thuen Dynamicweb Employee
Karsten Thuen
Reply

Hi Siv

I can give you the technical answer to the reason of why the folder is currently needed. The articles and article lists both has some advanced code that secure that they can inherit settings from their parent pages. Unfortunately there is a bug that goes too far back in the three of parents. This makes the folder currently required. The bug has been fixed on item #62913 and will be included in the next Rapido hotfix that will be released on May the 23th 

 

Best regards
Karsten Thuen

 

 

You must be logged in to post in the forum