I've changed tha name of Title field on my new content type that
inherits from Item.
It effected the Item content type itself and everything that inherits
from it ...
When I try to change it back to 'Title' , I get an error: "...
reserved column name... " , which is logical ...in a way...
Any idea on how to reverce Item back to having default column names?
grateful in advance,
Marina Petersen
On May 8, 2:13 am, mari
@avanade.com wrote:
> I've changed tha name of Title field on my new content type that
> inherits from Item.
> It effected the Item content type itself and everything that inherits
> from it ...
> When I try to change it back to 'Title' , I get an error: "...
> reserved column name... " , which is logical ...in a way...
> Any idea on how to reverce Item back to having default column names?
> grateful in advance,
> Marina Petersen
There is a file called FldEdit.aspx in layouts folder which contains a
javascript function as shown below
function doesFieldNameConflict( strName )
{
if (g_FieldName[strName.toLowerCase()] &&
strName.toLowerCase() != <
%SPHttpUtility.AddQuote(SPHttpUtility.EcmaScriptStringLiteralEncode(spField .Title),Response.Output);
%>.toLowerCase())
return true;
else
return false;
}
g_FieldName : Its an array collection of all possible fields...
Just modify the function to add your own logic and by passing the
check for existence of "Title" field as shown below
function doesFieldNameConflict( strName )
{
if( strName.toLowerCase() == "title")
return true;
if (g_FieldName[strName.toLowerCase()] &&
strName.toLowerCase() != <
%SPHttpUtility.AddQuote(SPHttpUtility.EcmaScriptStringLiteralEncode(spField .Title),Response.Output);
%>.toLowerCase())
return true;
else
return false;
}
I tried this method, but I do not how to save the file back to layouts
folder and make use of the new one.
-----------------------------------------------Reply-----------------------------------------------
On May 8, 1:36 pm, Sundher <sundher.gan
@gmail.com> wrote:
> On May 8, 2:13 am, mari
@avanade.com wrote:
> > I've changed tha name of Title field on my new content type that
> > inherits from Item.
> > It effected the Item content type itself and everything that inherits
> > from it ...
> > When I try to change it back to 'Title' , I get an error: "...
> > reserved column name... " , which is logical ...in a way...
> > Any idea on how to reverce Item back to having default column names?
> > grateful in advance,
> > Marina Petersen
> There is a file called FldEdit.aspx in layouts folder which contains a
> javascript function as shown below
> function doesFieldNameConflict( strName )
> {
> if (g_FieldName[strName.toLowerCase()] &&
> strName.toLowerCase() != <
> %SPHttpUtility.AddQuote(SPHttpUtility.EcmaScriptStringLiteralEncode(spField .Title),Response.Output);
> %>.toLowerCase())
> return true;
> else
> return false;
> }
> g_FieldName : Its an array collection of all possible fields...
> Just modify the function to add your own logic and by passing the
> check for existence of "Title" field as shown below
> function doesFieldNameConflict( strName )
> {
> if( strName.toLowerCase() == "title")
> return true;
> if (g_FieldName[strName.toLowerCase()] &&
> strName.toLowerCase() != <
> %SPHttpUtility.AddQuote(SPHttpUtility.EcmaScriptStringLiteralEncode(spField .Title),Response.Output);
> %>.toLowerCase())
> return true;
> else
> return false;
> }
> I tried this method, but I do not how to save the file back to layouts
> folder and make use of the new one.
The other way to handle this is from Database, in wss content database
there would be a table called " ContentTypes", in that table you check
the column called "Definition" that stores the actual content
description. I updated that field and my problem is solved.