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: Earle Martin
Subject: Re: [grubstreet] Layout, and issues therewith
Date: 15:46 on 12 Nov 2002
Frames? FRAMES?!

Who do you think I am ;)
 
> 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....

Sorry. As Kake commented to me on IRC, 'hacking UseMod will make you hate
Perl'.

> You might be better leaving the edit link in at the bottom of the page as
> well.

Yes.


-- 
ermine altar

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