Currently the keywords only allow 255characters, i need to put more.I read http://www.sitefinity.com/devnet/forums/sitefinity-4-x/bugs-issues/return-code-12031.aspx#1574461 and try to change the datatype to nvarchar(MAX) but mssql not allow me to change that.
Anyway to make enter more words in keywords tag? Also is there any solution to make all page have default metatag instead enter page by page?
Is this an upgraded project or a newly created one using s version of Sitefinity project manager as the one filled in for this thread (4.1.1574)? Generally there shouldn't be any problems changing the type of that column to nvarchar(MAX) in SQL Management Studio, please check if you have not applied some constraints or an active connection to the database is not blocking your attempt to modify the column. I have created a blank project usingt he same version, and the description column was set by default to nvarchar(MAX) and Allow Nulls = true, which will allow you to enter more than 255 characters for this field, and also accept null values (to prevent issues similar to the one discussed in the forum thread you linked to in your previous message). Can you please check whether the same behavior reproduces on a blank project created with Sitefinity 4.1 SP3, and if so, please do not hesitate to let us know.
Concerning your second question, you can add keywords to all pages programatically, please refer to the below code sample demonstrating how to achieve this:
thanks for the reply, i believe it active connection block my attempt. I will try it later on.
regarding your sample code, how do i apply those code? create new module?
Sorry for this newbie question, i'm new to sitefinity, just learn 1 month ago.
Not a problem at all - the easiest way is to add the code inside a WebForm in your project.I have attached a sample WebForm with a textbox and a button, please add it to your project, and build it - you can then navigate to that page and type in the necessary keywords in the textbox and then click the button - the code should execute and add the keywords to all pages.
the Telerik team