[horde] Add block to layout
Pablo Alsina
palsina at gmail.com
Mon May 2 13:35:17 PDT 2005
On 5/2/05, Jan Schneider <jan at horde.org> wrote:
> > As I didn't find documentation, I poked around and found that I had to
> > add a script to the /lib/Block dir. There is now a web2sms.php there,
> > defining the block name, and extending the Horde_Block class, with a
> > title and a contect method.
>
> Did you define the block name with the global $block_name variable? Did
> you logout after adding the block?
Ok, its working now. It seems I missed the logout after adding the
block (thought I had done that, sorry). Thanks!.
Now, how should I build the URL to my modules directory? I'm using an
absolute path, not very elegant. And what should the CGI return in
order to have its result displayed in the "standard" layout? Right now
it returns a String, which replaces my whole layout, not just the
Block where my app. resides.
Another thing. Even if its fairly simple, I would like to add some
translations to its text strings. I have a ./po directory on my module
directory, but I dont know how to populate it.
Maybe I should read some guide about how to develop a Horde app. I
searched for it, found 2 papers with examples which I read and used,
but no real "Guide" with documentation of available functions. If
anyone have pointers, I will apreciate.
Thanks,
Pablo
PD: If there is some page with "user contributed modules", I will be
happy to upload mine once its finished. It can be seen as a generic
HTTP form post somehere module. Veeery simple :-)
More information about the horde
mailing list