FotobogenDocumentation

Customization

A Fotobogen site is yours: your name, your words, your look, at your address. This page lists everything that can be changed, where it is, and how.

Where things are changed

There are three places, and each kind of setting lives in exactly one of them.

PlaceWhat is set thereWho can change itTakes effect
The admin, at /adminEverything about the site: its name, words, look, photos, and what search engines are toldYou, logged in, from any browserAt once, on the next page view
Folders in dataSkins and modules you addWhoever can put files on the serverAfter a restart
.env on the serverHow the app runs: port, address, data folder, upload limitsWhoever can log in to the serverAfter a restart

Nothing in the admin needs a rebuild, a restart, or any knowledge of code. What is set in the admin is stored in the site's database, so it is included in every backup and survives updates. The one exception is two-step login, whose key and codes are never in a backup.

Every admin page is in the menu down the left side (behind a Menu button on a phone):

GroupPageWhat you change there
OverviewNothing: the site and its server at a glance
PhotosUploadAdds photographs
LibraryOrder, visibility, and each photo's title, description, alt text, tags, look, licence, and links
AlbumsNamed sets of photos
AppearanceSkinsThe look, the colours, light or dark, columns and spacing
ModulesLooks applied to photos: film, frames, watermark, sharpening
Site textThe site's name, tagline, language, and every word on it
Icon and logoThe picture in the browser tab, and a logo in place of the site's name
SitePagesPages of words (About, Contact) and links of your own in the site's menu
SettingsLayout, the front page's order, privacy, licence, downloads, drafts, slideshow
Search and sharingTitles, description, sharing picture, search engines, the site's address
Visitor statisticsCounting visits with a service you choose; off to begin with
Embed on another siteA slideshow of your photos for other sites to show; off to begin with
ServerSystemBackup, restore, updates
WebhooksMessages sent to other services when photos change
API tokensLets a script or another program upload without your password
Two-step loginA code from your phone after the password; off to begin with

Its name and its words

Where: Admin, Appearance, Site text.

Nothing a visitor sees has to say "Fotobogen". The software's name appears only in the admin.

WhatHowNotes
Site titleThe Site title fieldAt the top of every page, in the browser tab, in search results, and in the feed. Up to 80 characters.
TaglineThe Tagline fieldA short line beside the title. Optional. Also the site's description unless you write one.
LanguageThe Language field: a code such as en, de, pt-BRTells screen readers how to pronounce the site and search engines what language it is in. It does not translate anything.
Every label, link, button, and messageThe fields under Words on the site, grouped by where they appearAbout seventy pieces of text. Each field shows the wording used now; type your own to replace it. Up to 200 characters each.
A footer line of your ownA line of your own in the footer, under Header and footerEmpty to begin with. A copyright notice, for instance.
Back to the original wordingEmpty a field, or press Use the default wording everywhere

The groups of text are: header and footer; the photo grid; a photo; albums and tags; the slideshow; and what is shown when a page cannot be. To run the site in another language, set the language code and reword the fields. A few pieces of text contain names in curly brackets, such as {count}; keep those, as they are filled in when the page is shown.

What cannot be changed here: your photos' own titles and descriptions (those are on each photo's page in the Library), album names (Albums), and the licence wording (Settings). Text is always shown as text: HTML typed into a field appears as typed and is not run.

Its icon and logo

Where: Admin, Appearance, Icon and logo. Both are optional. Without them the site shows its name as text, and the browser tab has no icon.

WhatHowNotes
IconChoose an icon, and pick a pictureShown in the browser tab, in bookmarks, and on a phone's home screen. Use a square picture of 512 by 512 pixels; at least 64. One that is not square is cropped to its middle. A simple shape reads better than a photograph at this size.
LogoChoose a logo, for light mode, dark mode, or bothShown at the top of every page in place of the site's name. The name stays as its description for screen readers and search engines. A PNG with a transparent background works best.
A different logo for dark modeUpload a second one under For dark modeA logo that reads well on a light page may vanish on a dark one. With only one, it is used for both.
How tall the logo isThe slider, then Save sizeFrom 20 to 120 pixels; 40 to begin with. A logo is never drawn larger than the picture you gave.
Going backRemove beside eachThe name returns as text.

What is accepted: PNG, JPEG, or WebP, up to 5 MB, judged by what is inside the file. SVG is refused, because an SVG file can carry scripts; export it as a PNG. The picture is redrawn before it is kept, so only its pixels are stored. Both pictures are kept in the site's database, so they are in every backup.

Its look

Where: Admin, Appearance, Skins. The skins page has the details.

WhatHow
The whole lookChoose one of the four skins: Swiss, Papier, Plakat, Rangefinder Dreams
Light or darkVisitors first see: the skin's own choice, light, dark, or whatever their device is set to. Visitors can switch with a button.
Accent colourA colour picker for light mode and one for dark
Space between photosNone, a hairline, or wide
Columns on a wide screenFrom 2 to 6
A look of your ownPut a skin's folder in data/skins/ and restart. How to make one.

What a skin cannot do: change the structure of the pages, run scripts, or load anything from another site.

How photographs look

Where: Admin, Appearance, Modules, for all photos; and each photo's page in the Library, for one. The modules page has the details.

WhatHow
Black and white, or a film's colourFilm looks: five looks, with grain and sharpening
A film border round each photoFilm frame: thickness, ragged or straight edge, markings, sprocket holes
Your name on each photoWatermark: text, position, size, opacity
One photo different from the restIts page in the Library: choose a look, or none
A look that comes with a skinChoosing Rangefinder Dreams sets black and white for every photo; a tick box declines it
A look of your ownPut a module's folder in data/modules/ and restart. How to write one.

Modules start switched off. The file you uploaded is never changed, so any look can be undone exactly.

How the site is laid out

Where: Admin, Site, Settings.

WhatChoicesTo begin with
The gridMasonry (each photo keeps its shape) or squareAs chosen in setup
Opening a photoOver the grid, or on a page of its ownAs chosen in setup
Order of the front pageShuffled afresh for each visit, or the library's orderShuffled on a new site; a site set up before version 1.8.0 keeps the library's order
Camera details beside a photoShown or notShown
Where a photo was takenShown or notNot shown
The licence under each photoAll rights reserved, or a Creative Commons licenceAll rights reserved
DownloadsAllowed or notNot allowed
New uploadsPublic at once, or hidden as draftsPublic at once
SlideshowSeconds per photo (3 to 120); in order, or shuffled8 seconds, in order
Picture qualitySmaller files, Standard, or High: how much the copies shown on the site are compressedStandard

Changing the picture quality makes every photo's copies again in the background, which takes a while on a large site. Your uploaded files are never changed, so you can change your mind.

The library's order is the order in the Library: drag them, or use the Up, Down, and To top buttons. Albums, tags, and a photo's Previous and Next always follow it; the front page follows it unless it is set to shuffle.

Each photograph

Where: Admin, Photos, Library, then open a photo.

WhatNotes
Title and descriptionShown beside the photo, in the browser tab, and when its page is shared
Alt textDescribes the picture to people who cannot see it, and to search engines
Web addressThe last part of /photo/…
Date takenRead from the file, and correctable
Albums and tagsAny number of each
Public now, public later, or a draftA scheduled photo appears by itself at its time
Its own licence and download settingOtherwise it follows the site's
Its own lookOtherwise it follows the site's
Links to copyThe address of its page and of each size of the picture, and HTML to embed it

Where: Admin, Site, Search and sharing. The page previews a search result and a shared link as you type.

WhatIf you leave it aloneNotes
Title of your home pageYour site's titleSearch engines show about 60 characters
Description of your siteYour taglineAbout 155 characters are shown
How other pages' titles are written"Photo | Site"Five ways to choose from
Picture shown when your site is sharedYour newest photoAny public photo, or none. A link to one photo always shows that photo.
Let search engines list the siteYesOff is a request, which the well-known search engines honour. It does not make the site private.
Your site's proper addressThe address each visitor usedSet this on a public site, so every link points to one address
Photographer's nameNoneAdded to every page as its author
Username on XNoneCredited when a page is shared there
Google and Bing verification codesNoneTo prove the site is yours in their webmaster tools

Counting visits

Fotobogen counts nothing itself, and until you choose a service your pages load nothing from anywhere else. Admin, Visitor statistics adds a counting service of your choice to the public pages:

ServiceWhat you give
PlausibleThe script address from the snippet Plausible shows you (the part inside src="…"). For the older snippet, also its data-domain value.
Google AnalyticsYour measurement ID, such as G-AB12CD34EF.
Another serviceIts script address, any data- attributes from its script tag, and, rarely, a second address it reports to. This covers Umami, Fathom, GoatCounter, Simple Analytics, Cloudflare Web Analytics, and others installed with one script tag.

You give an address or an ID, and Fotobogen writes the script tag. No code is typed into the admin, and nothing typed there is ever run as script.

Pages and your menu

Admin, Pages is for pages of words beside your photographs: About, Contact, anything. Give a page a title and it gets an address of its own at the top of your site, such as /about, and a place in your site's menu. You can change the address, take the page out of the menu, or hide it while you write.

A page's text is plain text with a little marking:

You typeYou get
An empty lineA new paragraph
## Prints at the start of a lineA heading (### for a smaller one)
- Small at the start of a lineA list item
**bold** and *italic*bold and italic
[the shop](https://shop.example.com)A link reading "the shop"
A web address or an email address, written outA link, by itself

A preview under the box shows how it will look. A contact page can be as simple as a line with your email address.

Showing your photos on another site

Other sites can show a slideshow of your photos inside their own pages: a blog, a club's site, a portfolio. Open Admin, Embed on another site, switch it on, choose every photo, one album, or one tag, and a size, and copy the one line of code the page gives you:

<iframe src="https://photos.example.com/embed/slideshow" width="800" height="600" style="border:0;max-width:100%;height:auto;aspect-ratio:800/600" title="Slideshow: Kodachrome Days" loading="lazy"></iframe>

Paste it where the other site lets you add HTML: an "HTML", "Embed", or "Code" block in most editors. The slideshow has one bar of controls (first, back, play or pause, forward, last) with "Powered by Fotobogen" at the end, linked to fotobogen.com. The arrow keys, Home, End, and Space work too. The width and height are the largest it will be: on a narrower page or a phone it shrinks to fit and keeps its shape.

Letting other programs upload

Where: Admin, Server, API tokens.

A token lets a script, or a program such as a photo editor's export plug-in, add photos to your site without your password. Make one, give it a name, and choose what it may do:

KindMayMay not
Upload onlyUpload photos, list the library, see whether a photo has been processed, try again with an upload that failedChange or delete anything else
Manage photosAll of that, and edit, reorder, hide, and delete photos, set their looks, and manage albumsChange anything about the site itself

No token can change settings, skins, site text, pages, the menu, visitor statistics, or embedding, read or change two-step login, install an update, make or revoke tokens, download a backup, or restore one. The token is shown once, when it is made; copy it then. Revoking a token stops it at once. How to use one.

Its address

The site answers at whatever address reaches the server. To use your own domain:

  1. Point the domain at the server (an A record with whoever you bought the domain from).
  2. Give the server a certificate for it. With the Docker quick start, set DOMAIN in .env and Caddy does it; on Forge, issue it in Forge.
  3. Tell Fotobogen the address: Search and sharing, Your site's proper address, or SITE_URL in .env. Links copied from the admin, the feed, and the sitemap then use it.

How the app runs

Where: the .env file in Fotobogen's folder on the server. Copy .env.sample to .env, edit it, and restart.

WhatSetting
The portPORT
Where data is keptDATA_DIR
The site's addressSITE_URL
The largest uploadMAX_UPLOAD_MB, MAX_MEGAPIXELS

Every setting, with what is safe to change and what is not, is on the configuration page.

What cannot be customized

What is planned is in the roadmap.

Back: Updating Next: Skins