Microsoft Content Management Server - <head> element

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > August 2004 > <head> element





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 <head> element
bill tie

2004-08-18, 7:51 am


All the templates in the Woodgrove sample site include the <head> element:

<head>
<meta ... >
<meta ... >
...
</head>

If this element is common to all the templates, is there a reason why it
isn't converted into a user control invoked by the templates?

Glenn Vassallo [MSFT]

2004-08-18, 7:51 am

"bill tie" <billtie@discussions.microsoft.com> wrote in message
news:212BA15B-D569-441A-8485-254AC27E366C@microsoft.com...
>
> All the templates in the Woodgrove sample site include the <head> element:
>
> <head>
> <meta ... >
> <meta ... >
> ...
> </head>
>
> If this element is common to all the templates, is there a reason why it
> isn't converted into a user control invoked by the templates?
>


Hi Bill,

The <HEAD> tag is a container, and hence can contain many other tags
including the below. By leaving these tags in place the templates can be
edited to include any of these additional tags.

<BASE>
<ISINDEX>
<LINK>
<META>
<NEXTID>
<TITLE>


Glenn.

--
This posting is provided "as is" with no warranties, and confers no rights.


Stefan [MSFT]

2004-08-18, 7:51 am

Hi Bill,

you could do this - but this is more an ASP.NET related question and a
ASP.NET related newsgroup would be better for such questions.

Cheers,
Stefan.

--
This posting is provided "AS IS" with no warranties, and confers no rights.

MCMS FAQ:
http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm
MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
MCMS Sample Code:
http://www.gotdotnet.com/community/...t+S
erver

MCMS Whitepapers and other docs:
http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
--------------------------------


"bill tie" <billtie@discussions.microsoft.com> wrote in message
news:2EC9D3DE-008A-4B0B-BDC8-F7E18EB1ED23@microsoft.com...
>
> Glenn,
>
> Let me rephrase my question.
>
> Suppose, I know which meta, link or script tags I want in my entire site.
> Only TITLE will vary according as a page.
>
> Is it possible or good practice to "wrap" the HEAD in a control to be
> invoked from each template?
>



Spencer Harbar [MVP]

2004-08-18, 5:52 pm

Sure it's possible - but watch out - VS.NET's design mode designer doesn't
like this type of thing and you may well be stuck with the HTML view only.

hth
Spence
www.harbar.net/mcms/



"bill tie" <billtie@discussions.microsoft.com> wrote in message
news:2EC9D3DE-008A-4B0B-BDC8-F7E18EB1ED23@microsoft.com...
>
> Glenn,
>
> Let me rephrase my question.
>
> Suppose, I know which meta, link or script tags I want in my entire site.
> Only TITLE will vary according as a page.
>
> Is it possible or good practice to "wrap" the HEAD in a control to be
> invoked from each template?
>



bill tie

2004-08-20, 2:49 am


> VS.NET's design mode designer doesn't like this type of thing


Thank you for warning me.

So, we've established it's possible. I'd still like to know whether it's
good practice. Is there some rule when I should apply this technique, if
ever? If I have many templates, would it make sense to do that? Is there an
efficiency price to pay?
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com