Foswiki Notes

A few notes on useful bits and pieces.

Page Titles

See Page Titles and Images

Site Setup

The left bar

The black bar on the left holds the logo (which is also a link to the home page) and the main menu.

The menu is sensitive to the page being displayed: it will expand subtopics if there are any defined. This part of the bar is defined by the page WebLeftBar (one per web) which normally just references a MENULIST defined by MainMenu (also one per web):

In the Main web and the Playpen web, the left bar also includes a menu of edit functions in smaller type. This is controlled by the template viewsidebar.mcc.tmpl

Some pages show a 'next event' box in the leftbar. This is controlled by setting ADDNEXTEVENT to Yes in the topic. The contents of the box are controlled by a form on the NextEventForm page, and are displayed by a search embedded in the WebLeftBar page.

Image Gallery Plugin

The new version of ImageGalleryPlugin is much better than the old, but it puts the images right against the top of the browser window. To fix this, added a new DIV of class igpTopSpace in lib/Foswiki/Plugins/ImageGalleryPlugin/Core.pm and gave it 40px of padding-top in the mcc/style.css file.

The behaviour of the browser back button is not ideal in galleries, but this looks hard to fix. Occasionally the image used in the main body of the image gallery becomes 'corrupted' either with a forced aspect ratio which is clearly wrong or sometimes by showing the 'wrong' previous version of the image. In this case it may be correct on the thumbnail and also on the full size 'original' image but wrong on the 'slideshow' gallery. To correct this you need to force an update of the cache by going to raw edit and ticking the 'force new revision' box right at the bottom left corner. [SM & JA, 3 Mar 2010 E&OE]

The order of image display can be set by putting numbers in the comment field: "12 - title of picture"

Stats

Commands for counting pictures:

locate www.maidenhead.cc |egrep '/Main/.*(jpg|JPG|jpeg|JPEG)$' | grep -v '/thumbs/' | grep -v OLD | wc
locate www.maidenhead.cc |egrep '/Main/.*(jpg|JPG|jpeg|JPEG)$' | grep -v '/thumbs/' | grep -v OLD | grep CompIm | wc

Commands for estimating number of active editors:

cat log2009* log20081* | egrep ' (save|attach)...Main'|sed -e 's/attach .*//' -e 's/save .*//' -e s/^.*Main\.// -e 's/ .*//' | sort | uniq -c |sort -n

URLs

21 Dec 2009: to get correct URLs in mail notify, removed :8000 from DefaultUrlHost - seems OK

-- AndrewFindlay - 05 Sep 2009


Add your comments here

You need a username and password to do this. Members of Maidenhead Camera Club should contact the webmaster or the club committee to get registered.



Topic attachments
I Attachment Action Size Date Who Comment
jpgjpg blank-header.jpg manage 1.8 K 10 Dec 2009 - 16:00 AndrewFindlay Blank Header
Topic revision: r1 - 27 Jul 2010 - 20:06:24 - AndrewFindlay
 
Copyright © 1999-2010 by the contributing authors.
Comments and administrative requests to: webmaster@maidenhead.cc
Please read the Important Information page