Name of File is not its cm:name

cancel
Showing results for 
Search instead for 
Did you mean: 
alfresco_lover
Active Member

Name of File is not its cm:name

Hi,

I am creating behaviour that renames files. I know how to rename file, but the issue is that after changing the cm:name also the name of file changes what I do not want to.Capture.PNG

Value of field Název is my cm:name and also name of file that appears in document library, but I would like to have "Název" as cm:name and "Vlastní identifikátor" as name of file.

I would like to know if there is a way how to create file with different cm:name and filemane (cm:name is not a name of file)? 

Thanks

Tereza

 
4 Replies
sanjaybandhniya
Intermediate

Re: Name of File is not its cm:name

If you want different name only for display purpose then you can add your custom attribute where you can set your name and use that name for display.

You need to change many places like documentlibrary,aikau search etc...

alfresco_lover
Active Member

Re: Name of File is not its cm:name

hi,

thanks for your answer.

Can you give me a hint how to do it?. Which attribute or property should I change or add?

 

Thanks 

Tereza

abbask01
Senior Member

Re: Name of File is not its cm:name

why not change cm:title instead of cm:name. title appears just besides the name in document library

Regards,
Abbas
sanjaybandhniya
Intermediate

Re: Name of File is not its cm:name

You can use name and title for your use case.

Keep name as it is and use title to give different name.