Guestbook now uses ListPages and _template

Guestbook now uses ListPages and _template

By gerdamigerdami on 11 Nov 2008 18:48, last edit by gerdamigerdami on 27 Jan 2009 18:12

The guestbook:, the blog: have been created a time the module ListPages and the "_template" did not exist.
The module Pages was used with a preview that let display an annoying "Back to the guestbook".
It is fixed, now.

Step1: ListPages

I replaced the module Pages by ListPages as shown below:

[[module NewPage category="Guestbook" button="Add an Entry to the GuestBook" template="template:guestbook"]]

[!---- [[module Pages category="Guestbook" order="dateCreatedDesc" preview="true"]]  ---]

[[module ListPages category="Guestbook" order="dateCreatedDesc" limit="99999"]]
++ %%linked_title%%
by %%author%% %%date|%O ago (%e %b %Y, %H:%M %Z)%%

%%content%%
----
[[/module]]

Step 2: _template

I created guestbook:_template with the following content:

by %%author%% %%date|%O ago (%e %b %Y, %H:%M %Z)%%

%%content%%
----
**Back to the [[[Guestbook]]]**

Step 3: template:guestbook

I cleaned the original template:guestbook (used at page creation in category guestbook).
Currently, it is empty! But it is not a problem, we can keep it just like that.

Step 4: Cleaning of existing posts

The bad part of the work! But since there were not so many posts…
I removed the manual user signatures and the "Back to the Guestbook" sentence.

Step 5: Done

Facebook


Tags: listpages template

Related Community Blog Posts

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

Rate it up ?

rating: 0+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 bootstrap 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 genealogy 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 theme 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

Guestbook now uses ListPages and _template
Rating: þ{rating}þ (11 Nov 2008 18:48)

Guestbook now uses ListPages and _template
Rating: þ{rating}þ (11 Nov 2008 18:48)

Guestbook now uses ListPages and _template
Rating: þ{rating}þ (11 Nov 2008 18:48)


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.