They put tags in the nodeName, how do i remove that?
So it looks like i have to go in and remove tags from node names of already existing pages. it basically looks like this in the name field
Roundtable on Instillation <font Color="#FF0000">(uncut)</font>
so i just want to remove the tags from the url. is there any way to do that quickly with the umbracoSettings.config? is there any way to do this easily and quickly in general?
The long answer: HTML parsing and cleaning is very very hard! The best thing you can do now (if you don't want to clean by hand) is write something like a usercontrol that goes through all of your nodes and uses something like umbraco.library.StripHtml to remove tags from the title. I don't think there's a way to prevent your editors from just inserting them again though. An afterSave handler would need to take care of this (doing StripHtml again).
Good one! You might be able to clean up the umbracoNode table. Don't forget to go to the content section, right click on the top Content node and choose "Republish all".
im close... i was able to remove it from the text column in that table... but the links still have the font tags when i save and publish even when the text of the link does not. and the name field also still has the font tags... guess i have to find another table to remove it from. anyway here is the function that i used for future reference
CREATE FUNCTION dbo.tagstrip ( @in VARCHAR(8000) )
RETURNS VARCHAR(8000) AS BEGIN
DECLARE @i INT
WHILE 1 = 1 BEGIN
SET @i = LEN( @in )
SET @in = REPLACE( @in, SUBSTRING( @in,
CHARINDEX( '<', @in ),
CHARINDEX( '>', @in ) -
CHARINDEX( '<', @in ) + 1 ), SPACE( 0 ) )
IF @i = LEN( @in ) BREAK END
RETURN ( @in )
END
EDIT: I also did it to the text column in the CMSDocument table. I had to republish the pages afterwards but i think that worked.
They put tags in the nodeName, how do i remove that?
So it looks like i have to go in and remove tags from node names of already existing pages. it basically looks like this in the name field
so i just want to remove the tags from the url. is there any way to do that quickly with the umbracoSettings.config? is there any way to do this easily and quickly in general?
The short answer: No.
The long answer: HTML parsing and cleaning is very very hard! The best thing you can do now (if you don't want to clean by hand) is write something like a usercontrol that goes through all of your nodes and uses something like umbraco.library.StripHtml to remove tags from the title. I don't think there's a way to prevent your editors from just inserting them again though. An afterSave handler would need to take care of this (doing StripHtml again).
there wouldnt happen to be a database call i can make to locate the offending names would there be?
Good one! You might be able to clean up the umbracoNode table. Don't forget to go to the content section, right click on the top Content node and choose "Republish all".
im close... i was able to remove it from the text column in that table... but the links still have the font tags when i save and publish even when the text of the link does not. and the name field also still has the font tags... guess i have to find another table to remove it from. anyway here is the function that i used for future reference
EDIT: I also did it to the text column in the CMSDocument table. I had to republish the pages afterwards but i think that worked.
is working on a reply...