diff options
author | Jimmy Tang <jtang@tchpc.tcd.ie> | 2011-04-10 10:41:23 +0100 |
---|---|---|
committer | Jimmy Tang <jtang@tchpc.tcd.ie> | 2011-04-10 10:41:23 +0100 |
commit | 1c6182292d9dd751635c022b5a9d7a789345903b (patch) | |
tree | c0f193ebcc5b6a89fffa44f81804be0d177a38f9 /doc/forum | |
parent | bffa900977c34d94e67957501d95227c64acf22a (diff) |
reformat, I forgot about anonyous pushing in this wiki
Diffstat (limited to 'doc/forum')
-rw-r--r-- | doc/forum/Doing_related_links_based_on_tags.mdwn | 41 |
1 files changed, 22 insertions, 19 deletions
diff --git a/doc/forum/Doing_related_links_based_on_tags.mdwn b/doc/forum/Doing_related_links_based_on_tags.mdwn index 3de801946..119267321 100644 --- a/doc/forum/Doing_related_links_based_on_tags.mdwn +++ b/doc/forum/Doing_related_links_based_on_tags.mdwn @@ -1,26 +1,29 @@ I've been recently using a template this -<pre> ----- -Related posts: + ---- + Related posts: -\[[!inline pages="blog/posts/* - and !blog/posts/*/* - and !Discussion - and !tagged(draft) - and <TMPL_VAR raw_tagged>" - archive="yes" - quick="yes" - show="5"]] -</pre> + [[!inline pages="blog/posts/* + and !blog/posts/*/* + and !Discussion + and !tagged(draft) + and <TMPL_VAR raw_tagged>" + archive="yes" + quick="yes" + show="5"]] -Which I then call by doing this at the end of my blog posts on my ikiwiki install +Which I then call by doing this at the end of my blog posts on my +ikiwiki install -<pre> -\[[!tag software linux]] -\[[!template id=related tagged="tagged(software) or tagged(linux)"]] -</pre> + [[!tag software linux]] + [[!template id=related tagged="tagged(software) or tagged(linux)"]] -It somewhat works, I was wondering if anyone else has tried to do something like the above to get "related posts" based on tags. The way that I have done it isn't very clever as it only links to the last 5 most recently posted items based on my parameters. Is it possible to "randomly" select a bunch of links from a set of user defined pagespecs? +It somewhat works, I was wondering if anyone else has tried to do +something like the above to get "related posts" based on tags. The way +that I have done it isn't very clever as it only links to the last 5 +most recently posted items based on my parameters. Is it possible to +"randomly" select a bunch of links from a set of user defined +pagespecs? -I know that the [[backlinks]] plugin exists for this sort of stuff (related links), it just lacks some user configuration options. +I know that the [[backlinks]] plugin exists for this sort of stuff +(related links), it just lacks some user configuration options. |