|
Home > Archive > Microsoft Content Management Server > July 2007 > how to provide a variable set of common items (collections) in the same template ?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
how to provide a variable set of common items (collections) in the same template ?
|
|
| Sagamore 2007-07-04, 7:15 pm |
| 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/
| |
| Stefan Goßner [MSFT] 2007-07-05, 7:16 am |
| 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/
>
| |
| Sagamore 2007-07-05, 7:16 am |
| 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.
| |
| Stefan Goßner [MSFT] 2007-07-05, 7:16 am |
| 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.
>
|
|
|
|
|