Wiki Extensions Plugin
Added by Haruyuki Iida over 15 years ago
Let me announce to you My "Wiki Extensions Plugin".
This plugin adds some wiki macros and enhancements to your redmine.
- Sidebar
- Footnote
- Comment form
- Tags
- and more.
Demo page is here .
Thank you.
Replies (148)
RE: Wiki Extensions Plugin - Added by Henrik Ammer over 14 years ago
Is there a way to make the lastupdated_by
get some kind of parameter to create a link to that users page instead of just outputting the name? I tried to dabble around like with the tags
macro but my rubyknowledge was way to limited for that.
Same goes for lastupdated_at
which could link to the activity of the project similar to the links on for instance the tickets last updated time.
RE: Wiki Extensions Plugin - Added by Haruyuki Iida over 14 years ago
Roland Fehrenbacher wrote:
Hi Haru,
is there a possibility to put the toc in the SideBar? Just writing {{toc}} obviously doesn't work, since it would just use the toc of the SideBar page.
Hi, Roland.
Thank you for your request.
I will try. Wait for next release.
RE: Wiki Extensions Plugin - Added by Haruyuki Iida over 14 years ago
Henrik Jönsson wrote:
I didn't like how the
tags
macro displayed the tags of the wikipage so I did some changes to it which I'm attaching here for others to enjoy.
Hi Henrik
Your codes seems to be nice. I will merge them to next release.
Thanks.
RE: Wiki Extensions Plugin - Added by Haruyuki Iida over 14 years ago
Henrik Jönsson wrote:
Is there a way to make the
lastupdated_by
get some kind of parameter to create a link to that users page instead of just outputting the name? I tried to dabble around like with thetags
macro but my rubyknowledge was way to limited for that.Same goes for
lastupdated_at
which could link to the activity of the project similar to the links on for instance the tickets last updated time.
Hi Henrik.
I will try. Please wait.
Wiki Extensions Plugin 0.2.1 Released. - Added by Haruyuki Iida over 14 years ago
http://redminewikiext.googlecode.com/files/redmine_wiki_extensions-0.2.1.zip
Changes:
- lastupdated_by macro links to user page.
- lastupdated_at macro links to activity page.
- Korean translation updated.
- tags macro style patch written by Henrik Jönsson.
Fixed bug:
- popularity macro shows error when wiki page was deleted.
RE: Wiki Extensions Plugin - Added by Haruyuki Iida over 14 years ago
Haru Iida wrote:
Roland Fehrenbacher wrote:
Hi Haru,
is there a possibility to put the toc in the SideBar? Just writing {{toc}} obviously doesn't work, since it would just use the toc of the SideBar page.
Hi, Roland.
Thank you for your request.
I will try. Wait for next release.
Hi, Roland.
Sidebar for wiki is integrated with Redmine core at r3632 .
And also there is issue #4301 that is about toc for sidebar.
So, I stopped any enhancement for sidebar. Sorry.
RE: Wiki Extensions Plugin 0.2.1 Released. - Added by Henrik Ammer over 14 years ago
Haru Iida wrote:
http://redminewikiext.googlecode.com/files/redmine_wiki_extensions-0.2.1.zip
Changes:
- lastupdated_by macro links to user page.
- lastupdated_at macro links to activity page.
- Korean translation updated.
- tags macro style patch written by Henrik Jönsson.
Fixed bug:
- popularity macro shows error when wiki page was deleted.
This sounds great. I'm downloading the new version today to check out the improvements. Thanks!
RE: Wiki Extensions Plugin 0.2.1 Released. - Added by Henrik Ammer over 14 years ago
Is it possible to disable WikiExtension adding the SideBar when using redMine with a revision of r3632 or above? I'm getting double currently.
RE: Wiki Extensions Plugin 0.2.1 Released. - Added by Eric Thomas over 14 years ago
Henrik Jönsson wrote:
Is it possible to disable WikiExtension adding the SideBar when using redMine with a revision of r3632 or above? I'm getting double currently.
You can do it fairly quickly yourself...
In the plugin directory go to lib/wiki_extensions_wiki_controller_patch.rb
find the following method
def wiki_extensions_include_footer
return if @page.title == 'Footer'
footer = @wiki.find_page('Footer')
return unless footer
text = @content.text
text << "\n"
text << '<div id="wiki_extentions_footer">'
text << "\n\n"
text << footer.content.text
text << "\n\n</div>"
end
and add another return statement for the Sidebar
RE: Wiki Extensions Plugin 0.2.1 Released. - Added by Haruyuki Iida over 14 years ago
Henrik Jönsson wrote:
Is it possible to disable WikiExtension adding the SideBar when using redMine with a revision of r3632 or above? I'm getting double currently.
hmmm.
Your problem doesn't occur in my environment.
- If I create the page named "Sidebar", only Redmine's sidebar appears.
- If I create the page named "SideBar", only Wiki Extensions' sidebar appears.
RE: Wiki Extensions Plugin - Added by Henrik Ammer over 14 years ago
I get the same wikipage displayed both as SideBar
and Sidebar
, deleting one deletes the other. Therefor I commented out the wiki_extensions_include_sidebar
and everything was a ok again.
Wiki Extensions Plugin 0.2.2 Released. - Added by Haruyuki Iida over 14 years ago
Wiki Extensions Plugin 0.2.2 Released.
Changes:
- Wiki comments have tree structure.
- Now you can disable a side bar functionality of this plugin at project settings page.
- Portuguese and Brazilian Portuguese translation added.
- Norwegian translation added.
- Swedish translation updated.
Regards.
RE: Wiki Extensions Plugin - Added by Dylan Yee over 14 years ago
Hi Haru lida, I install your plug in and I love it. But there are lack of user guide on how to use your plug in, like tag, iframe, footer etc, I just couldn't understand from your
http://www.r-labs.org/wiki/r-labs/Wiki_Extensions_en#wiki_extensins_fn_src_2
and some of the syntax is showing error in your page "Error executing the new macro (invalid date)". Is it possible for you to put up a better user guide? great thanks~
RE: Wiki Extensions Plugin - Added by Ted Lilley over 14 years ago
I'm having trouble with the iframe macro. I recently installed a fresh Redmine 1.0.0 and tried both the wiki extensions 0.2.2 as well as 0.2.3 versions. In both cases, I am able to use many of the macros, the plugin appears in the plugins settings page, I can make new tabs, etc etc, but the iframe macro simply renders as {{iframe("my url here")}}, where "my url here" is, of course, my url.
The iframe macro does show up in the macro_list, so it is definitely being loaded by init.rb, it just won't do anything. Not being a ruby expert, I don't know how to debug this. Any ideas?
RE: Wiki Extensions Plugin - Added by Haruyuki Iida over 14 years ago
Dylan Yee wrote:
Hi Haru lida, I install your plug in and I love it. But there are lack of user guide on how to use your plug in, like tag, iframe, footer etc, I just couldn't understand from your
http://www.r-labs.org/wiki/r-labs/Wiki_Extensions_en#wiki_extensins_fn_src_2
and some of the syntax is showing error in your page "Error executing the new macro (invalid date)". Is it possible for you to put up a better user guide? great thanks~
Thanks. I fixed it.
RE: Wiki Extensions Plugin - Added by Haruyuki Iida over 14 years ago
Ted Lilley wrote:
I'm having trouble with the iframe macro. I recently installed a fresh Redmine 1.0.0 and tried both the wiki extensions 0.2.2 as well as 0.2.3 versions. In both cases, I am able to use many of the macros, the plugin appears in the plugins settings page, I can make new tabs, etc etc, but the iframe macro simply renders as {{iframe("my url here")}}, where "my url here" is, of course, my url.
You don't need to quote url.
ex. {{iframe(http://www.google.com)}}
not {{iframe("http://www.google.com")}}
Thanks.
RE: Wiki Extensions Plugin - Added by Ted Lilley over 14 years ago
Thanks for the reply Haru.
I removed the quotations and I still just get the text {{iframe(http://build.diditbetter.com/)}} (I cut and pasted this from the page just to make sure I wasn't misquoting anything).
As I mentioned, everything else seems to work fine. I'm definitely capable of investigating the code, I just don't really know how to debug in the Redmine environment.
Is there a way to actually run the system in a debugger to see what's happening?
RE: Wiki Extensions Plugin - Added by Ted Lilley over 14 years ago
I determined that height and width are required arguments. I didn't know this. Sorry for the confusion.
RE: Wiki Extensions Plugin - Added by Ted Lilley over 14 years ago
A suggestion:
You could code the width of the iframe to default to 100% and thereby reduce the required arguments to just the url and height. I think this makes sense, as it's the behavior I almost always want to see.
RE: Wiki Extensions Plugin - Added by Ted Lilley over 14 years ago
Another suggestion:
You could have the iframe macro return a usage message instead of silently failing when there aren't enough arguments. For example, it could say "iframe macro requires url, height and width arguments" or something like that.
RE: Wiki Extensions Plugin - Added by Adrian VanRassel over 14 years ago
I have a suggestion but I don't know if its appropriate for this plugin, or the redmine engine.
I was wondering if its possible to have a table sort feature, where you can sort by column with ascending and descending features, similar to wikipedia.
RE: Wiki Extensions Plugin - Added by Fabio Leitao over 14 years ago
I was using a really old version before (0.1.5, I think), but recently have it updated to 0.2.2 together with redmine 1.0.1 and rake 2.3.5 (for the backlogs plugin)
The lastupdated_by is still working fine, but the lastupdated_at macro keeps shouting in red: Error executing the lastupdated_at macro (missing interpolation argument in "%A, %{count} de %B de %Y, %H:%M hs" ({:object=>Seg, 30 Ago 2010 21:41:56 BRT -03:00} given))
By the way, my default language is pt-BR (brazilian portuguese), but it also fails in es (spanish) and en (english)
So far, it looks like its the only thing missing, but might be related to something else... I am not sure how to figure it out, what to test, or where to fix.
RE: Wiki Extensions Plugin - Added by Fabio Leitao over 14 years ago
Oops, I have followed some advise from here (http://stackoverflow.com/questions/3003652/rails-error-when-using-d-deprecated-on-translating-dates-what-should-i-use-in) and had uninstalled the i18n from the my gems (it has been installed by the last update I did earlier in the day)
It has complained it would affect the activemodel-3.0.0 and actionpack-3.0.0 due to dependencies issues, but I am not sure how it would affect my redmine server
For now, it seems to be working again, including this macro from wiki_extensions plugin.
RE: Wiki Extensions Plugin - Added by Terence Mill about 14 years ago
- BugReport (don't got login send on rlabs portal)*
If i include a wiki site in forum thread via
Error executing the include macro (Page not found), and the wiki site itself uses the macro {{project(project)}} to reference to another project, the macro is not resolved to link on project but just the playin wiki macro text is shown!
RE: Wiki Extensions Plugin - Added by Terence Mill about 14 years ago
Terence Mill wrote:
- BugReport (don't got login send on rlabs portal)*
If i include a wiki site in forum thread via
{{includ e(project:mysite)}}, and the wiki site itself uses the macro {{project(project)}} to reference to another project, the macro is not resolved to link on project but just the playin wiki macro text is shown!