Developer forum

Forum » Development » How to upgrade custommodule to DW8.x

How to upgrade custommodule to DW8.x

Lars Larsen
Reply

Hi,
Earlier we made a custommodule (DW7) that used the class "Dynamicweb.Frontend.SearchV1Frontend". Now we want to upgrade the module to DW8.x. But I can see that the class "SearchV1Frontend" in DW8.x has been moved to the namespace "Dynamicweb.Frontend.LegacyModules.Searchv1" and the class is now internal and therefore is no longer accessible! So how can we upgrade the custommodule to DW8.x? Any suggestions are very appreciated.


Replies

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Hi Lars

 

May I ask how you use something from that class?

 

Only thing I can think of is that you get a copy of the code in that file and make your own version for use in your implementation.

 

 

BR Nicolai (File attached)

Votes for this answer: 1
 
Lars Larsen
Reply

Hi Nicolai

We used the method SearchV1 on the class SearchV1Frontend. Normally the editor sets the paragraph module settings. But for this module we needed a search on some pages where the paragraph module settings are dynamic and comming from another source. Therefore we made a module where we dynamically build the paragraph module settings and fills these into a paragraphrow that we used as a parameter to SearchV1Frontend.SearchV1 which then did the search for us :-)

Thanks for the sourcecode. Think we will use it to make our ovn legacy version of the old SearchV1 module, so we can upgrade the custommodule to DW8.

 

You must be logged in to post in the forum