Thursday, February 26, 2009

Bug on XML Site definition

On a Onet.xml Site definition, we wanted to set the RowLimit ( for announcement list. So we set :

<View List="$Resources:core,lists_Folder;/$Resources:core,announce_Folder;"
<RowLimit Paged="TRUE">5</RowLimit>

but, it didn't work...WTF??

How sweet it is when you try to use a "standard" attribute and when you realize that...Gasp It hasn't been implemented By MS (That was the real answer that they gave us!)

We have spent a few days on this bug, so I just blog it hoping that the one who is looking for solution find it!! There is no solutions but creating a feature that will replace the announcementList feature. This feature that you can call "CustomeAnnouncementList" will be a copy/Paste of the basic Anouncement List feature amended (in the element.xml file) with the rowlimit attribute inside. Then you have to activate this feature on all sites. Bingo! Of course, if you don't want to see 2 anouncement list in your available lists, you will also have to deactivate the old feature.

Cheers & Good luck

No comments:

Post a Comment