cancel
Showing results for 
Search instead for 
Did you mean: 

change default landing page at clicking on "create" button while creating content through document library action alfresco

alf_developer09
Confirmed Champ
Confirmed Champ

While  creating any content  ,  it lands to the  " view details "  page of the created content  in alfresco share . As per requirement it  needs  to land to the  site document library.

1 ACCEPTED ANSWER

mitpatoliya
Star Collaborator
Star Collaborator

You need to customize create content manager for this.

There is a javascript which has that create-content-mgr.js which handles this creation logic. You will find following method inside it.

      onCreateContentSuccess: function CreateContentMgr_onCreateContentSuccess(response)

You will have to put your logic of redirecting user after content creation inside this method.  Hope this helps.

View answer in original post

5 REPLIES 5

mitpatoliya
Star Collaborator
Star Collaborator

You need to customize create content manager for this.

There is a javascript which has that create-content-mgr.js which handles this creation logic. You will find following method inside it.

      onCreateContentSuccess: function CreateContentMgr_onCreateContentSuccess(response)

You will have to put your logic of redirecting user after content creation inside this method.  Hope this helps.

thanks a lot Sir for help

if u could please tell me where can i find this file in alfresco 5.1

ddraper
World-Class Innovator
World-Class Innovator

You may want to review this blog post which describes the process of creating a very similar extension (although the targeted widget is different). You should avoid editing the source file directly if you want your customization to be future proof on upgraded or service pack.

thanks Dave that worked overrided JS create-content-mgr.js. Place at "web/components/create-content/" with the required logic.

thanks Mittal

overrided JS create-content-mgr.js. Place at "web/components/create-content/" with the required logic.It worked fine.