Re: MicroID: how to do it idiomatically?
Christian Stocker <[email protected]> Fri, 10 Nov 2006 07:47:42 +0100
| Newsgroups | gmane.comp.cms.bitflux.general |
|---|---|
| Organization | Bitflux GmbH |
| Message-ID | <[email protected]> |
Hi Sorry for not answering sooner, we're very busy currently. On 7.11.2006 23:39 Uhr, Adam Lindsay wrote: > Hi, > > The more I learn within Flux, the more I'm impressed, but the more I > confused I get as to the "right" way of doing things. > > I'm trying to insert a MicroID into my CMS (oh look--you've written a > function already) and was wondering how to do it the "right" way. > > For now, I've inserted it as a couple of lines within the <head> portion > of master.xsl: you could also use bx_helpers_uri::getRequestUri() instead of $requestUri, as that more or less just returns http(s)://$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'], so you can forget about the xsl:choose block > > The real question I have is: how do I programmatically get the email > address (of user #1 by default, I would presume)? There's no real way, IIRC. You have to write a helper function for that. > I guess the next question is, how does this get generalised for other > installations? Would it be worth a plugin? I'm not sure, if it's worth a plugin, there's not much more that 3 helper calls for that. AFAICS at least. > Should the computed path be > pre-charged (precomputed as a variable)? Is there an internal variable > that I'm not aware of that will give the appropriate URL for MicroID > purposes (no trailing slash or index.html)? See above :) chregu > > Thanks, > adam > -- christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich phone +41 44 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71 http://www.bitflux.ch | [email protected] | GPG 0x5CE1DECB -- bitflux-cms mailing list [email protected] http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms