Hi all!
I used to work with coppermine but have just installed the nightly build of G2 and it looks good so far.
I am still fiddeling with the integration into my plog but that's not the issue that I want to discuss.
What I liked about Coppermine is that the long description was shown next to the gallery thumbnail so you could read the story behind the pics of the gallery BEFORE entering the (sub-)gallery. Is there a possiblility to do this in G2. I am not too familiar with PHP but if someone shows me the rough direction to go I think I might b able to figure it out myself.
Thanks in advance
Asenath
Posts: 32509
Possible? Yes. You'd need to create a local template.
if you use the matrix layout:
in layouts/matrix/templates/ create a local folder, copy the albumBody.tpl to the local folder and replace
{if !empty($child.summary)} <p class="giDescription"> {$child.summary|entitytruncate:256|markup} </p> {/if}with:
{if !empty($layout.item.description)} <p class="giDescription"> {$layout.item.description|markup} </p> {/if}you can move the code around etc. it's just the layout.
and after changing the layout files, you should run site admin -> maintenance : flush template cache.
also flush when you delete local folder to go back to the default layout.
also take a look at the small customization guide (sticky topic).
that's smarty code btw.
Posts: 14
This didn't work out quite like it should.
The main page still has no album description visible but whenever I enter a subcategory all the subalbums end up showing the description of the parent folder O_o
As seen here: http://asenath.gothdimension.de/gallery2/
Posts: 32509
sorry.
replace it with
{if !empty($child.description)} <p class="giDescription"> {$child.description|markup} </p> {/if}and if you would like to have summaries for items and descriptions for albums, you'd have to add {if $child.canContainChildren} {else} {/if} around the block.
Posts: 14
Aha! Now that works like a charm. Thanks for taking the time. I'll get the hang of this one day, I promise ;-)