Thanks for your help, works great now.
JefferyS
John Davidson wrote:
You are using the original MenuItem definition (located at
the top of _NormalBorders) that has only 3 params. The new method is:
:MenuItem:{ tip,
command, url, image | with (Presentations) {[ "||{T-}",
Image(federation.LinkMaker.LinkToImage(image), command, url), "||{+}
*", Link(url, command, tip), "* ||", Newline ]}
}
John Davidson
On Tue, Mar 3, 2009 at 10:19 AM, Jeffery
Seiffert <jaseiff...@pdq.net>
wrote:
Running
Flexwiki 2.1.0.289 on 2008 server.
Hello I hope I'm just doing something wrong but every time I put a
MenuItem that has a forth parameter of an image path in my
_NormalBorders, I get an error. "Incorrect number of parameters for
block. Need 3; got 4". The Flexwiki site shows it can take a 4th
parameter so not sure what's wrong.
Any Help would be most appreciated!
Thanks,
JefferyS
Here is my LeftBorder:
LeftBorder:{
aTopic |
[
Newline,
Newline,
MenuItem("JefferyS HomePage", "JefferyS HomePage",
federation.LinkMaker.LinkToTopic("JefferyS.HomePage"),
"images/home.gif"),
Newline,
Newline, "----", Newline, Newline,
Newline,
Newline,
request.AreDifferencesShown.IfTrue
{
MenuItem("Don't highlight differences between this topic and
previous version", "Hide Changes",
federation.LinkMaker.LinkToTopic(aTopic.Fullname))
}
IfFalse
{
MenuItem("Show differences between this topic and previous
version", "Show Changes",
federation.LinkMaker.LinkToTopicWithDiffs(aTopic.Fullname))
},
aTopic.Version.IfNull
{
aTopic.Namespace.IsReadOnly.IfFalse
{
MenuItem("Edit this topic", "Edit",
federation.LinkMaker.LinkToEditTopic(aTopic.Fullname))
}
IfTrue
{
""
}
}
Else
{
""
},
MenuItem("Show printable view of this topic", "Print",
federation.LinkMaker.LinkToPrintView(aTopic.Fullname)),
MenuItem("Show recently changed topics", "Recent Changes",
federation.LinkMaker.LinkToRecentChanges(aTopic.Namespace.Name)),
MenuItem("Show RRS feeds to keep up-to-date", "Subscriptions",
federation.LinkMaker.LinkToSubscriptions(aTopic.Namespace.Name)),
MenuItem("Show disconnected topics", "Lost and Found",
federation.LinkMaker.LinkToLostAndFound(aTopic.Namespace.Name)),
MenuItem("Find references to this topic", "Find References",
federation.LinkMaker.LinkToSearchFor(null, aTopic.Name)),
aTopic.Namespace.IsReadOnly.IfFalse
{
MenuItem("Rename this topic", "Rename",
federation.LinkMaker.LinkToRename(aTopic.Fullname))
}
IfTrue
{
""
},
"----",
Newline,
[
"||{T-}",
"'''Search'''",
"||",
Newline,
"||{+}",
Presentations.FormStart(federation.LinkMaker.LinkToSearchNamespace(aTopic.Namespace.Name),
"get"),
Presentations.HiddenField("namespace", aTopic.Namespace.Name),
Presentations.InputField("search", "", 15),
Presentations.ImageButton("goButton",
federation.LinkMaker.LinkToImage("images/go-dark.gif"), "Search for
this text"),
Presentations.FormEnd(),
"||",
Newline
],
Newline,
"----",
Newline,
[
"'''History'''", Newline,
aTopic.Changes.Snip(5).Collect
{ each |
[
"||{T-+}",
Presentations.Link(federation.LinkMaker.LinkToTopic(each.Fullname),
[each.Timestamp].ToString),
"||",
Newline,
"||{T-+}``",
each.Author,
"``||",
Newline
]
},
Newline,
MenuItem("List all versions of this topic", "List all versions",
federation.LinkMaker.LinkToVersions(aTopic.Fullname)),
aTopic.Version.IfNotNull
{[
Newline,
Presentations.FormStart(federation.LinkMaker.LinkToRestore(aTopic.Fullname),
"post"),
Presentations.HiddenField("RestoreTopic", aTopic.Fullname),
Presentations.SubmitButton("restoreButton", "Restore Version"),
Presentations.FormEnd(),
]}
Else
{
""
},
Newline
],
Newline,
"----",
Newline,
Presentations.Image
(
federation.LinkMaker.LinkToImage("images/flexwikirss.png"),
["RSS feed for the ", namespace.Name, " namespace"].ToString,
federation.LinkMaker.SimpleLinkTo(["Rss.aspx?namespace=",
namespace.Name].ToString)
)
]
}
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Flexwiki-users mailing list
Flexwiki-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flexwiki-users
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Flexwiki-users mailing list
Flexwiki-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flexwiki-users
|