New Modules Nextpage Previouspage

New Modules Nextpage Previouspage

By Helmut_pdorfHelmut_pdorf on 20 Apr 2009 07:32, last edit by leigerleiger on 14 Oct 2009 01:19

Copied from the Syntax Changes journal:

2009-04-016 NextPage / PreviousPage Modules a new feature for ALL users: (ticket 253) available are now Modules

This features are now documented in http://www.wikidot.com/doc:nextpreviouspage-module and open for ALL users of wikidot.
Please - have a try!
I copy the text from Gabrys post:

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/

In Action:

Previous Blog: Multi File Uploader

Next Blog: New Press Notices


Facebook


Tags: module nextpage previouspage

Related Community Blog Posts

The following posts have similar tags and may be related to this post.

Rate it up ?

rating: +5+x

Discuss

Add a New Comment

Share

Bookmark and Share

Community Blog feed-icon-14x14.png

Posts by date

Posts by tags

addthis admin admin_forum alexa animoto app appplication attributes autocomplete automatic autonumber autosave backwards badge banner birthday blog bloo bookmark browser bug bugs button calendar candidate category cell ceo changes chinese chrome cleanup code comment community convert count country csi css database data-forms delete deletion domain embed etension excel explorer favicon featured feature-request features file file-manager firefox fixing form forum free freemind front fun gallery gemeinschaft gerdami german glossary good google handbook header heading help helpon home homepage howto how-to html iframe images include infobox inline internet istorijska_biblioteka italian javascript job join joke link list listpages live localize mail manual mass-delete mass-edit mediawiki members membership membershipapply membershipbypassword michal microsoft mindmanager mindmap mindmeister module multi-file multilingual nested newpage news newspaper nextpage official open pagecalendar pagecalender pagepath pages %%page_unix_name%% permissions playground portuguese press previouspage private pro programming reshuffle rob row russian sandbox scheme scripting search search_engine services simplecal skins snippet social spam spanish squark styles successful syntax system table tag tags template templates themes thumbnail thumbnails toolbar town translate turkish tutorial tweet updated_at upload uri url user users variables video vote weneed who.is wiki wikidot wikipedia wish wishlist yaml

Posts by rating

New Modules Nextpage Previouspage
Rating: þ{rating}þ (20 Apr 2009 07:32)

New Modules Nextpage Previouspage
Rating: þ{rating}þ (20 Apr 2009 07:32)

New Modules Nextpage Previouspage
Rating: þ{rating}þ (20 Apr 2009 07:32)


Blogroll

{"module":"feed\/FeedModule","params":{"src":"http:\/\/michalf.me\/feed\/pages\/category\/blog\/t\/Michal+Frackowiak%27s+blog","limit":"1","module_body":"**[http:\/\/michalf.me Michal]:** \n%%linked_title%%\n[[size smaller]]%%date|%e %b %Y at %H:%M |agohover%%[[\/size]]"}}
{"module":"feed\/FeedModule","params":{"src":"http:\/\/quake.wikidot.com\/feed\/pages\/category\/dev\/t\/Piotr+Gabryjeluk+blog","limit":"1","module_body":"**[http:\/\/piotr.gabryjeluk.pl\/ Gabrys]:**\n%%linked_title%%\n[[size smaller]]%%date|%e %b %Y at %H:%M |agohover%%[[\/size]]"}}
{"module":"feed\/FeedModule","params":{"src":"http:\/\/squark.wikidot.com\/feed\/pages\/category\/blog\/t\/Squark%27s+Latest+Posts","limit":"1","module_body":"**[http:\/\/squark.wikidot.com\/ Squark]:**\n%%linked_title%%\n[[size smaller]]%%date|%e %b %Y at %H:%M |agohover%%[[\/size]]"}}

Admin dashboard

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.