how to provide a variable set of common items (collections) in the same template ?
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 > how to provide a variable set of common items (collections) in the same template ?




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

    how to provide a variable set of common items (collections) in the same template ?  
Sagamore


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


 
07-05-07 12:15 AM

Hello Fellows and Gurus !

I've just started out working in a new company this week, on a MCMS
2002 project. Knowing that, I bought the "Building Websites with MCMS
", pdf version : no time to lose. I am already half-way through.
Fumble around the WoodGroveNet Sample site too and browse the WWW for
information regarding a common issue (according to me). I did not get
any clue so far...

So here is the issue at stake :
Our customer would like to be able to publish a list of text
paragraphes, highlight some of them, and on the top of it, create some
kind of dynamic "local" navigation within the same page (probably as a
usercontrol) featuring anchor links (#parag_1, #parag_2) pointing to
these paragraphes...  You can also consider building a FAQ (with some
"Question & Answer" items) to get the whole picture.

>From what I've seen / read so far, within the template you can edit
content within some preset placeholders. However you cannot really add
a collection of placeholders as far as I know.

Is there a way to solve this issue or is this beyond the possibilities
of MCMS ?
In a nutshell :
- provide a collections of items within the same page "authorable"
with various options and input controls ?
- generate a local (anchor) navigation based on the items listed in
this page ?

Any ideas, hints & tips much appreciated.

Thanx !

--
http://blog.cotasson.info/






[ Post a follow-up to this message ]



    Re: how to provide a variable set of common items (collections) in the same template ?  
Stefan Goßner [MSFT]


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


 
07-05-07 12:16 PM

Hi,

I would go with an XmlPlaceholder to hold the data of the FAQ in a
structured manner.
Then create a custom placeholder control that renders a different input
control for each section in the XML.

To allow adding another section render an additional empty control at the
end.

When ever a content is added allow a postback to the server to add a new
control to the end of the list.

During save read the content of all child controls and generate the XML out
of it.

To allow highlighting you could add a check box beside each textbox control
to flag which to highlight.
Add this as an attribute to the XML.

Cheers,
Stefan


"Sagamore" <cotasson@gmail.com> wrote in message
news:1183576801.917277.19720@m36g2000hse.googlegroups.com...
> Hello Fellows and Gurus !
>
> I've just started out working in a new company this week, on a MCMS
> 2002 project. Knowing that, I bought the "Building Websites with MCMS
> ", pdf version : no time to lose. I am already half-way through.
> Fumble around the WoodGroveNet Sample site too and browse the WWW for
> information regarding a common issue (according to me). I did not get
> any clue so far...
>
> So here is the issue at stake :
> Our customer would like to be able to publish a list of text
> paragraphes, highlight some of them, and on the top of it, create some
> kind of dynamic "local" navigation within the same page (probably as a
> usercontrol) featuring anchor links (#parag_1, #parag_2) pointing to
> these paragraphes...  You can also consider building a FAQ (with some
> "Question & Answer" items) to get the whole picture.
> 
> content within some preset placeholders. However you cannot really add
> a collection of placeholders as far as I know.
>
> Is there a way to solve this issue or is this beyond the possibilities
> of MCMS ?
> In a nutshell :
>  - provide a collections of items within the same page "authorable"
> with various options and input controls ?
> - generate a local (anchor) navigation based on the items listed in
> this page ?
>
> Any ideas, hints & tips much appreciated.
>
> Thanx !
>
> --
> http://blog.cotasson.info/
>







[ Post a follow-up to this message ]



    Re: how to provide a variable set of common items (collections) in the same template ?  
Sagamore


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


 
07-05-07 12:16 PM

Hi Stefan,

Thanks very much for your quick reply.
As I said I was half-way through your book and just read about the
checkboxlistPlaceHolder last night...
This is something I need to investigate today. Good thing I bought
this book.

For the side dynamic anchor navigation, I guess I need to retrieve and
parse the content of the xmlplaceholder
currentPosting.placeHolders["myXML"]

and populate the navigation according to the XML node / attribute
value.

Thanks again.






[ Post a follow-up to this message ]



    Re: how to provide a variable set of common items (collections) in the same template ?  
Stefan Goßner [MSFT]


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


 
07-05-07 12:16 PM

Hi,

yes you would need to parse the XML.

Cheers,
Stefan


"Sagamore" <cotasson@gmail.com> wrote in message
news:1183621485.855810.299650@m36g2000hse.googlegroups.com...
> Hi Stefan,
>
> Thanks very much for your quick reply.
> As I said I was half-way through your book and just read about the
> checkboxlistPlaceHolder last night...
> This is something I need to investigate today. Good thing I bought
> this book.
>
> For the side dynamic anchor navigation, I guess I need to retrieve and
> parse the content of the xmlplaceholder
> currentPosting.placeHolders["myXML"]
>
> and populate the navigation according to the XML node / attribute
> value.
>
> Thanks again.
>







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:14 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