Ask Your Question

Is it possible to specify a default ros version with the roswiki macros?

asked 2011-10-28 02:08:44 -0600

Adolfo Rodriguez T gravatar image

I'm writing ros-distribution-specific wiki pages as shown in the bottom of the post, and I'd like to display by default a page that does not correspond to the latest stable release (in my case i want to display diamondback instead of electric). Is this possible?, and if so, where can I find the relevant documentation?.



{{{#!wiki version diamondback

{{{#!wiki version electric
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2011-10-28 08:50:06 -0600

kwc gravatar image

The default version is currently hardcoded in the javascript. We don't have cycles to rewrite this right now, but would happily accept a patch to the javascript and wiki macro code that would enable more customized setting.

The code for the javascript is here:

The code for the version macro is here:

edit flag offensive delete link more

answered 2011-10-28 03:03:50 -0600

joq gravatar image

The version is global (recently changed to Electric).

I don't know any way to override that. Maybe someone else does.

edit flag offensive delete link more


You can write you're own buttons using the seesaw macros but I'd recommend not doing that and just putting a clear header at the top, saying "If you want Diamondback, click below." Or you could lay the documentation out side by side and not use any macros.
tfoote gravatar imagetfoote ( 2011-10-28 08:50:11 -0600 )edit
The clear heading stating the supported version is what I had and I'll stick to that for now. Thanks all for pointing out the relevant places that enforce the current behavior.
Adolfo Rodriguez T gravatar imageAdolfo Rodriguez T ( 2011-11-01 23:33:11 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools


Asked: 2011-10-28 02:08:44 -0600

Seen: 147 times

Last updated: Oct 28 '11