Sort Index

Member since: 2006


I have an EPiServer site that has a default language of Spanish. I want the user to be able to set the sort index while still editing in Spanish, currently I have to return to english in order to do this.

Has anyone got any advice?



#28525 Mar 12, 2009 17:15
  • Per Nergård
    Member since: 2007

    Hmm. Since sort index is a "built in" property you can't set it to "unique value per langue".

     I guess that one thing you could try is to do a custom sort index property that is only displayd if the language is spanish.

    And when it it's saved overwrite the default sortindex value whit the value from the custom property. If that don't work another aproach could be to attach to one of the Page_Save events in Global.asax and do the change of the sorting index there.

     Hope this could be of some help.


    Per N

    #28533 Edited, Mar 13, 2009 10:10
  • ian.causton
    Member since: 2006

    Thanks Per,

    That might be an alternative appraoch. Although I do not need the sort index to be different per language I just want to be editable in any language, at present, if in Spanish the sort index drop down is disabled.

    Some way of enabling it would be enough.




    #28537 Mar 13, 2009 11:32
  • Per Nergård
    Member since: 2007

    Could be tricky. As far as I know it's the EPiServer.UI.WebControls.PropertyDataform that renders the properties. Atleast the ones you have added to your pagetype. Maybe you could make your own version.


    #28548 Edited, Mar 13, 2009 15:41
  • Anders Hattestad
    Member since: 1996

    What you could do is to make a edit plugin that only attach to the Populate event that renders the edit tree

    look at


    You can there change that the sort index is editeble on spanish. the only tricky part then is to actully make it to save. There are numbers of way of doing this, but you can try first to replace the local language sort index property with the master language property and see what happens :)

    #28550 Mar 14, 2009 17:54

    Thanks a lot guys.

    Much appreciated


    #28584 Mar 16, 2009 11:47