Rippo said:
Mike
Unfortunetely my users use MACROMEDIA CONTRIBUTE to edit and create new
pages. All pages are based on a ASP.NET dreamweaver template. Within
the template is a dynamic content region with meta data and the page
title. This is the only way to allow contribute to edit the page title.
However all I want to do is to remove the title tag from the page
directive (or remove it from the rendered page) as I get to title tags.
One for contribute and an empty one added by .net
I am not familiar with macromedia or dreamweaver. If you want to override
the page render, you would use something like the following
Protected Overrides Sub Render(ByVal writer As HtmlTextWriter)
Dim _stringBuilder As StringBuilder = New StringBuilder()
Dim _stringWriter As StringWriter = New StringWriter(_stringBuilder)
Dim _htmlWriter As HtmlTextWriter = New HtmlTextWriter(_stringWriter)
MyBase.Render(_htmlWriter)
Dim html As String = _stringBuilder.ToString()
Dim start As Integer = html.IndexOf("<title)
if start <> -1 then
do your replacing of the html string here
end if
writer.Write(html)
End Sub
But I suspect that there is some other way to manipulate the dreamweaver
data or maybe change the template. Sorry I can't help you further.
Mike