[Moin-user] Parameterizable link to a different page in the actions toolbar

R.Bauer rb.proj at gmail.com
Wed Sep 9 04:08:08 EDT 2009


Brancovici, George-Sava Dr. schrieb:
> Hi,
> 
> I'm trying to use the space and extend the actions toolbar to the right
> of the "More actions" combo box with something like a link (or button,
> etc) to a certain target page. The linked page should differ, depending
> on the page on which the user currently is. E.g. if the user is on the
> "McDonalds" wiki page, the link will target the "FastFoodRestaurants"
> wiki page.
> 
> There are two catches:
> - the linked page is not necessarily the "parent" page, it should be
> parameterizable e.g. through a variable defined by the editor on each
> page.

can be done by a pragma defintition on the page

#pragma restaurant "McDonalds"

wikiutil.escape(self.request.getPragma('restaurant', defval=''))

> - the link should be on the actions toolbar or somwehere in the upper
> part of each page, in order to optimize space usage.

look at theme.__init__.editbarItems search for Discussion for an example.


cheers
Reimar

> 
> Do you have any ideas about how to accomplish this?
> 
> Thanks!
> George
> 
> 
> 
> ------------------------------------------------------------------------
> 
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
> trial. Simplify your report design, integration and deployment - and focus on 
> what you do best, core application coding. Discover what's new with 
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Moin-user mailing list
> Moin-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/moin-user





More information about the Moin-user mailing list