publishwww
The publishwww command invokes the internet publisher. It accepts
the following options:
- includecase: Includes cruelty case animals
- includereserved: Includes reserved animals
- includefosters: Includes fostered animals
- includewithoutimage: Includes animals without an image
- excludeunder=<weeks>: Excludes animals under <weeks> age from the
set
- style=<style>: Looks for a directory called <style> in the DBFS /internet
folder and uses the pib/pif/pih.dat files in there instead. If you
use ``.'' for the style name (the default), it uses pib/pif/pih.dat
in the /internet folder. From v2.2.0 the styles available are ``sm.com''
or ``plain'' - the ``.'' style will not work from ASM v2.2.0
- animalsperpage=<number>: The number of animals to display per HTML
page generated
- uploaddirectly: Upload directly to your webspace
- uploadall: Upload all of the animal's images in the format sheltercode-X.jpg
- noimportfile: For publishers supporting a separate import config/description,
disables uploading of it so it can be uploaded separately (only applies
to adoptapet.com at present)
- forcereupload: Force reuploading of animal images
- generatejavascriptdb: Generate the JavaScript database - required
for the search page
- thumbnails: Generate 70 pixel thumbnail images for all animal images
with a tn_ prefix
- ftproot=<root>: Overrides the system set FTP Root Directory from the
publisher settings. This allows you to publish animals to different
areas of your FTP space with different critera
- ftphost=<host>: Overrides the system set FTP Host
- ftpuser=<user>: Overrides the system set FTP user
- ftppass=<password>: Overrides the system set FTP password
- scaleimages=<scale>: Sets image scaling from the following values.
1 = No Scaling, 2 = 320x200, 3 = 640x480, 4 = 800x600, 5 = 1024x768,
6 = 300x300, 7 = 95x95
- order=<order>: Sets the ordering of published animals. 0 = longest
on shelter first, 1 = newest first, 2 = alphabetical by name
- limit=<limit>: Sets how many animals to output, 0 = all matching animals.
- extension=<extension>: Sets the file extension to use for pages. The
default is html, but if you have a webserver that requires PHP or
another scripting language in the header block, specify a new extension
with this option.
- includelocations=<locations>: Includes animals in the locations specified.
Note that you specify locations as a name or a valid part of the name.
If you need to use spaces, substitute them for the percentage symbol
(%).
Example:
-
- asmcmd publishwww includecase includereserved excludeunder=8
animalsperpage=10 uploaddirectly generatejavascriptdb scaleimages=2
style=sm.com includelocations=Top%Block,Bottom%Block
Note that if you omit any of the values, they are defaulted to the
same values you see on the publish screen normally. Omitting the ``includelocations''
option will cause ASM to assume all locations.
Important Note: DOS does not allow the equals sign to appear
in an argument (since it is the DOS variable delimiter). You should
substitute the colon ``:'' for the equals sign on Windows platforms.
Eg:
-
- asmcmd publishwww excludeunder:8 scaleimages:2 style:sm.com
includecase includereserved includewithoutimage
http://sheltermanager.sf.net