Keyword

Populate custom List items from database

  • Jonathan Vargas
  • Jonathan Vargas's Avatar Topic Author
  • Offline
  • New Member
More
13 years 7 months ago #93730 by Jonathan Vargas
Populate custom List items from database was created by Jonathan Vargas
Hi Simon,

We are trying to extend K2 for a custom app for document management, which will be based on K2 at its core.

The desired model requires that a K2 article item should be classified according to different "regions" and "areas", up to three distinct regions for an article.

So this would be the custom model for an article in K2 to represent a document in our app:


Title: The title of the document
Desc: The description of the document
(Other current article fields)
Region 1: Selected from a list (for example America, Europe, Africa, etc)
Area for region 1: Selected from a list, (for example Programming, Marketting, Maths, etc)
Region 2: Selected from a list (for example America, Europe, Africa, etc)
Area for region 2: Selected from a list, (for example Programming, Marketting, Maths, etc)
Region 3: Selected from a list (for example America, Europe, Africa, etc)
Area for region 3: Selected from a list, (for example Programming, Marketting, Maths, etc)

The list of regions and areas is retrieved from database. Another consideration is that Areas could be nested, just like the famous K2 model for categories.

If you note, to accomplish that we thought of regions just like another article's field but with items retrieved from database.

And, Areas will behave just like article categories, so it will be similar to create 2 categories more for an article, trying to duplicate the behaviour of K2 categories.

So, we wonder how to accomplish this and if you could guide us to start doing it.

Thanks in advance.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum