Documentation
Add-ons
You can enhance your Pier installation through add-ons. This page describes them.
- 1. Blog
- 2. Randomizer
- 3. Editor enhancement
- 4. Google
- 5. Links
- 6. ShoutPier
- 7. SyntaxHighlighter
- 8. CiteZen
- 9. Sitemap
- 10. Gallery
Blog
A generic blog extension supporting multiple blogs, RSS feeds, posts with embedded media, public comments, etc.
| Repository | http://source.lukas-renggli.ch/pier |
|---|---|
| Included in Pier image | yes |
Randomizer
Randomizes the display of specific parts in the page. Useful to display images randomly.
| Repository | http://source.lukas-renggli.ch/pieraddons |
|---|---|
| Included in Pier image | yes |
To use it, add a new component to your page and choose PRRandomizer. Add new children to this component, they will be chose randomly. You can change the Keep setting if the same child must be used during the whole session.
Editor enhancement
| Repository | http://source.lukas-renggli.ch/pieraddons |
|---|---|
| Included in Pier image | yes |
Displays a tool-bar on top of wiki text areas.
| Repository | http://source.lukas-renggli.ch/pieraddons |
|---|---|
| Included in Pier image | yes |
Adds Google analytics and webmaster tools to your pages.
Links
Insert youtube, slideshare, isbn and vimo elements into your pages.
| Repository | http://source.lukas-renggli.ch/pieraddons |
|---|---|
| Included in Pier image | no |
Here is the syntax for each kind of link:
| Type | Syntax | Result | Comment | |||
|---|---|---|---|---|---|---|
| Doi | *doi:10.1145/800017.800542* | DOI 10.1145/800017.800542 | ||||
| Google search | *google:pier* | Google (pier) | ||||
| Isbn | *isbn:1590594916* | ISBN 1590594916 | ||||
| RFC | *rfc:1896* | RFC 1896 | ||||
| Vimeo | *vimeo:2007269* | (embedded video) | ||||
| Wikipedia | *wikipedia:Rene Magritte* | Wikipedia (Rene Magritte) | ||||
| Youtube | ==+youtube:TtoGwy3RPGI | fs=1 | border=1 | color1=0xff6633+== | (embedded video) | help |
ShoutPier
Syntax highlights Smalltalk expressions and methods. The color scheme can be configured using a CSS style-sheet.
| Repository | http://source.lukas-renggli.ch/pieraddons |
|---|---|
| Included in Pier image | yes |
| Dependency | Shout, the Squeak syntax highlighter |
To use it, you have to add the SPHighlightedStyle library to your pier application (go to the Seaside configuration page for Pier and select the library from the list). Then, start each line of Smalltalk code with ==.
SyntaxHighlighter
This is a Pier wrapper for SyntaxHighlighter, a multi-language code highlighter written in Javascript by Alex Gorbatchev.
The Javascript code is under the LGPL 3 license. If you like it, please consider donating to his author.
| Repository | http://source.lukas-renggli.ch/pieraddons |
|---|---|
| Included in Pier image | no |
To use it:
- you first need to add the PRSyntaxHighlighterFiles library to your Pier application (go to the Seaside configuration page for Pier and select the library from the list);
- where you want to have highlighted code in a Pier page, embed a link (using the
+sampleCode1+syntax); - save your page and click on the link;
- select the
Highlighted codetype, give a name and save; - there, you can enter your code and select the language and the options.
- press save again.
You should now be able to see your highlighted code.
Another solution is to write your code directly in the page, i.e., without needing an additional structure. The syntax is:
=sh brush:java; gutter:false; toolbar:false
=sh public static void main(String [] args) {
=sh "123" /* abc */ sdfsdf // dfsfsdf
=sh }The first line is used to configure the code section. The parameters are the same as the ones found when you add a Highlighted code structure. They are described on the SyntaxHighlighter website.
If you want to add your own syntax, you first have to create a Javascript file. Take a look at the examples.
Once you have your js file (named like the others: shBrushYourLanguage.js), upload it using the Seaside configuration web page:
- go to
/seaside/config; - click on the
configurelink in thefilesline; - select the
configureofPRSyntaxHighlighterFiles; - browse to your file and add it.
Your language should now be available in the list of languages you can use.
CiteZen
Offers bib parsing and rendering capabilities
| Repository | http://www.squeaksource.com/Citezen |
|---|---|
| Included in Pier image | no |
| Dependency | SmaCC, Rio, SplitJoin |
To install this add-on, look at the wiki page on the website.
Once installed, use the ’Add’ link and add a ’Bib File’ structure to your installation. Enter the location of a BibTeX file and validate.
Looking at the new structure, you have a search box to look for entries in your bibliography. You can link or embed part of the bibliography using the following properties in the value link:
| Property name | Values | Comment | |
|---|---|---|---|
| query | any string | filter the bibliography with the specified string | |
| sortBy | category,year or author | Change the way found entried are displayed | |
| caseSensitive | true, false | Queries are case sensitive | |
| display | summary, abstract, bibtex | How to display the entries | |
| hideControls | true, false | Hide display and sort controls |
Here is an example:
Look at my *list of publications>Publications|query=Damien Pollet|sortBy=category|hideControls=true*
Sitemap
| Repository | http://source.lukas-renggli.ch/pieraddons |
|---|---|
| Included in Pier image | no |
| Dependency | XML-Parser http://www.squeaksource.com/XMLSupport/ |
Gallery
Pier-Gallery is a picture gallery with the following features:
- import pictures simply by uploading a zip
- create a gallery, and point to an existing directory on your server to fill it
- square rendering of thumbnails
- thumbnail creation and image resize is automatic and modifiable any time
- files in a gallery directory that are not images are skipped
- when you are logged, simply click on a thumbnail to go to a picture-specific page, where you can do small modifications (hide/show the image, rotate it)
- create a page with Gallery-Randomizer component embedded, and it will pick an image randomly from your galleries
| Repository | http://source.lukas-renggli.ch/pieraddons |
|---|---|
| Included in Pier image | no |
| Dependency | Rio http://www.squeaksource.com/Rio |
Note that Pier-Gallery depends on Rio, you need to install it first.
Installer ss project: 'Rio'; install: 'Rio-Kernel'; install: 'Rio-Grande'.