we need a function for generate nested div html elements. the need is for an article list.
therefore we have templates for each level.
now we want a function which get these inputs:
2) numLevels which indicates how much nested levels are there (up to 5)
in the templates there two placeholder:
e.g. [[ALL_LEVEL2]] which stands for the nested data and the
otehrs like [[es_hg_mc]] are placeholders for the corresponding db-columns
strHTMLLevel1-template, 2, 3, ...= see attachment...
there are placeholders in each temaplte e.g. [[es_hg_mc]] so the placeholder should be replaced by the named sql-data-column value of the actaul record
the sqlrecordstructure is open but the first n fields are the grouping criterias so you can build nested html strings by checking if group1=col1 is changing, col2 is changing and so on