diff options
author | Lukas Lipavsky <llipavsky@suse.com> | 2013-06-27 16:46:25 +0200 |
---|---|---|
committer | Lukas Lipavsky <llipavsky@suse.com> | 2013-06-27 16:46:25 +0200 |
commit | 6b079261a5f58ea7986952dd1fcaf3911bcfd7bc (patch) | |
tree | 6d77d90a14fcbe9a964bc68995efd073f47eb42a | |
parent | 898ceaf38ca090631a598d0b8b1d6994acc66b59 (diff) | |
download | ikiwiki-6b079261a5f58ea7986952dd1fcaf3911bcfd7bc.tar ikiwiki-6b079261a5f58ea7986952dd1fcaf3911bcfd7bc.tar.gz |
add forum question and link to my git repo
-rw-r--r-- | doc/forum/Howto_add_tag_from_plugin_code.mdwn | 12 | ||||
-rw-r--r-- | doc/git.mdwn | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/doc/forum/Howto_add_tag_from_plugin_code.mdwn b/doc/forum/Howto_add_tag_from_plugin_code.mdwn new file mode 100644 index 000000000..a17faf727 --- /dev/null +++ b/doc/forum/Howto_add_tag_from_plugin_code.mdwn @@ -0,0 +1,12 @@ +Hi, I want to add tags to some pages automatically (generating album images +and want to tag all generated pages). I managed to do so in following way: + + IkiWiki::Plugin::tag::preprocess_tag( + page => $viewer, + destpage => $params{destpage}, + map { ($_ => 1) } @tags, + ); + +This works, however if some tag does not exist, it is not created. I tracked it so far that I found that the Render.pm's method gen_autofile() is not called , so it is most likely that I need to somehow trigger Render.pm's refresh()...but how can I do it? + +BTW: The code is modified album plugin that is in [my git](https://github.com/llipavsky/ikiwiki) diff --git a/doc/git.mdwn b/doc/git.mdwn index b743f6175..b86132ed2 100644 --- a/doc/git.mdwn +++ b/doc/git.mdwn @@ -77,6 +77,7 @@ think about merging them. This is recommended. :-) * [[anarcat]] `git://src.anarcat.ath.cx/ikiwiki` * anderbubble `git://civilfritz.net/ikiwiki.git` * frioux `git://github.com/frioux/ikiwiki` +* llipavsky `git://github.com/llipavsky/ikiwiki` ## branches |