Hi Shannon
You will need to add a pair of double-quotes before and after the section.
"!!!""e;",
eachSection, """:",
Newline,
Note, that if you are also using the Table of Content generation that the
above will cause it to break.
John Davidson
On Jan 16, 2008 9:06 AM, Shannon Ma <[EMAIL PROTECTED]> wrote:
> Thanks for the feedback John, worked like a charm. I have another
> related question to this. FlexWiki is attempting to link my section names
> since they're in pascal case, however I'd like to avoid this. I've tried to
> escape this, but haven't figured out the right combination. Any ideas?
>
>
>
> I'm guessing I would need to add some characters before and after each
> section, but I'm not sure which ones:
>
>
>
> this.Sections.Collect{
>
> eachSection|
>
> [
>
> "!!!",
>
> eachSection,
>
> Newline,
>
>
>
> Shannon Ma**
>
>
>
> *From:* [EMAIL PROTECTED] [mailto:
> [EMAIL PROTECTED] *On Behalf Of *John Davidson
> *Sent:* Wednesday, January 16, 2008 8:50 AM
> *To:* FlexWiki Users Mailing List
> *Subject:* Re: [Flexwiki-users] Sorting Topics within Dynamic Sections
>
>
>
> 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
>
>
-------------------------------------------------------------------------
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