X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/blobdiff_plain/1c6182292d9dd751635c022b5a9d7a789345903b..ab2d21970f8b291c674f9f656c8ef7c7611879a7:/doc/forum/Doing_related_links_based_on_tags.mdwn diff --git a/doc/forum/Doing_related_links_based_on_tags.mdwn b/doc/forum/Doing_related_links_based_on_tags.mdwn index 119267321..9f6a1b937 100644 --- a/doc/forum/Doing_related_links_based_on_tags.mdwn +++ b/doc/forum/Doing_related_links_based_on_tags.mdwn @@ -3,7 +3,7 @@ I've been recently using a template this ---- Related posts: - [[!inline pages="blog/posts/* + \[[!inline pages="blog/posts/* and !blog/posts/*/* and !Discussion and !tagged(draft) @@ -15,8 +15,8 @@ I've been recently using a template this Which I then call by doing this at the end of my blog posts on my ikiwiki install - [[!tag software linux]] - [[!template id=related tagged="tagged(software) or tagged(linux)"]] + \[[!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 @@ -27,3 +27,5 @@ pagespecs? I know that the [[backlinks]] plugin exists for this sort of stuff (related links), it just lacks some user configuration options. + +> I guess what you need is an extension to [[ikiwiki/pagespec/sorting]] to support "random" as a sort method. Remember though, that the chosen few would only change when the page was regenerated, not on every page view. -- [[Jon]]