(Solved!)Caption expansion - Summary limitations
laurashton
Joined: 2008-10-26
Posts: 30 |
Posted: Tue, 2009-01-06 21:28 |
Hello, Hope someone can give me a bit of guidance here--I'm trying to help a client with his gallery site, specifically to expand the summary description that's below the thumnail images. This is gallery2, with Matrix as a theme, and the site is quite large with about 15K items total. The site is http://cigarboxlabels.com. Below the thumbnails, we have a title and a summary. In most cases the summary is brief, but occasionally the whole description, which might be lengthy, is called for. When we attempt to place the lengthy description into the limited summary area, it cuts it off. I've tried to expand this area, based on another post on the forum that I found, by going to the album template (album.tpl) and changing the following code from 256 to (for example) 356, but that doesn't work, even when I clear the caches. Quote:
{/if} The following error message is what I get when I just try to add onto the truncated text and save. I'm not sure where the "conflicting change" comes from, but possibly when I was on the phone with the site owner, we both tried to do the same thing while we were both logged in... But, even on other items, I get the same message. Quote:
Your change cannot be completed because somebody else has made a conflicting change to the same item. Use the back button in your browser to go back to the page you were on, then reload that page and try your change again. This can be seen herehttp://cigarboxlabels.com/gallery2/main.php?g2_itemId=19574&g2_page=5 Thank you for any help with this. Alternative solutions are welcome! Laura |
|
Posts: 4342
The database column that contains the summary field (g2_Item::g_summary) is only 255 characters - so that's all you can store.
Posts: 30
Thank you Alec for your reply. As an alternative, it is possible to move the description field to the position the summary field occupies--permanently, or at will? This is not the most desirable approach, probably, and I have no idea how to go about enlarging the db area--but someone else might. Is it very involved, or pretty quick?
Posts: 4342
I don't understand the question - the description is the description, and the summary is the summary - they're two separate fields, what are you asking?
You'd have to change the column type. A quick hack would work temporarily but will leave you severely up the duff if you need to reinstall, upgrade, or anything like that. I wouldn't go there.
Posts: 30
Thanks again Alec! The question was can I replace the summary field's position below the image with the description field? And should I need to reinstall or something, just do it again! Thank you, Laura
Posts: 27300
{$theme.item.description|markup}
so
{$child.description|markup}
should work instead of
{$child.summary|markup|entitytruncate:256}
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 30
Thank you Dave! This looks like it makes sense--going to try it tomorrow afternoon.
Laura
Posts: 30
Worked like a charm! Thank you again, Dave
Laura