Imageobject
"Roger Fischer" <[email protected]>
| Newsgroups | gmane.comp.cms.bitflux.general.german |
|---|---|
| Message-ID | <[email protected]> |
Imageobject
===========
Imageobject ist ein Subobject von Mediaobject. Im Mediaobject werden die
Metadaten fürs Imageobject abgespeichert. Es ist möglich mehrere
Imageobjects pro Mediaobject zu haben, z.B. wenn das gleiche Bild in
verschiedenen Auflösungen und Grössen vorhanden ist.
Änderungen am Imageobject pro Projekt
=====================================
1) Ordner für Upload von Bildern bereitstellen
$PROJECT_DIR/www/files/images
Für dieses Directory muss man Schreibrechte vergeben.
2) Anpassen des Pfads im Imageobject config.xml:
<bxco:fields table="Imageobject"
uploaddir="/home/clients/nbwz/www/files/images/"
downloaddir="/files/images/">
$PROJECT_DIR/www/admin/form/Imageobject/config.xml
--------------------------------------------------
<?xml version="1.0"?>
<bxco:config xmlns:bxco="http://bitflux.org/config/1.0">
<bxco:fields table="Imageobject"
uploaddir="/home/clients/nbwz/www/files/images/"
downloaddir="/files/images/">
<bxco:field name="lang" type="text" alternativeDescr="LANG"
descr="Language"/>
<bxco:field name="imagedata_fileref" type="file" subtype="image"
alternativeDescr="IMAGEDATA_FILEREF" descr="Name of File">
<bxco:imagefields width="imagedata_width"
height="imagedata_height" format="imagedata_format"/>
</bxco:field>
<bxco:field name="imagedata_entityref" type="text"
alternativeDescr="IMAGEDATA_ENTITYREF" descr="Name of Entity"/>
<bxco:field name="imagedata_format" type="imageformats"
alternativeDescr="IMAGEDATA_FORMAT" descr=" Format"/>
<bxco:field name="imagedata_srccredit" type="text"
alternativeDescr="IMAGEDATA_SRCCREDIT" descr="Source Credit"/>
<bxco:field name="imagedata_width" type="int"
alternativeDescr="IMAGEDATA_WIDTH" descr="Width"/>
<bxco:field name="imagedata_height" type="int"
alternativeDescr="IMAGEDATA_HEIGHT" descr="Height"/>
<bxco:field name="foreignmediaobjectid" type="foreign" descr="Mediaobject"
defaultXpath="default/parentid" >
<bxco:foreign table="Mediaobject"
field="objectinfo_title"
orderby="objectinfo_title"
descr="Mediaobject Title"/>
</bxco:field>
<bxco:field name="created" alternativeDescr="CREATED" descr="Created"
type="fixed" subtype="datetime">
<bxco:onnew default="sql:now()" />
</bxco:field>
<bxco:field name="createdby" alternativeDescr="CREATEDBY" descr="Created
by" type="fixed" >
<bxco:onnew defaultXpath="auth/username" />
</bxco:field >
<bxco:field name="changed" alternativeDescr="CHANGED" descr="Changed"
type="fixed" subtype="datetime">
<bxco:onnew default="sql:now()" />
<bxco:onchange default="sql:now()" />
</bxco:field>
<bxco:field name="changedby" alternativeDescr="CHANGEDBY" descr="Changed
by" type="fixed">
<bxco:onnew defaultXpath="auth/username" />
<bxco:onchange defaultXpath="auth/username" />
</bxco:field>
</bxco:fields>
<bxco:chooser field="imagedata_fileref" orderby="imagedata_fileref"
descr="Choose Imageobject"/>
<bxco:create>
<bxco:table name="Mediaobject2Subobject" hide="yes">
<bxco:field name="foreignmediaobjectid"
value="this:Mediaobject2Subobject:Value" notempty="1"/>
<bxco:field name="objectname" value="Imageobject"/>
<bxco:field name="foreignsubobjectid" value="this:ID"
notempty="1"/>
</bxco:table>
</bxco:create>
</bxco:config>
--
roger fischer | bitflux GmbH | schöneggstrasse 5 | ch-8004 zürich
tel +41 1 240 56 72 | mobil +41 78 607 75 06 | fax +41 1 240 56 71
http://www.bitflux.ch | [email protected]
OSCOM - Open Source Content Management
http://www.oscom.org