Developer forum

Forum » Rapido » Extending Dynamic Article

Extending Dynamic Article

Mikkel Hornbech Nielsen
Reply

Hi there DW Forum.

I have a question regarding the Dynamic Articles and the possibilities of extending them.
It's because i have made a custom block/template for showing some Schema markup on Dynamic Article item'et.
And on the Dynamic Article page level the code works perfectly fine, but when you navigate back to Dynamic Article List Page then it throws an error.
I can't seem to quite figure out why it does this, especially when it works flawlessly on the Dynamic Article page.

I hope that you can help me, and i will attach my files.

 

Link to error page:
http://hededanmark-staging.nozebrahosting.dk/da-dk/nyheder


Thanks in advance.

Errorcode.png

Replies

 
Karsten Thuen Dynamicweb Employee
Karsten Thuen
Reply

Hi Mikkel

Great question. I know there currently is a bug regarding the article list. For them to work, the root list must be in a folder. If this does not fix it, you are welcome to write again.

A solution, where the folder is not required, will be in the next hotfix for Rapido. 

 

Best regards
Karsten Thuen

 
Mikkel Hornbech Nielsen
Reply

Hi Karsten.

Is this the correct setup?
"Folder/Dynamic Article List Page/Dynamic Article" ?

See this link:
http://hededanmark-staging.nozebrahosting.dk/da-dk/test-hest


And i have also attached screenshots, since this dosen't have an effect, and i still get the same error.
 

folder-setup.png same-error-message.png
 
Karsten Thuen Dynamicweb Employee
Karsten Thuen
Reply

Hi Mikkel

Yes, that is the correct setup. But unfortunately it does not solve the bug. As far as I can read the error message, none of the things that are in it is the real cause for the error. This is a hard one. 

Are you sure none of your customizations is the cause for this? For example the DynamicList.cshtml seems to have been changed. Or maybe something around the components has been customized? It looks a lot like this error is not caused by somehting that came with Rapido. 

I have a few suggestions that may help you locating why this error happens:

  • Carefully examine your customizations
  • Maybe go to the DynamicArticleList.cshtml page, and out-comment the area that you think may cause the error
  • As written in the release notes, Components are experimental in Rapido 3.1 - They should work fine, but we have not yet documented how you should write your own/customize. Therefore the current safe extensibilitypoint for the dynamic articles are the Blocks system. https://doc.dynamicweb.com/rapido/development/blocks/introduction-quickstart

 

Best regards
Karsten Thuen

 

You must be logged in to post in the forum