HomePage HomePage
JW Davidson JW Davidson

RSS feed for the TestJwd namespace

Show Changes Show Changes
Print Print
Recent Changes Recent Changes
Subscriptions Subscriptions
Lost and Found Lost and Found
Find References Find References
Local Search

History

9/13/2007 1:55:48 PM
-74.15.247.173
8/19/2007 6:36:48 PM
-66.78.124.101
List all versions List all versions

Wiki Customize Web User Interface With Wiki Talk
.
Summary

Look at the Wiki page NormalBorders.wiki

If you save this file as "_NormalBorders.Wiki" under your Wiki content directory (with the other .Wiki files), you will be able to edit this file and change the layout. The Wiki engine will automatically pick up the new layout and use it for the Wiki.

See also NormalBordersRightOnly for an example of a layout that only has a right menu.

Does anyone have an example implementation of "Last 5 WikiPages Visited?"

Any other cool border WikiTalk samples out there?

Back to HomePage Test / WikiTalk

Here is for example the WikiTalk for Recent Topics in the _NormalBorders#RightBorder :

 @@[
        "*Recent Topics*",
        Newline,
        request.UniqueVisitorEvents.Snip(5).Collect
        { each |
                [
                Tab, 
                "*",
                Presentations.Link(federation.LinkMaker.LinkToTopic(each.Fullname), each.Name),
                Newline
                ]
        }
 ]@@

or as Trail

 @@[
        "||{T-}*Trail*: ||",
        request.UniqueVisitorEvents.Snip(5).SortBy{ each | each.When }.Collect
        { each |
                [
                ">  ", 
                Presentations.Link(federation.LinkMaker.LinkToTopic(each.Fullname), each.Name),
                "||",
                ]
        },
        Newline
 ]@@

that look like this:

Trail: > WikiCustomizeWebUserInterfaceWithWikiTalk

-- MichaelStamenov [7/22/2005]

At my company, we've brought together a concept of WikiLinks - a dynamically built table of key WikiTopics that are referred to as one of two types of WikiLinks: KeyLinks and QuickLinks. Our WikiLink table sits in our FlexWiki's _NormalBorders#RightBorder.

To create WikiLink table(s) using the WikiTalk fragment below, simply add either a "QuickLink:" or "KeyLink:" WikiPageProperty to the topic you wish to have appear in the list, with the value being the text you wish to have displayed in the WikiLinks table.

 @@[
         "||{!^C3} ''' WikiLinks: ''' ||", Newline, 
         namespace.Topics.Select{each | each.HasProperty("KeyLink")}.Collect
         { e | [ Tab, "* '''", Presentations.Link(federation.LinkMaker.LinkToTopic(e.Fullname), e.GetProperty("KeyLink")), "'''", Newline] },
         namespace.Topics.Select{each | each.HasProperty("QuickLink")}.Collect
         { e | [ Tab, "* ", Presentations.Link(federation.LinkMaker.LinkToTopic(e.Fullname), e.GetProperty("QuickLink")), Newline] },
 ]@@

The above snippet will pull all pages with these properties and render a table of links to WikiTopics - KeyLinks are rendered in bold and placed at the top of the list, and QuickLinks are rendered in a "normal" weight and displayed towards the bottom of the list, appearing somewhat like this:

WikiLinks
FlexWiki
OneMinuteWiki
WikiTalk
FormattingRules
Note
(this is a static table - I was hesitant to modify a bunch of FlexWiki.Com's WikiPages to support this, so the above rendering is purely for demonstrating the layout produced by the WikiTalk.

Naturally, feel free to modify it!

-- ErikD, 7/25/2005

Not logged in. Log in

The wiki for all things Objective Design Solutions

Recent Topics
WikiCustomizeWebU... WikiCustomizeWebU...
List all versions List all versions

----

Go to Google.com
Change Style
Powered by Flexwiki v2.0.0.218