08-18-04 10:52 PM
Hi all, we are starting our second CMS project and one of the things
I'd like to tackle is creating a good all-purpose list control that is
flexible enough to be reused everywhere and provides styling
capabilities that won't require new code drops when the design needs
to be changed or when the org decides to use a new date format.
The list control itself really only needs to do a few things. It
should be able to look at all posts in a single channel and grab any
number of placeholder defs in the posting defined as parameters.
But what I'd really like it to do is use an external stylesheet,
possibly an XSL, applied to the result set to define what the list
should look like. It would be nice to be able to make transformations
on data like converting January to Jan. that might use some logic but
I don't want to encapsulate this in code. Hence I'm avoiding using
something like itemtemplates with the repeater.
My plan so far would be to have the control convert the returned
results to XML pass it through the XSL styleseet and then display the
results. My question is, has anyone done anything similar or seen
existing examples of this type of control? does this sound like a
good/bad approach?
Thanks much in advance!
[ Post a follow-up to this message ]
|