|
Cookbook /
TinyWebGallerySummary: Integration in PmWiki of the refined gallery TinyWebGallery
Version: 26 Feb. 2006 - updated this page (config) 18 Apr. 2006
Status: Stable
Prerequisites: pmwiki-2
Maintainer: PRZ
Categories: Images
Votes:
QuestionHow to incorporate in pmwiki the gallery TinyWebGallery Answer1/ Have a look on the TinyWebGallery possibilities and download it. 2/ Install the gallery in a directory named 'twg' (lowercase, please), located in the root of your public html directory. 3/ To configure this gallery copy the 4/ In your pmwiki config.php file, write the following lines # Markup to insert the TinyWebGallery
Markup('twg', '<block', '/\\(:twg\\s?(.*?):\\)/ei',
"Keep('<iframe src=\'/twg/index.php?twg_album=$1\' frameborder=\'0\'
width=\'100%\' height=\'722\' rel=\'nofollow\'></iframe>')");
Note: set the 'Keep' function on a unique line, it have been sliced here for presentation only. 5/ In the page where you want to display a gallery write the line (:twg Gallery:) Where the 'Gallery' is the name of the directory located in /twg/pictures/ which contains the photos to be displayed. if you don't set any parameter to the directive, say (:twg:) all galleries will be proposed NotesThe parameter height=722 is adapted to the default configuration of the TinyWebGallery,
Since pmwiki version 2.1, there is trouble with directory names which are wikiwords (because wikiwords are set between (:twg Machines/BigCN:)
should became (:twg Machines/Bigcn:)
ReleasesComments
-jlv- 17 november 2005
-twg- 12 december 2005 Thank-you so much -- that did the trick! Cari, 19 April 2006. There is a debugging file defined in the default twg
See AlsoContributorsEdit:
Für a W3C confirm installation of a TinyWebGallery into PmWiki use the following markup: 4/ In your pmwiki config.php file, write the following lines # Markup to insert the TinyWebGallery
Markup('twg', '<block', '/\\(:twg\\s?(.*?):\\)/ei',
"Keep('<iframe src=\'/twg/index.php?twg_album=$1\' frameborder=\'0\'
width=\'100%\' height=\'722\'></iframe>')");
Category: Images
|