You have used the :Sections: property as your selection criteria. Now you
need to create a property, for example 'SortInfo', to hold your sort
criteria. this property is put into each topic that you want selected and
sorted.

Then change the code below where it reads '.Sort.Collect{' so that it reads:

.SortBy{each | each.GetProperty("SortInfo")}.Collect{

Hope this helps

John Davidson


On Jan 16, 2008 12:45 AM, Shannon Ma <[EMAIL PROTECTED]> wrote:

>  I have the following WikiTalk code and was wondering how I could sort the
> topics being displayed within each section.  Right now they're alphabetical
> and I'd like to sort them myself so the order is relevant to what my users
> are looking for.  Any ideas?
>
>
>
> :Sections:{
>
> [
>
> "MySection1",
>
> " MySection2",
>
> " MySection3"
>
> ]
>
> }
>
>
>
> @@
>
> this.Sections.Collect{
>
> eachSection|
>
> [
>
>                 "!!!",
>
>                 eachSection,
>
>                 Newline,
>
>                 namespace.TopicsWith("HomePageSection",
> eachSection).Sort.Collect{
>
>                 eachSectionPage|
>
>                                 [
>
>                                 Tab,
>
>                                 "*",
>
>                                 Presentations.Link(
> federation.LinkMaker.LinkToTopic(eachSectionPage.Fullname),
>
>                                 eachSectionPage.GetProperty
> ("FriendlyName")),
>
>                                 " ",
>
>                                 eachSectionPage.GetProperty("Summary"),
>
>                                 Newline
>
>                                 ]
>
>                 }
>
> ]
>
> }
>
> @@
>
>
>
> Shannon Ma
>
> *Neutex Systems*
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Flexwiki-users mailing list
> Flexwiki-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/flexwiki-users
>
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Flexwiki-users mailing list
Flexwiki-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flexwiki-users

Reply via email to