[SOLVED] album title error

narflet
narflet's picture

Joined: 2004-08-14
Posts: 21
Posted: Tue, 2005-04-05 20:51

I copied /layouts/matrix/templates/albumBody.tpl to a 'local' directory in templates like it suggests if you making changes, I had a look at it as I was curious, changed:

{g->text text="Album: %s" arg1=$child.title|markup}

(took out the text="album...." part.)...saw it broke, so removed the file thinking it'd revert to using the untouched version in 'templates'. However, even though I did that *and* re-unpacked last nights nightly over my g2 directory again it is still giving me this error where 'album: foo' is ment to appear on the gallery front page:

Quote:
Error (ERROR_BAD_PARAMETER)

* in modules/core/classes/GalleryTranslator.class at line 359

Any idea what I did and how I can fix? I didn't think I'd do any harm...but it seems I did. oops. I really should learn not to fiddle...

----

Gallery URL (optional): http://jasmine.wyrdweb.com/~narflet/gallery2
Gallery version: nightly 04.04.05
Webserver (with version): Apache/1.3.26 (Unix)
Datatabase (with version): mysql (version dunno, can find out if needed)
PHP version (eg 4.2.1): PHP/4.1.2
phpinfo URL (optional):
Graphics Toolkit(s): ImageMagick
Operating system: Debian GNU/Linux
Web browser/version:
G1 version (for migration bugs):

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2005-04-05 21:23

since you're running the latest code, Site Admin / Mainenance / Flush Templates.
(if anyone else hits this and is running older code: lib/tools/test/index.php FlushTemplates)

smarty will see when a tpl file is updated and recompile it, but when a file is missing it doesn't know it needs to revert to the standard tpl (because the timestamp on the standard tpl is older than when it last compiled your local tpl). you can flush all templates as suggested above.. or 'touch albumBody.tpl' would work too.

oh, and this should work:
{$child.title|markup}

 
narflet
narflet's picture

Joined: 2004-08-14
Posts: 21
Posted: Tue, 2005-04-05 21:32

thanks, that's worked an absolute treat :) nice and easy.

would it be easy to make those album titles clickable too, so both the thumbs and the titles take you to the album?

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2005-04-05 21:58

sure, put the same <a> you'll find a bit higher in that file around the title.

 
narflet
narflet's picture

Joined: 2004-08-14
Posts: 21
Posted: Tue, 2005-04-05 22:11

ah, I see :) super.

once again, thanks for the prompt and clear help.