Add "Print on Digibug.com" - Item Action Option to Each Picture on Album Page
derickson
Joined: 2006-04-13
Posts: 32 |
Posted: Mon, 2009-03-02 17:09 |
I have the digibug module install and it works well, however the link to print on digibug.com only shows on the individual picture view. Is there a way to add this link to be under each picture when I am viewing multiple pictures in a album? For example this page I would like to have the Print on Digibug.com under each picture. http://gallery.evangelacademy.com/main.php?g2_itemId=5083 I would like the link under each image thumbnail on the album page. The link should only be under images not albums. Also if there is a way to do the same for the eCard Module that would be great. Thanks, |
|
Posts: 32
Does anyone know how I can add a buy option on the album page under each picture with out using the cart module?
Posts: 32
I guess what I have to do is add the Item Actions under each photo on the Album page. Does anyone know how to do that?
Posts: 32
Allowing people to easily buy pictures is a great feature that gallery needs to improve. If people could have this buy option on the Album Page it saves them from have addition "Clicks".
Any Ideas out there?
Posts: 8339
you can add item actions below each picture edit album -> theme -> Blocks to show on photo pages -> item actions
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 32
That will show the actions on the Photo page. I need it on the album page under each picture. If I add the Item Aciton on the edit album -> theme -> Blocks to show on album pages -> item actions, it refers to the whole album and Album Actions. I am trying to get photo "Item Actions" to show on the album page under each picture.
Thanks.
Posts: 32
Ok, I was able to modify the album.tpl code to add an "Item Actions" below each picture, I added foreach from=$theme.params.photoBlocks item=block}
{g->block type=$block.0 params=$block.1} {/foreach} in the code below. However the "Item Actions are those related to an album page still. How can I change that to show actions related to the picture? Also how to I onlu show these actions under pictures only and not sub-albums?
Code starting on Line 161
showViewCount=true showSummaries=true class="giInfo"} {foreach from=$theme.params.photoBlocks item=block} {g->block type=$block.0 params=$block.1} {/foreach} {* flush the rest of the row with empty cells *} {section name="flush" start=$childrenInColumnCount loop=$theme.params.columns} <td> </td> {/section}
Posts: 4342
The Matrix and Siriux themes both include a set of itemActions for each photo (or Album) under the thumbnail in the Album view. So you could look in those themes, and copy what they do.
Edit: Actually not sure about Siriux. But definitely Matrix.
Posts: 32
I am using the Matrix Theme. I am get the Album Item Actions on the Album page, but I need the image Item Actions on the album page under each picture for using the commerce plugins.
I found where I can insert text to show on pictures only. In bold below.
{if ($child.canContainChildren || $child.entityType == 'GalleryLinkItem')} {assign var=frameType value="albumFrame"} {capture assign=linkUrl}{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}{/capture} {else} <strong>Click Picture to Buy Online</strong>{assign var=frameType value="itemFrame"} {capture assign=linkUrl}{strip} {if $theme.params.dynamicLinks == 'jump'} {g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"} {else} {g->url params=$theme.pageUrl arg1="itemId=`$child.id`"} {/if} {/strip}{/capture} {/if}
Really, my goal is to get the commerce options on the album page under pictures only, so if that is easier that trying to get the whole Item Actions block I can go that route.
Posts: 4342
That's not what I'm referring to. See the screenshot. Standard Matrix theme, no modifications. ItemAction menu under each thumbnail, and your commerce options should appear there automatically.
If you want *only* the commerce options there are ways to do that too. The general format is something like
{g->url arg1="view=<module>.<Action>" arg2="itemId=`$child.id`"} in the correct place. Also see the {g->itemLink ...} smarty tag which was added in 2.3. This is what the docs say, relating to API updates:
I've never used it, though, so you'll have to dig the syntax for it out of the core code. I guess using the {g->itemLink} means that you get permissions checks etc. included for free, depending on what the module whose itemlink you're adding does.