Brad Fitzpatrick (brad) wrote in fotobilder,
Brad Fitzpatrick
brad
fotobilder

Template Images ... working.

http://www.picpix.com/brad/

See the image there from last post? It matches the color of the text.

An S2 layout or theme layer just needs to define a property:

property string home_image { noui = 1; }
set home_image = "http://www.picpix.com/brad/pic/00033f2e|50|50|fgcolor|fgcolor|fgcolor|fgcolor";

And then in its code:

var Picture home;
$home = palimg_create($*home_image);
$home->print();

Note that the first argument in a paletted image spec can be either a URL (to your own pic, or to a remote picpix server), or a named system entity.

I have discussed named entities yet.... in a nutshell: users will be able to define URLs for any object... picture page, photo, gallery, etc..

When you run update-db.pl, resources which redistributed layers use will be put in the database for user system, given a upicid, and have the unique resource name mapped to that... then the layers only refer to the resource name.... webserver cache mappings for system user... all is fast & low memory.

Anyway, I'm off to the beach for awhile.

Happy Hackin'!
Subscribe

  • 302: lj_dev

    In the interests of consolidating all FotoBilder development-related discussion, we're going to be closing down this community. The same…

  • Development stalled?

    Is the development of Fotobilder held? Stalled? I am asking because there is no activity on the community and there is no link to the Fotobilder…

  • (no subject)

    Does FotoBilder works with Apache2? I installed all the required modules on my debian sarge, and when I restart my apache server, it dies horribly…

  • Post a new comment

    Error

    Comments allowed for members only

    Anonymous comments are disabled in this journal

    default userpic
  • 7 comments