Forum OpenACS Q&A: tcl trouble Re: java script content feed

Collapse
Posted by Pavel Boghita on
On advice from Dave Bauer, I have now managed to display elements from etp, albeit only as titles in one long line:

here is my tcl code:

etp::get_content_items

etp::get_content_items -package_id 978 -result_name topics

template::multirow foreach topics {
set url [site_node::get_url_from_object_id -object_id 978]${url}
append content "${title} ${url}"

}

in the adp within the scrip part I have:

var scrollercontent='@content@'

the result is a succession of all the titles and urls for package_id 978.

Does anyone know of a way to separate the items within 'content' so I can control the display ?
I've tried append content "${title} ${url}
" for example but
is not interpreted.

Thanks