|
Home > Archive > Microsoft Content Management Server > July 2005 > Custom placeholder strips HTML
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 |
Custom placeholder strips HTML
|
|
|
| Using the guide from Stefan Goßner, I created a "MAP mouse-over image
placeholder". In authoring mode the control shows a table with several
(configurable) images plus a textbox for each to enter MAP
coordinates. In publishing mode the 1st image is shown and the other
images are shown when the mouse-pointer enters one of the MAP
coordinate-polygon's.
This custom placeholder inherits from the HTML placeholder because
this way I could utilize the CMS Resource Gallery for picking images.
When the posting is saved the initial <IMG>-tag and all the
<MAP>-coordinates are saved as html in this 'HTML'-placeholder.
When a user creates new page, my custom control fills the images with
a default CMS image (just as on image placeholders when they're
empty). Now, when I save the html without picking images from the
Resource Gallery, the placeholder seems to strips the first <IMG>-tag.
This doesn't happen when I do pick images from the Resource Gallery! I
though that CMS might strip this image-tag when it thinks that it's
the default image and therefore the user didn't fill in an image.
Can anybody confirm this (CMS would strip this html)? And if so, how
can I avoid this action? For the time being, I check the HTML saved to
the placeholder on some characteristics. If it doesn't meet them it
clears the html. This way the control doesn't end up in error and the
user can start over again with setting it!
Reference:
http://blogs.technet.com/stefan_gos...2/07/41861.aspx
| |
| Stefan [MSFT] 2005-07-15, 5:56 pm |
| Hi Jules,
no I cannot confirm this.
MCMS does not strip out valid <img> tags.
I would suggest to debug your code.
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
----------------------
"Jules" <onlyforforums@hotmail.com> wrote in message
news:298878a6.0507150532.786e83a5@posting.google.com...
> Using the guide from Stefan Goßner, I created a "MAP mouse-over image
> placeholder". In authoring mode the control shows a table with several
> (configurable) images plus a textbox for each to enter MAP
> coordinates. In publishing mode the 1st image is shown and the other
> images are shown when the mouse-pointer enters one of the MAP
> coordinate-polygon's.
>
> This custom placeholder inherits from the HTML placeholder because
> this way I could utilize the CMS Resource Gallery for picking images.
> When the posting is saved the initial <IMG>-tag and all the
> <MAP>-coordinates are saved as html in this 'HTML'-placeholder.
>
> When a user creates new page, my custom control fills the images with
> a default CMS image (just as on image placeholders when they're
> empty). Now, when I save the html without picking images from the
> Resource Gallery, the placeholder seems to strips the first <IMG>-tag.
> This doesn't happen when I do pick images from the Resource Gallery! I
> though that CMS might strip this image-tag when it thinks that it's
> the default image and therefore the user didn't fill in an image.
>
> Can anybody confirm this (CMS would strip this html)? And if so, how
> can I avoid this action? For the time being, I check the HTML saved to
> the placeholder on some characteristics. If it doesn't meet them it
> clears the html. This way the control doesn't end up in error and the
> user can start over again with setting it!
>
> Reference:
> http://blogs.technet.com/stefan_gos...2/07/41861.aspx
|
|
|
|
|