Developer forum

Forum » Development » HR/Employee module and paging

HR/Employee module and paging


Reply

When using the HR module, you get a list of employees.

 

When a user clicks on one of the employees, I would like to be able to create some "Previous" and "Next" buttons.

 

What would be the best way to go about doing that?

 

Can I extend the HR Presentation template, or do I need to create a paragraph module and insert that on the same page as the HR module?

 

How do I get the list from the paragraph module in the current context?


Replies

 
Reply

The module doesn't support prev/next paging, and there are no extention opportunities for the module. The only way to get the list would be to request it from the database, so you would have to create a custom module on the same page as youi suggest yourself.

 
Reply

How would I then go about getting the module settings for the HR module placed on the prevoius paragraph? Is there a method for this in the API, or is it DB calls all the way?

 
Reply

You can use

 

Dynamicweb.Properties props = Dynamicweb.Base.GetParagraphModuleSettings(XX);

 

to load properties fron any paragraph as long as you know which ParagraphID to look for.

 

And look for the ID in the Paragraph table by matching

ParagraphPageID = [PageView.ID here] AND ParagraphModuleSystemName = 'Employee'

 
Reply

Thanks a lot for this. That's just what I needed.

 

You must be logged in to post in the forum