Forum OpenACS Development: Re: Listbuilder and html

Collapse
3: Re: Listbuilder and html (response to 1)
Posted by Jeff Lu on
Also aside from setting class and subclass for the elements.
You can also try creating your own list template style.
Just copy the default listtemplate found in packages/acs-templating/resource/lists/
and edit it from there.

Another thing you can do is something similar to this:

display_template {
  <if @tasks.status@ odd>
                <a class ="odd" href="@tasks.item_url@">@tasks.title@</a>
  </if>
  <else>
                <a class ="even" href="@tasks.item_url@">@tasks.title@</a>
  </else>
}