Microsoft Content Management Server - MS CMS - change Sort Ordinal by programing

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > August 2005 > MS CMS - change Sort Ordinal by programing





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author MS CMS - change Sort Ordinal by programing
estelle@xagoon.com

2005-08-31, 2:51 am

Hi all,

Does somebody know if i can change the Sort Ordinal property of a
posting or a channel by programming.
I saw that there is Get and Set on the property SortOrdinal, but when i
try to write on it, it doesn't work (when i open the site manager, it
didn't sort how i wanted).
I also tried to do an "update" directly in the database of the CMS, in
the table "Node" but it doesn't work and it's a little dangerous to do
this.

I would want the users to be able to change the order of the postings
and the channels of the site without opening the Site Manager. Does
somebody has an idea ?

Thanks for your help,

Estelle

Stefan [MSFT]

2005-08-31, 7:49 am

Hi Estelle,

yes this can be done.
In SiteManager you will not see the effect.
Even not in code if you don't use the SortByOrdinal method on the
collection.

About your directly modifying the database:

You successfully managed to get an unsupported system.
Any direct modification to the database causes the application to become
unsupported.

See here for details:
http://blogs.technet.com/stefan_gos.../16/396647.aspx

Cheers,
Stefan


--
This posting is provided "AS IS" with no warranties, and confers no rights

New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
----------------------


<estelle@xagoon.com> wrote in message
news:1125472469.970162.137580@g43g2000cwa.googlegroups.com...
> Hi all,
>
> Does somebody know if i can change the Sort Ordinal property of a
> posting or a channel by programming.
> I saw that there is Get and Set on the property SortOrdinal, but when i
> try to write on it, it doesn't work (when i open the site manager, it
> didn't sort how i wanted).
> I also tried to do an "update" directly in the database of the CMS, in
> the table "Node" but it doesn't work and it's a little dangerous to do
> this.
>
> I would want the users to be able to change the order of the postings
> and the channels of the site without opening the Site Manager. Does
> somebody has an idea ?
>
> Thanks for your help,
>
> Estelle
>



estelle@xagoon.com

2005-08-31, 7:49 am

Ok Stefan
Thanks a lot!

Estelle

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com