Is this module based on normal Wikidot code? I like how the links are listed and would like to see the generating code if it's available and understandable. Same goes for the other modules. Backlinks, Pages, etc. are all using the same sort of code; maybe you could let us see it?
You can do some very powerful things with the ListPages module. I recommend that you read that page as that will likely allow you to do everything you want to do :)
Shane Smith ★ Website: Wikidot Development & Programming.
STE Wikidot Editor: Windows & Mac OS X. ★ Try it for free!.
I'm also on Twitter, follow me there! ;-)
Is this module based on normal Wikidot code?
No, it's a hard-coded module. We want eventually to be able to replace Backlinks and Pages with ListPages, but WantedPages will be a bit hard since it lists the missing pages.
Okay. I was asking because I like the layout and I was looking to a solution to this problem (eventually): I have category "B" pages (books, say) that link to several category "A" pages (authors). Now on each author's page, I want to list co-authors and the books they worked on together. Once Backlinks is integrated into ListPages, maybe this'll be possible. It's not urgent at all. Thanks for replying
Okay. I was asking because I like the layout and I was looking to a solution to this problem (eventually): I have category "B" pages (books, say) that link to several category "A" pages (authors). Now on each author's page, I want to list co-authors and the books they worked on together. Once Backlinks is integrated into ListPages, maybe this'll be possible. It's not urgent at all. Thanks for replying
This might be possible in some way.
How are you making the connection between book and author? Are you tagging the book pages with each author's name?
Shane Smith ★ Website: Wikidot Development & Programming.
STE Wikidot Editor: Windows & Mac OS X. ★ Try it for free!.
I'm also on Twitter, follow me there! ;-)
Thanks for replying. Each book has links to the author(s) in the first paragraph. If I could take the intersection of the backlinks for the current author "%%title_here%%" and any other author "%%title%%", then I could do something like…?
[[module ListPages category="author" separate="no" PrependLine="|| Coauthor || Book(s) ||"]]
[[if_backlinks_intersect category="book" %%title%% %%title_here%%]]
|| %%title%% || %%backlinks_intersection%% ||
[[/if_backlinks_intersect]]
[[/module]]
where %%backlinks_intersection%% is some space-separated list of books that link to both authors. And hopefully that would look something like the WantedPages (which is why I posted here initially).
Well, if you were to tag each book with the author's name (no spaces), then ensure that each page in the author category was named identically to the tags, you could do something like this on the book pages instead of having to manually add names to the first paragraph:
%%tags_linked|author:%%
That would mean that by clicking on any of the author's names, the user will be taken to that author's page.
Then, on the author's page you can simply do this:
[[module ListPages category="book" tags="%%page_unix_name%%" separate="no" prependLine="||~ Book ||~ Author(s) ||" ]]
|| %%title_linked%% || %%tags%% ||
[[/module]]
Therefore, backlinks aren't even needed! :)
Shane Smith ★ Website: Wikidot Development & Programming.
STE Wikidot Editor: Windows & Mac OS X. ★ Try it for free!.
I'm also on Twitter, follow me there! ;-)
Well, depending on what you were using tags for before… you could probably change that to use hidden tags only (starting with underscore), because doing it the way I suggested only needs one type of tags not both (e.g. normal tags)
Shane Smith ★ Website: Wikidot Development & Programming.
STE Wikidot Editor: Windows & Mac OS X. ★ Try it for free!.
I'm also on Twitter, follow me there! ;-)