Keyword Album links just for photo page keywords?
ichthyous
Joined: 2006-06-16
Posts: 324 |
Posted: Sat, 2011-08-06 19:47 |
I have been trying to work this out for some time with the Keyword Album module. I don't want keywords in albums to link to keyword albums at all, but I do want keywords shown on photo pages themselves to be linked to keyword albums. I customized my photo pages to show the list of keywords from the meta keywords on the page itself. I found this link to make only album items linked: http://gallery.menalto.com/node/96439. How would I make the actual keywords for PhotoItems linked? Thanks for any help! |
|
Posts: 8339
that page shows you exactly how:
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 324
No it doesn't, I made that same change and it it removes the keyword links from the albums themselves but not the album items. I want links on the photo page level keywords (on page), not on any album items. The links should appear on the page on the photo pages only.
Posts: 8339
Edit Album -> Theme Tab -> Blocks to show on photo pages -> Keyword album links
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 324
Hey that worked thanks for the advice! Any idea on how to exclude albums from the returned items? I would like only items to be included
Posts: 8339
Gallery admin -> Keyword Albums -> Keyword Album Settings ->
Select where to include links in item summary info, usually shown next to thumbnails. You can also add the Keyword Albums block in theme settings.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 324
I think my post wasn't clear. I Want to exclude albums from the returned results when I click a link. Right now when I click a keyword link it creates an album with images and other albums in it. I want to leave the other albums out and just have images shown. Is there any way to exclude albums? Thanks!
Posts: 8339
Could it be as easy as to not keyword your albums?
else:
modules/keyalbum/KeywordAlbum.inc line ~182 change 'GalleryItem' to 'GalleryPhotoItem'
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 324
I thought about that but I do want a list of keywords available on the albums, but not the albums to show up in the results. Changing from 'GalleryItem' to 'GalleryPhotoItem' at line 172 produces an error:
Error (ERROR_STORAGE_FAILURE)
in modules/core/classes/GalleryStorage.class at line 475 (GalleryCoreApi::error)
in modules/core/classes/Gallery.class at line 202 (GalleryStorage::search)
in modules/keyalbum/KeywordAlbum.inc at line 181 (Gallery::search)
in modules/keyalbum/KeywordAlbum.inc at line 119 (KeywordAlbumView::getChildIds)
in modules/core/classes/GalleryView.class at line 291 (KeywordAlbumView::loadTemplate)
in index.php at line 392 (GalleryView::doLoadTemplate)
in index.php at line 91
in index.php at line 84
in /home/public_html/index.php at line 3
Posts: 324
One other thing maybe you know how to do...because the module only uses one set description and plugs it in across every page it generates for each keyword I am getting hundreds of duplicate description errors in Google Webmaster Tools. The easy way to remedy this would be to somehow add the keywords itself to the description:
$item->setDescription($moduleParams['description']);
I am not that familiar with Php, and have tried everything to add the keword parameter into the description. Even better would be text plus the keyword as the first line of the description, then the description. In my experience that should be enough to have Google identify each description as unique and start to drop them as dupes. Any ideas on how to write that? Thanks!
Posts: 8339
there is a reference to GalleryItem a couple lines above that also needs to be changed to GalleryPhotoItem
EDIT: scratch that, I was editing the module on one site, while testing on another.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 8339
try line 182:
'GalleryItem', 'id', implode(' AND ', $where). 'AND `g_canContainChildren` = 0',
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 324
I have it at 172 not 182, strange...I added it and it worked. Albums are gone! Thanks for the help with that, I think it looks much cleaner to just return images and not albums. Now I just need to figure out how to include the keyword in the description for each page. As I mentioned, Google is murdering me with now over 1,700 duplicate description errors and rising!
Posts: 8339
the important part was to add . 'AND `g_canContainChildren` = 0'
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 324
Yep I realized that afterward and I edited my post...see above