Skip to content
This repository was archived by the owner on Jul 25, 2022. It is now read-only.

Application Architecture

ThePeach edited this page Jan 22, 2011 · 4 revisions

Application Architecture

This is a draft

Version alpha

In version Alpha, MAG was organized in the following way: The main configuration was kept into /settings/config.xml: <mag> <settings> <title>MAG - Multimedia Ajax Gallery by The Peach</title> <themes used="default"> <theme name="default" aka="Default Theme" version="1.0"/> </themes> <views> <view name="default">Thumbnails listing and a small preview area</view> <view name="preview">Big preview with a small set of thumbnails</view> <view name="slideshow">Big preview in slideshow mode (thumbs hidden)</view> </views> </settings> <users> <user id="0"> <login>The Peach</login> <password hash="md5">blah.blah.</password> </user> </users> <galleries> <gallery id="0" pos='0' src="gallery-0.xml"> <title>Default Gallery</title> <directory src="gallery/"/> <view>default</view> <created>2009-05-24</created> </gallery> </galleries> </mag>

Each gallery could have its own position, and reside wherever it wanted (in this situation it would have been into /gallery/) The content of the gallery could look like: /gallery/ | +-- gallery-0.xml +-- ...(various media files) +-- thumbs | +-- ...(thumbnails of the media files)

The content of gallery-0.xml describes all the images contained with several additional attributes: <gallery> <image src="LoRes_0020.jpg"> <title>Prova 4</title> <datetime>2009-05-02</datetime> <info>Reggio Emilia</info> <comments></comments> </image> <image src="..."> ... </image> </gallery> The name of the thumbnail was image_filename"-thumb.jpg"

Clone this wiki locally