Creating a List Custom Control
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Content Management Server > Creating a List Custom Control




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Creating a List Custom Control  
brett b.


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Re: Creating a List Custom Control  
Spencer Harbar [MVP]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-19-04 10:53 PM

Sure. XSLT is certainly a valid approach.
For example the UKIB Navigation control works using XSLT.

Just slap a design time property on the control - the path to the XSLT. In
presentation mode rendering use this to transform the XML.

--
hth
Spence
www.mcmsfaq.com


"brett b." <host@liquidmix.com> wrote in message
news:21e4159b.0408181534.1c29af02@posting.google.com...
> 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 ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:11 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register