NextPage, PreviousPage

0 views
Skip to first unread message

Piotr Gabryjeluk

unread,
Apr 8, 2009, 9:23:27 AM4/8/09
to temporary wikidot dev-list
Hi there,

NextPage and PreviousPage modules are ready for testing!

In the simplest form they link to the next/previous page in the category
when sorted by date (newer/older):

[[module NextPage]]
next page: %%linked_title%%
[[/module]]

[[module PreviousPage]]
previous page: %%linked_title%%
[[/module]]

(this should work quite well with autonumbering as well -- as long as
you don't remove and then recreate pages in the middle of the category)

With by="title" pages are sorted by title! For example:

[[module PreviousPage by="title"]]
previous: %%linked_title%%
[[/module]]

(great for dictionaries, when you want to link to the next word in it).

The syntax of the "inside" of module is the same as ListPages, so you
can for example use the %%preview%% to include the preview of page. Well
you all know the power of ListPages syntax, so no need for examples.

Once tested these modules will be documented.

Used in a blog footer you'll probably like something like this:

[[div style="overflow: hidden"]]

[[div style="overflow: hidden; float: left; clear: left"]]
[[module PreviousPage]]
Previous post: %%linked_title%%
[[/module]]
[[/div]]

[[div style="overflow: hidden; float: right"]]
[[module NextPage]]
Next post: %%linked_title%%
[[/module]]
[[/div]]

[[/div]]

Looking forward to replies from You
Cheers

--
Piotr Gabryjeluk
Wikidot.com developer
http://piotr.gabryjeluk.pl/

Reply all
Reply to author
Forward
0 new messages