15 Feb 2011
18 Nov 2011
Link to this post
Then I guess I'm a little lost here. I'm wanting to use NewsView as it is out-of-the-box, with the existing designer continuing to look like it looks and do its functions and affecting data as it always has. All of the functions of the designer for NewsView are being used by the client, except for the category filter of course. So, regardless, I'd have to use the same designer for the control.
So, using the template as a standard User Control or extending the template, I'd still have to grab the News Items exactly as the out-of-the-box NewsView is grabbing them, using the same data pulls, classes, filters, advanced options, etc based on the designer that NewsView is using. It needs to be a mirror copy of how NewsView works today.
My challenge is that I have to intercept the data that NewsView is using and filter that programmatically to remove my Announcements category before it hits the repeater. Or, I have to extend the base class of the existing NewsView and somehow add an additional filter from there. But in doing that, I have to be using whatever functions you are using to make NewsView pull data back in based on the designer and all the other pieces that NewsView is using. Since there isn't a code-behind I can see, I of course can't see what that looks like.
If it were a case of just building a custom user control that pulls in News, that's pretty easily done. But it's a bit more than that. If it turns out that this is too complex a task to try to pull-off, that's good to know too. However, I'd figured it was just another template extension with some code-behind magic.
Maybe I'm not understanding you here as well.
Thanks for your continued help.