HTML item list <ul>

  • 12 August 2015
  • 3 replies
  • 0 views

Badge +1

I retrieve data from a webservice and want to display the data in a view in a simple HTML list. It has to be generated dynamically, because I do not know the amount of items I will get.

Any ideas?

Thanks in advance.

 


3 replies

Userlevel 5
Badge +16

Hi,

 

Can you show me an example on how your retrieved data looks like?

Badge +1

Hi Mustafa,

 

thanks for asking.

It is just text from a smartobject.

 

 

Userlevel 1
Badge +8

Hi kontrapost

 

The only out of the box solution that will display items in a list are the list view, and the list box (4.6.10).

 

If you really need to use a HTML list then your options are:

  1. create a custom smartforms control - see the SmartForms Developer Reference
  2. Find a way to return HTML as a SmartObject method and display this in a HTML literal control (custom control downloadable from the K2 Market) . I have done this in the past using a SQL stored procedure to return a HTML snippet.

Reply