Feature Setup Order

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
10/6/2011 8:41:48 AM
Gravatar
Total Posts 88

Feature Setup Order

Hi!

I´m trying to setup some feature with an specific order, I've change de feature definition file and puts the sort order attribute but doesn't work. I´ve change de feature definition file name with the number order but doesn't work again. There an example:

9991_feature1.config

9992_feature2.config

thanks

10/6/2011 10:07:54 AM
Gravatar
Total Posts 18439

Re: Feature Setup Order

Are you talking about the order that they are sorted in the feature dropdown list?

A long time ago that sort was based on the name of the feature definition file, but that was changed quite a long time ago and now the sort is controlled by the sortOrder attribute inside the feature definition xml

If you make a change in the feature definition file then you need to visit the /Setup/Default.aspx page so it will apply the changed configuration. For your custom feature you would also need to build your feature so that the post build event copies your updated feature definition file up to the Web project.

Hope that helps,

Joe

10/6/2011 10:46:39 AM
Gravatar
Total Posts 88

Re: Feature Setup Order

thanks for the answer,

No, ím talking the order on Setup/default.aspx Page

but I've tried this solution but still doesn't work.

I change the sortOrder attribute from feature like HTML Content but doesn't change nothing. Im with 2.3.7.0 version.

10/6/2011 11:49:05 AM
Gravatar
Total Posts 18439

Re: Feature Setup Order

keep in mind it just sorts by this value but more than one feature could have the same sort value and there could be large gaps in the values so changing it may have no effect if it still has a lower sort than other features it will still be at the top of the feature dropdown list.

The sort order in which features are setup on the setup page is not of importance for visitors nor editors of your site. The order in which those run is just the sort order of the feature folders at /Setup/applications/[featurefolder]

Though it will setup /Setup/applications/mojoportal-core before it runs setup for other features, so core features like Html, Site Statistics, Newsletter Sign Up, etc run first then it installs the external features in alphabetic file system order of the application folder names.

Hope that helps,

Joe

 

You must sign in to post in the forums. This thread is closed to new posts.