(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}

{if !empty($child.summary)}
<p class="giDescription">
{$child.summary|markup|entitytruncate:256}
</p>

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.
Go back and try again Did this

If this problem happens repeatedly, it may be because of corruption in your cache. Site Administrators can clear out this cache.
Clear the cache Did this

Alternatively, you can return to the main Gallery page and resume browsing.

Back to the Gallery
Error Detail -
Error (ERROR_OBSOLETE_DATA) : UPDATE g2_Entity SET g_modificationTimestamp=?,g_serialNumber=? WHERE g_id=? AND g_serialNumber=? (1231273009|5|19964|4)

* in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 362 (GalleryCoreApi::error)
* in modules/core/classes/GalleryStorage.class at line 324 (GalleryStorageExtras::saveEntity)
* in modules/core/classes/GalleryEntity.class at line 294 (GalleryStorage::saveEntity)
* in modules/core/classes/GalleryItem.class at line 414 (GalleryEntity::save)
* in modules/core/ItemEditItem.inc at line 253 (GalleryItem::save)
* in modules/core/ItemEdit.inc at line 84 (ItemEditItem::handleRequest)
* in main.php at line 249 (ItemEditController::handleRequest)
* in main.php at line 103
* in main.php at line 88

System Information
Gallery version 2.3-RC1
PHP version 5.2.6 apache
Webserver Apache/1.3.41 (Unix) PHP/5.2.6 mod_throttle/3.1.2 mod_psoft_traffic/0.2 mod_ssl/2.8.31 OpenSSL/0.9.7e-p1 mod_macro/1.1.2
Database mysqli 5.0.67-log
Toolkits SquareThumb, ImageMagick, Thumbnail, Gd
Operating system FreeBSD FreeBSDweb1.stabilityhosting.com 6.2-STABLE FreeBSD 6.2-STABLE #1: Tue Jan 21 01:40:54 UTC 2003
Browser Mozilla/5.0 (Windows; U; Windows

This can be seen herehttp://cigarboxlabels.com/gallery2/main.php?g2_itemId=19574&g2_page=5
The item in question is the first column, 5 rows down.

Thank you for any help with this. Alternative solutions are welcome!

Laura

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Tue, 2009-01-06 21:36

The database column that contains the summary field (g2_Item::g_summary) is only 255 characters - so that's all you can store.

 
laurashton

Joined: 2008-10-26
Posts: 30
Posted: Tue, 2009-01-06 21:40

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?

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Tue, 2009-01-06 22:01
Quote:
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?

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?

Quote:
I have no idea how to go about enlarging the db area--but someone else might. Is it very involved, or pretty quick?

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.

 
laurashton

Joined: 2008-10-26
Posts: 30
Posted: Tue, 2009-01-06 22:09

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

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2009-01-07 02:05

{$theme.item.description|markup}
so
{$child.description|markup}
should work instead of
{$child.summary|markup|entitytruncate:256}

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
laurashton

Joined: 2008-10-26
Posts: 30
Posted: Wed, 2009-01-07 03:06

Thank you Dave! This looks like it makes sense--going to try it tomorrow afternoon.
Laura

 
laurashton

Joined: 2008-10-26
Posts: 30
Posted: Wed, 2009-01-07 20:23

Worked like a charm! Thank you again, Dave
Laura