MCMS 2002 sp2 - What will MCMS write? DOCTYPE, HTML version, CSS version?
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 > MCMS 2002 sp2 - What will MCMS write? DOCTYPE, HTML version, CSS version?




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

    MCMS 2002 sp2 - What will MCMS write? DOCTYPE, HTML version, CSS version?  
Steve Branson


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


 
06-02-06 06:14 PM

Can it be changed to write to different DTDs or CSS versions?







[ Post a follow-up to this message ]



    Re: MCMS 2002 sp2 - What will MCMS write? DOCTYPE, HTML version, CSS version?  
Domingo Sanchez


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


 
06-03-06 12:14 AM

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?
>







[ Post a follow-up to this message ]



    Re: MCMS 2002 sp2 - What will MCMS write? DOCTYPE, HTML version, CSS version?  
Steve Branson


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


 
06-03-06 12:14 AM

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... 
>
>







[ Post a follow-up to this message ]



    Re: MCMS 2002 sp2 - What will MCMS write? DOCTYPE, HTML version, CSS version?  
Stefan [MSFT]


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


 
06-05-06 12:17 AM

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... 
>
>







[ Post a follow-up to this message ]



    Re: MCMS 2002 sp2 - What will MCMS write? DOCTYPE, HTML version, CSS version?  
Steve Branson


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


 
06-06-06 06: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... 
>
>







[ Post a follow-up to this message ]



    Re: MCMS 2002 sp2 - What will MCMS write? DOCTYPE, HTML version, CSS version?  
nepzilla@gmail.com


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


 
06-07-06 06: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 go
t
> upper case letters and incorrectly nested tags.
>
> thanks,
> steve
> -----------------
> "Stefan [MSFT]" <stefang@online.microsoft.com> wrote in message
> news:OyDOyOAiGHA.3496@TK2MSFTNGP02.phx.gbl... 






[ Post a follow-up to this message ]



    Re: MCMS 2002 sp2 - What will MCMS write? DOCTYPE, HTML version, CSS version?  
Stefan [MSFT]


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


 
06-07-06 12:23 PM

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: 
>







[ Post a follow-up to this message ]



    Sponsored Links  




 





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