Diff: Help/PhotoAlbumPlugin

Differences between current version and predecessor to the previous major change of Help/PhotoAlbumPlugin.

Other diffs: Previous Revision, Previous Author

Newer page: version 5 Last edited on October 14, 2015 11:47 am by PhilHollenback
Older page: version 4 Last edited on February 23, 2012 2:52 pm by PhilHollenback Revert
@@ -17,83 +17,114 @@
 }}} 
  
 == Arguments == 
  
-_ Only the ='src'= parameter is required._  
+// Only the ='src'= parameter is required.//  
  
-*src*:  
- Url or local path to a CSV textfile which separates filename and  
- description of each photo. Photos listed in the text file have to be in same  
- directory as the file. Descriptions are optional.  
- If the the local path points to a directory, is relative from PHPWIKI_DIR,  
- and the main script is in PHPWIKI_DIR, weblocation must not be given, and  
- all pictures from this directory are displayed
+{| class="bordered"  
+|-  
+! Argument  
+! Description  
+! Default value  
+|-  
+| * *src**  
+|  
+Url or local path to a CSV textfile which separates filename and  
+description of each photo. Photos listed in the text file have to be in same  
+directory as the file. Descriptions are optional. 
  
-*url*:  
- defines the the webpath to the srcdir directory (formerly called weblocation) 
+If the the local path points to a directory, is relative from PHPWIKI_DIR,  
+and the main script is in PHPWIKI_DIR, weblocation must not be given, and  
+all pictures from this directory are displayed.  
+|  
+|-  
+| * *url**  
+| Defines the the webpath to the srcdir directory (formerly called weblocation)  
+|  
+|-  
+| **mode**  
+|  
+Specifies how the images are arranged.  
+* "normal" - Normal table which shows photos full-size  
+* "thumbs" - WinXP thumbnail style  
+* "tiles" - WinXP tiles style  
+* "list" - WinXP list style  
+* "slide" - slideshow mode, needs Javascript on client  
+|  
+|-  
+| **showdesc**  
+|  
+* "none" - No descriptions next to photos  
+* "name" - Only filename shown  
+* "desc" - Only description (from textfile) shown  
+* "both" - If no description found, then filename will be used  
+|  
+|-  
+| **link**  
+|  
+true or false  
  
-* mode*:  
- Specifies how the images are arranged
+If true, each image will be hyperlinked to a page where the single  
+photo will be shown full-size. Only works when mode != 'normal'  
+|  
+|-  
+| **align* *  
+| center, right or left  
+| center  
+|-  
+| **desc**  
+| Display any descriptions given in the text file  
+| true  
+|-  
+| **sort**  
+| Sort images by file name  
+| By default the order in the text file is followed  
+|-  
+| **bgcolor**  
+| cell bgcolor  
+| #eae8e8 (lightgrey)  
+|-  
+| **hlcolor**  
+| highlight color  
+| #c0c0ff (lightblue)  
+|-  
+| **height**, **width**  
+|  
+Height and width are calculated compared to original metrics  
+retrieved by [php-function:getimagesize] and can be absolute (50px)  
+or a percentage (e .g. "50%").  
+|  
+|-  
+| **attrib**  
+|  
+attrib arg allows multiple attributes: attrib=sort,nowrap,alt  
+'sort' sorts alphabetically, 'nowrap' for cells, 'alt' to use  
+descs instead of filenames in image ALT-tags  
+|  
+|-  
+| **cellwidth**  
+|  
+cell (auto|equal|image|75|100%)  
  
- * "normal" - Normal table which shows photos full-size  
- * "thumbs" - WinXP thumbnail style  
- * "tiles" - WinXP tiles style  
- * "list" - WinXP list style  
- * "slide" - slideshow mode, needs javascript on client  
-  
-*showdesc*:  
- "none" - No descriptions next to photos %%%  
- "name" - Only filename shown %%%  
- "desc" - Only description (from textfile) shown %%%  
- "both" - If no description found, then filename will be used %%%  
-  
-*link*:  
- true or false  
- If true, each image will be hyperlinked to a page where the single  
- photo will be shown full-size. Only works when mode != 'normal'  
-  
-*align*:  
- center|right|left. Default is ='center'=.  
-  
-*desc*:  
- Display any descriptions given in the text file. Default is true.  
-  
-*sort*:  
- Sort images by file name. By default the order in the text file is  
- followed.  
-  
-*bgcolor*:  
- Default: #eae8e8 cell bgcolor (lightgrey)  
-  
-*hlcolor*:  
- Default: #c0c0ff highlight color (lightblue)  
-  
-*height*, *width*:  
- Height and width are calculated compared to original metrics  
- retrieved by [php-function:getimagesize] and can be absolute (50px)  
- or a percentage (e.g. "50%").  
-  
-*attrib*:  
- attrib arg allows multiple attributes: attrib=sort,nowrap,alt  
- 'sort' sorts alphabetically, 'nowrap' for cells, 'alt' to use  
- descs instead of filenames in image ALT-tags  
-  
-*cellwidth*:  
- cell (auto|equal|image|75|100%)  
-  
- Width of cells in table. Either absolute value in pixels, HTML  
- style percentage, "auto" (no special action), "equal" (where  
- all columns are equally sized) or "image" (take height and  
- width of the photo in that cell).  
-  
-*tablewidth*: (Optional)  
- table (75|100%)  
-  
-*p*: (Optional)  
- "displaythissinglephoto.jpg" only  
-  
-*h*: (Optional)  
- "highlightcolorofthisphoto.jpg" only 
+Width of cells in table. Either absolute value in pixels, HTML  
+style percentage, "auto" (no special action), "equal" (where  
+all columns are equally sized) or "image" (take height and  
+width of the photo in that cell).  
+|  
+|-  
+| * *tablewidth**  
+|  
+table (75|100%)  
+|  
+|-  
+| * *p**  
+| "displaythissinglephoto.jpg" only  
+|  
+|-  
+| * *h**  
+| "highlightcolorofthisphoto.jpg" only  
+|  
+|}  
  
 == Examples == 
  
 === Text file === 
@@ -106,27 +137,26 @@
 christmas.gif; Merry Christmas! 
 }}} 
  
 === Sample Albums === 
+  
 local dir: 
-<<PhotoAlbum  
- src="themes/Hawaiian/images/pictures/"  
->>  
-or via external url:  
 {{{ 
-<<PhotoAlbum  
- src="http://phpwiki.sourceforge.net/demo/themes/Hawaiian/images/pictures/PhotoAlbum.csv"  
- >> 
+<<PhotoAlbum src="themes/Hawaiian/images/pictures/" >>  
+}}}  
+or via external URL:  
+{{{  
+<<PhotoAlbum src="http://phpwiki.sourceforge.net/demo/themes/Hawaiian/images/pictures/PhotoAlbum.csv" >> 
 }}} 
  
-[ /Slides ] 
+[ [/Slides]
  
 == Authors == 
  
-* [Ted Vinke| mailto:[email protected]] Original author  
-* [Reini Urban|PhpWiki:ReiniUrban ] local fs  
-* [ Thomas Harding|PhpWiki :ThomasHarding] slides and thumbs 
+* [[ mailto:[email protected]|Ted Vinke ]]: original author  
+* [[Help: Reini Urban|Reini Urban ]]: local fs  
+* Thomas Harding: slides and thumbs 
  
 <noinclude> 
 ---- 
 [[PhpWikiDocumentation]] [[CategoryWikiPlugin]] 
 </noinclude> 

current version

The PhotoAlbum plugin makes an 'album' by displaying a set of photos listed in a text file with optional descriptions.

Usage

<<PhotoAlbum
         src=http://server/textfile
         mode=[column|row]
         align=[center|left|right]
         desc=true
         sort=false
         height=100%
         width=100%
         weblocation=>false
>>

Arguments

Only the ='src'= parameter is required.

Argument

Description

Default value

src

Url or local path to a CSV textfile which separates filename and description of each photo. Photos listed in the text file have to be in same directory as the file. Descriptions are optional.

If the the local path points to a directory, is relative from PHPWIKI_DIR, and the main script is in PHPWIKI_DIR, weblocation must not be given, and all pictures from this directory are displayed.

url

Defines the the webpath to the srcdir directory (formerly called weblocation)

mode

Specifies how the images are arranged.

  • "normal" - Normal table which shows photos full-size
  • "thumbs" - WinXP thumbnail style
  • "tiles" - WinXP tiles style
  • "list" - WinXP list style
  • "slide" - slideshow mode, needs Javascript on client

showdesc

  • "none" - No descriptions next to photos
  • "name" - Only filename shown
  • "desc" - Only description (from textfile) shown
  • "both" - If no description found, then filename will be used

link

true or false

If true, each image will be hyperlinked to a page where the single photo will be shown full-size. Only works when mode != 'normal'

align

center, right or left

center

desc

Display any descriptions given in the text file

true

sort

Sort images by file name

By default the order in the text file is followed

bgcolor

cell bgcolor

#eae8e8 (lightgrey)

hlcolor

highlight color

#c0c0ff (lightblue)

height, width

Height and width are calculated compared to original metrics retrieved by php-function:getimagesize and can be absolute (50px) or a percentage (e.g. "50%").

attrib

attrib arg allows multiple attributes: attrib=sort,nowrap,alt 'sort' sorts alphabetically, 'nowrap' for cells, 'alt' to use descs instead of filenames in image ALT-tags

cellwidth

cell (auto|equal|image|75|100%)

Width of cells in table. Either absolute value in pixels, HTML style percentage, "auto" (no special action), "equal" (where all columns are equally sized) or "image" (take height and width of the photo in that cell).

tablewidth

table (75|100%)

p

"displaythissinglephoto.jpg" only

h

"highlightcolorofthisphoto.jpg" only

Examples

Text file

Possible content of a valid text file:

photo-01.jpg; My girlfriend and I
photo-02.jpg
christmas.gif; Merry Christmas!

Sample Albums

local dir:

<<PhotoAlbum src="themes/Hawaiian/images/pictures/" >>

or via external URL:

<<PhotoAlbum src="http://phpwiki.sourceforge.net/demo/themes/Hawaiian/images/pictures/PhotoAlbum.csv" >>

/Slides

Authors



Our Founder
ToolboxClick to hide/show