PeaceWorks WebTools
...a simple means for managing events calendars, news
pages, and lists of web links.
What are WebTools?
WebTools is a growing set of common dynamic website components. They allow you
to maintain lists of time or date-sensitive information on your website
without having to worry about uploading altered files, making the changes at
a specific time (events in the past disappear
as soon as they're no longer relevant), or learning how to write CSS/HTML code.
After logging in to the WebTools interface, you can add, edit, or delete any of
your event, link, or news records using a simple web form. Changes are live
immediately, updating your website without coding, uploading, or contacting your
website designer.
How Do I Use Them?
Within your website code, use standard "include" calls to include the
PeaceWorks WebTool URL of your choice. WebTools URLs are described below, with
examples to make things easy for you. An example in the PHP scripting language
would look like this:
include('http://webtools.peaceworks.ca/event.php?userid=8&orientation=horizontal&style=summary');
The administrative interface is available at
http://webtools.peaceworks.ca/admin.
Contact us to have an account set up.
What are the options for each of the tools?
Events
http://webtools.peaceworks.ca/event.php?userid=[your userid]&[parameters]
get=[upcoming|all|single] - Choose whether you want to see all events, or only
those that are yet to occur. If you choose a single event, you must specify the event parameter,
below. The default is upcoming.
orientation=[vertical|horizontal] - Choose whether you would like each
event to be listed vertically (in two columns; label and data) or horizontally
(in tabular form). The default is vertical.
style=[full|summary] - Choose how you would like
the event items displayed (the default is full):
- full - provides a full listing with all detail fields.
- summary - provides an abbreviated listing. The title links to a detail page.
headers=[0|1] - Choose whether or not you would like the headers displayed for each detail item. Default is 1.
newpage=[0|1] - If you chose a summary listing, this allows you to choose how the link opens. If newpage is '1', then the link will open in a new window.
backlink=[0|1] - Controls whether or not a 'back' link is provided on an event detail page. If 'newpage' is 1, then the 'back' link changes to a 'close window' link.
urlnewpage=[0|1] - If your event has an associated URL, this allows you to choose how the link opens. If urlnewpage is '1', then the link will open in a new window.
event=[eventid] - If you include the event parameter, you can choose to
see a specific event. The default (if the parameter is not provided) is to show
all events (subject to the get parameter, above.)
example: http://webtools.peaceworks.ca/event.php?userid=8&orientation=horizontal&style=summary -
shows all events for user 8 in a tabular summary format.
News
http://webtools.peaceworks.ca/news.php?userid=[your userid]&[parameters]
get=[all|single] - Choose whether you want to see all news items, or only
a single one. If you choose a single news item, you must specify the news parameter,
below. The default is upcoming.
orientation=[vertical|horizontal] - Choose whether you would like each
news item to be listed vertically (in two columns; label and data) or horizontally
(in tabular form). The default is vertical.
style=[full|summary|noheaders|noheadersummary] - Choose how you would like
the news items displayed (the default is full):
- full - provides a full listing with all detail fields.
- summary - provides an abbreviated listing. The title links to a detail page.
headers=[0|1] - Choose whether or not you would like the headers displayed for each detail item. Default is 1.
newpage=[0|1] - If you chose a summary listing, this allows you to choose how the link opens. If newpage is '1', then the link will open in a new window.
backlink=[0|1] - Controls whether or not a 'back' link is provided on a news detail page. If 'newpage' is 1, then the 'back' link changes to a 'close window' link.
urlnewpage=[0|1] - If your news item has an associated URL, this allows you to choose how the link opens. If urlnewpage is '1', then the link will open in a new window.
news=[newsid] - If you include the news parameter, you can choose to
see a specific item. The default (if the parameter is not provided) is to show
all news items (subject to the get parameter, above.)
example: http://webtools.peaceworks.ca/news.php?userid=2&orientation=vertical&style=noheadersummary -
shows all events for user 8 in a vertical summary format without headers.
Links
orientation=[vertical|horizontal] - Choose whether you would like each
link to be listed vertically (in two columns; label and data) or horizontally
(in tabular form). The default is vertical.
style=[full|summary|noheaders|noheadersummary] - Choose how you would like
the link items displayed (the default is full):
- full - provides a full listing with all detail fields.
- summary - provides an abbreviated listing. The title links to a detail page.
headers=[0|1] - Choose whether or not you would like the headers displayed for each detail item. Default is 1.
newpage=[0|1] - If you chose a summary listing, this allows you to choose how the link opens. If newpage is '1', then the link will open in a new window.
backlink=[0|1] - Controls whether or not a 'back' link is provided on a link detail page. If 'newpage' is 1, then the 'back' link changes to a 'close window' link.
example: http://webtools.peaceworks.ca/link.php?userid=2&orientation=vertical&style=noheaders -
shows all links for user 8 in a vertical complete format without headers.
Reviews
http://webtools.peaceworks.ca/review.php?userid=[your userid]&[parameters]
get=[all|single] - Choose whether you want to see all reviews, or only
a single review. If single is specified, you must provide the review parameter,
below. The default is all.
orientation=[vertical|horizontal] - Choose whether you would like each
review to be listed vertically (in two columns; label and data) or horizontally
(in tabular form). The default is vertical.
style=[full|summary|noheaders|noheadersummary] - Choose how you would like
the review items displayed (the default is full):
- full - provides a full listing with all detail fields.
- summary - provides an abbreviated listing. The title links to a detail page.
headers=[0|1] - Choose whether or not you would like the headers displayed for each detail item. Default is 1.
newpage=[0|1] - If you chose a summary listing, this allows you to choose how the link opens. If newpage is '1', then the link will open in a new window.
backlink=[0|1] - Controls whether or not a 'back' link is provided on a review detail page. If 'newpage' is 1, then the 'back' link changes to a 'close window' link.
urlnewpage=[0|1] - If your review has an associated URL, this allows you to choose how the link opens. If urlnewpage is '1', then the link will open in a new window.
review=[reviewid] - If you include the review parameter, you can choose to
see a specific review. The default (if the parameter is not provided) is to show
all reviews (subject to the get parameter, above.)
example: http://webtools.peaceworks.ca/review.php?userid=8&orientation=horizontal&style=summary -
shows all reviews for user 8 in a tabular summary format.
