|
Home > Archive > Microsoft Content Management Server > June 2006 > MCMS 2002 sp2 - What will MCMS write? DOCTYPE, HTML version, CSS version?
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 |
MCMS 2002 sp2 - What will MCMS write? DOCTYPE, HTML version, CSS version?
|
|
| Steve Branson 2006-06-02, 1:14 pm |
| Can it be changed to write to different DTDs or CSS versions?
| |
| Domingo Sanchez 2006-06-02, 7:14 pm |
| This has to be one of the dumbest questions I've seen in this forum. Get a
clue, you google.
D. Sanchez
"Steve Branson" <sbranson-@dhs.ca.gov> wrote in message
news:udohqamhGHA.3860@TK2MSFTNGP02.phx.gbl...
> Can it be changed to write to different DTDs or CSS versions?
>
| |
| Steve Branson 2006-06-02, 7:14 pm |
| Let me try to re-phrase my apparently poorly stated question.
Let's say you want MCMS to write pages that use the following DTD:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"DTD/xhtml1-strict.dtd">
Can you configure MCMS so its placeholders and HTML editor will write this
or is it limited to only one DTD?
I have also seen that the HTML editor will write incorrectly nested tags
like this:
<strong><em>some text</strong></em>
If you still think this is a dumb question then please explain why.
steve
"Domingo Sanchez" <dsanchez@gmail.com> wrote in message
news:OoMtRxnhGHA.1520@TK2MSFTNGP03.phx.gbl...
> This has to be one of the dumbest questions I've seen in this forum. Get a
> clue, you google.
>
> D. Sanchez
>
>
> "Steve Branson" <sbranson-@dhs.ca.gov> wrote in message
> news:udohqamhGHA.3860@TK2MSFTNGP02.phx.gbl...
>
>
| |
| Stefan [MSFT] 2006-06-04, 7:17 pm |
| Hi Steve,
MCMS will write whatever you write in your template.
So open your template in VS.NET and replace the doctype with the one you
need.
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
----------------------
"Steve Branson" <sbranson-@dhs.ca.gov> wrote in message
news:el0nUhohGHA.1204@TK2MSFTNGP02.phx.gbl...
> Let me try to re-phrase my apparently poorly stated question.
>
> Let's say you want MCMS to write pages that use the following DTD:
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> "DTD/xhtml1-strict.dtd">
>
> Can you configure MCMS so its placeholders and HTML editor will write this
> or is it limited to only one DTD?
>
> I have also seen that the HTML editor will write incorrectly nested tags
> like this:
>
> <strong><em>some text</strong></em>
>
> If you still think this is a dumb question then please explain why.
>
> steve
>
>
> "Domingo Sanchez" <dsanchez@gmail.com> wrote in message
> news:OoMtRxnhGHA.1520@TK2MSFTNGP03.phx.gbl...
>
>
| |
| Steve Branson 2006-06-06, 1:20 pm |
| I found that was not the case. All placeholders appear to write whatever
they were told to write. I put in a DTD for XHTML 1.0 transitional and got
upper case letters and incorrectly nested tags.
thanks,
steve
-----------------
"Stefan [MSFT]" <stefang@online.microsoft.com> wrote in message
news:OyDOyOAiGHA.3496@TK2MSFTNGP02.phx.gbl...
> Hi Steve,
>
> MCMS will write whatever you write in your template.
> So open your template in VS.NET and replace the doctype with the one you
> need.
>
> 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
> ----------------------
>
>
> "Steve Branson" <sbranson-@dhs.ca.gov> wrote in message
> news:el0nUhohGHA.1204@TK2MSFTNGP02.phx.gbl...
>
>
| |
| nepzilla@gmail.com 2006-06-07, 1:20 am |
| There's a bigger problem there. The default MCMS placeholder wraps your
content in <span>s, meaning any block-type element you put in there is
automatically invalid in say xhtml.
Adding DTDs to template files (.aspx) is easy. But regarding the
placeholder controls, you have to customize it a bit to make your pages
completely valid.
Steve Branson wrote:[vbcol=seagreen]
> I found that was not the case. All placeholders appear to write whatever
> they were told to write. I put in a DTD for XHTML 1.0 transitional and got
> upper case letters and incorrectly nested tags.
>
> thanks,
> steve
> -----------------
> "Stefan [MSFT]" <stefang@online.microsoft.com> wrote in message
> news:OyDOyOAiGHA.3496@TK2MSFTNGP02.phx.gbl...
| |
| Stefan [MSFT] 2006-06-07, 7:23 am |
| Hi Steve,
the easiest way to get both of these problems fixed is to use a custom
placeholder control
derived from the original placeholder control.
Here you can override the Render method, consume the generated html content
and remove the span tags.
Something like this:
protected override void Render(System.Web.UI.HtmlTextWriter output)
{
// catch the output of the original HtmlPlaceholderControl
TextWriter tempWriter = new StringWriter();
base.Render(new System.Web.UI.HtmlTextWriter(tempWriter));
string orightml= tempWriter.ToString();
// do the necessary adjustments
string newhtml = ModifyHtmlContent(orightml);
output.Write(newhtml);
}
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
----------------------
<nepzilla@gmail.com> wrote in message
news:1149648768.967649.321220@i39g2000cwa.googlegroups.com...
> There's a bigger problem there. The default MCMS placeholder wraps your
> content in <span>s, meaning any block-type element you put in there is
> automatically invalid in say xhtml.
>
> Adding DTDs to template files (.aspx) is easy. But regarding the
> placeholder controls, you have to customize it a bit to make your pages
> completely valid.
>
>
> Steve Branson wrote:
>
|
|
|
|
|