[SOLVED] album title error
narflet
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:
(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) 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... ---- |
|
Posts: 8601
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}
Posts: 21
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?
Posts: 8601
sure, put the same <a> you'll find a bit higher in that file around the title.
Posts: 21
ah, I see super.
once again, thanks for the prompt and clear help.