Adding View Slideshow link to top causes problems.
|
rsramirez
Joined: 2003-11-03
Posts: 16 |
Posted: Fri, 2005-09-23 22:33
|
|
Hi. I'm trying to add a "View Slideshow" link to the top of both my album and photo templates, as seen here [img]http://www.instrumentofchoice.net/albums/2003dailies/with_link.jpg[/img] When I added the appropriate code, the Edit link breaks, and for photos, the Exif details disappears. Looking at the URL (before and after), I notice that the index is missing - probably why the Exif details disappear as well. EDIT URL Before adding slideshow code: I figure this is happening because I'm using a foreach statement, possibly screwing up the current index.
{if ($theme.itemLinks)}
{foreach from=$theme.itemLinks item=item}
{if ($item.text=="View Slideshow")}
<div class="slideLink"><a href="{g->url params=$item.params}">{$item.text}</a></div>
{/if}
{/foreach}
{/if}
Here's the resulting error:
Error Detail -
Error (ERROR_BAD_PARAMETER)
* in modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 50 (gallerystatus::error)
* in modules/core/classes/GalleryCoreApi.class at line 2186 (galleryentityhelper_simple::loadentitiesbyid)
* in modules/core/ItemAdmin.inc at line 47 (gallerycoreapi::loadentitiesbyid)
* in modules/core/classes/GalleryTheme.class at line 688 (itemadminview::loadtemplate)
* in modules/core/classes/GalleryView.class at line 285 (siriuxtheme::loadtemplate)
* in main.php at line 287 (itemadminview::doloadtemplate)
* in main.php at line 87
* in modules/core/classes/GalleryEmbed.class at line 153
* in /var/www/localhost/html/wp-gallery2.php at line 55 (galleryembed::handlerequest)
Any ideas? There an easier way to add just the View Slideshow link? I know there's the Item Actions block, but I want to keep the slideshow link separate from the other blocks. Thanks! |
|
