This is the historical archive of the now-inactive 'grubstreet' list.
Discussion on OpenGuides development has now moved to OpenGuides-Dev. Discussion on The Open Guide to London now takes place on OpenGuides-London.

RE: [grubstreet] Layout, and issues therewith

[prev] [thread] [next] [lurker] [Date index for 2002/11/12]

From: Ivor Williams
Subject: RE: [grubstreet] Layout, and issues therewith
Date: 15:55 on 12 Nov 2002
On Tuesday, November 12, 2002 3:46 PM, Earle Martin 
[SMTP:grubstreet@xxxxxxxx.xxx] wrote:
> On Tue, Nov 12, 2002 at 02:56:21PM -0000, Ivor Williams wrote:
> > The code where the edit link is, is in sub GetFooterText. I suggest you try
> >
> > C&Ping this into your new bits of left column formatting.
>
> Oh, no no no my friend. It couldn't be that easy. Feel my pain:
>
> GetFooterText() calls upon GetMinimumFooter(), which in turn returns $q->
> endhtml
> (why *do* people bother with these cgi.pm methods instead of just printing
> the
> damn text themselves?). GetMinimumFooter() is called on in several other
> places, so I can't modify it. That means I have to copy most of
> GetFooterText() into a new sub. Now, GetFooterText() is normally called from
> within BrowsePage() with arguments $id and $goodRevision. $goodRevision is
> decided by a chunk of code at the top of BrowsePage() (that relies on
> GetParam()!), which means I have to take *that* and paste it into the top of
> GetGotoBar(), which is where I crudely hacked in the bit that opens the table
> for the structure and puts the toolbar links in the LHS column. And then....
>
I think the solution might be quite simply the following:

print &GetEditLink($id, T('Edit text of this page'));

where $id is the normalised page name.


hth

Ivor.


-- 
grubstreet mailing list
http://london.openguides.org/old-list-archives/