|
Home > Archive > Microsoft Content Management Server > November 2005 > Rotating image placeholder
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 |
Rotating image placeholder
|
|
|
| How do I "Create a control that allows authors to browse and select images
from the Resource Gallery, the GUIDs of which are stored in an XML document
in an XML
Placeholder.
In Presentation mode, your control will pick a node from the XML at random,
locate and display the image. You could also allow your authors to store a
URL against each image, which would be used to make the image into a
hyperlink in Presentation mode." as indicated in one of the discussion
threads? Is there any sample code available?
| |
| Stefan [MSFT] 2005-07-14, 2:48 am |
| Hi Helen,
this will require similar techniques as outlined here:
http://blogs.technet.com/stefan_gos...2/07/41861.aspx
Here is a very similar implementations you can get started with:
http://www.gotdotnet.com/Community/...77-4f7ffdfefb1b
You need to modify the presentation mode behaviour to do the random display.
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
----------------------
"hkwan" <hkwan@discussions.microsoft.com> wrote in message
news:2A275336-1DF7-4702-84C1-6314ADBBD302@microsoft.com...
> How do I "Create a control that allows authors to browse and select images
> from the Resource Gallery, the GUIDs of which are stored in an XML
> document
> in an XML
> Placeholder.
>
> In Presentation mode, your control will pick a node from the XML at
> random,
> locate and display the image. You could also allow your authors to store a
> URL against each image, which would be used to make the image into a
> hyperlink in Presentation mode." as indicated in one of the discussion
> threads? Is there any sample code available?
>
>
| |
|
| Hi Stefan,
Thank you so much. Would you have any sample of how I can get it to pick at
random the image that come up for each visitor so the visitors get a new
image for each visit as well as when mouse over? Please advise.
"Stefan [MSFT]" wrote:
> Hi Helen,
>
> this will require similar techniques as outlined here:
> http://blogs.technet.com/stefan_gos...2/07/41861.aspx
>
> Here is a very similar implementations you can get started with:
> http://www.gotdotnet.com/Community/...77-4f7ffdfefb1b
>
> You need to modify the presentation mode behaviour to do the random display.
>
> Cheers,
> Stefan
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights
>
> New to MCMS?
> Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
> ----------------------
>
>
> "hkwan" <hkwan@discussions.microsoft.com> wrote in message
> news:2A275336-1DF7-4702-84C1-6314ADBBD302@microsoft.com...
>
>
>
| |
| Stefan [MSFT] 2005-07-14, 5:51 pm |
| Hi Helen,
no I don't have such sample code ready.
You would need to use the random number generator to generate the index to
pic.
Should not be more than 15 lines of code or so...
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
----------------------
"hkwan" <hkwan@discussions.microsoft.com> wrote in message
news:53C4F2F0-CF9E-42B8-8BEF-4E3844EBD2B2@microsoft.com...[vbcol=seagreen]
> Hi Stefan,
>
> Thank you so much. Would you have any sample of how I can get it to pick
> at
> random the image that come up for each visitor so the visitors get a new
> image for each visit as well as when mouse over? Please advise.
>
> "Stefan [MSFT]" wrote:
>
| |
|
| Thank you.
"Stefan [MSFT]" wrote:
> Hi Helen,
>
> no I don't have such sample code ready.
> You would need to use the random number generator to generate the index to
> pic.
>
> Should not be more than 15 lines of code or so...
>
> Cheers,
> Stefan
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights
>
> New to MCMS?
> Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
> ----------------------
>
>
> "hkwan" <hkwan@discussions.microsoft.com> wrote in message
> news:53C4F2F0-CF9E-42B8-8BEF-4E3844EBD2B2@microsoft.com...
>
>
>
| |
|
| Hi Stefan,
Just want to verify that this is the code behind for a template and that it
is not a user control. Is that correct? By the way, I bought the two MCMS
development books that you are one of the authors of.
"Stefan [MSFT]" wrote:
> Hi Helen,
>
> this will require similar techniques as outlined here:
> http://blogs.technet.com/stefan_gos...2/07/41861.aspx
>
> Here is a very similar implementations you can get started with:
> http://www.gotdotnet.com/Community/...77-4f7ffdfefb1b
>
> You need to modify the presentation mode behaviour to do the random display.
>
> Cheers,
> Stefan
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights
>
> New to MCMS?
> Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
> ----------------------
>
>
> "hkwan" <hkwan@discussions.microsoft.com> wrote in message
> news:2A275336-1DF7-4702-84C1-6314ADBBD302@microsoft.com...
>
>
>
| |
| Stefan [MSFT] 2005-11-23, 7:50 am |
| Hi Helen,
this is code you need to add to a custom placeholder server control.
There are two sample placeholder control included in the link:
MultiattachmentPlaceholderControl and ImageChangePlaceholderControl.
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
Check out the new book as well: Advanced MCMS development:
http://tinyurl.com/8ugwj
----------------------
"hkwan" <hkwan@discussions.microsoft.com> wrote in message
news:6EAFD0A8-7CAA-49F9-95A4-995136865E55@microsoft.com...[vbcol=seagreen]
> Hi Stefan,
>
> Just want to verify that this is the code behind for a template and that
> it
> is not a user control. Is that correct? By the way, I bought the two
> MCMS
> development books that you are one of the authors of.
>
> "Stefan [MSFT]" wrote:
>
|
|
|
|
|