exp:gallery_extended:entries
Posted: 25 February 2008 04:59 PM   [ Ignore ]
Newbie
Rank
Total Posts:  10
Joined  2008-02-25

I’m having an issue with this tag and was hoping someone could show me what I’m doing wrong.

Every time I use this tag, it tries to pull ALL the entries of ALL my galleries.

{exp:gallery_extended:entries author_id="##"}

To be more specific, I was hoping I could use this inside my gallery:entries tag to show only the images submitted by a specific individual. Is there a way to do this I’m missing?

I thought it’d be neat for my users to narrow down a page to JUST the images they’d submitted.

Help red face

Profile
 
 
Posted: 25 February 2008 08:40 PM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

The author_id parameter should work… how is it you’re getting the Author ID into there? smile

Are you just hardcoding it? Or using something like {segment_3}?

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 25 February 2008 08:52 PM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  10
Joined  2008-02-25

Was trying both. Maybe my application was wrong. Should this work? I tried this and several other techniques, including not even using the exp:gallery:entries tag. Thanks

{exp:gallery:entries gallery="{gallery_name}" orderby="most_views" sort="desc" columns="4" rows="6" paginate="both"}
<table class="tableBorder" cellpadding="6" cellspacing="1" border="0" width="100%">
{entries}
{row_start}
<tr>{/row_start}
{row}
<td class="thumbs">
{exp:gallery_extended:entries author_id="##"}
<a href="{id_path=usergallery/image_full}"><img src="{thumb_url}"  class="border" width="{thumb_width}" height="{thumb_height}" border="0" title="{title}"  alt="{title}" /></a>
<
div class="title_icon">{title}</div>
<
span class="text9" style="color:#999999">(<a href="{path=usergallery/my_usergallery/{username}/}">{username}</a>)<br />Viewed {views} times<br />{total_comments} Comments</span>
{/exp:gallery_extended:entries"}
</td>
{/row}
{row_blank}<td class="
thumbs">&nbsp;</td>{/row_blank}
{row_end}</tr>{/row_end}
{/entries}
</table>

{paginate}
<span class="
pagecount">Page {current_page} of {total_pages} pages</span>  <b>{pagination_links}</b>
{/paginate}
{/exp:gallery:entries}

Profile
 
 
Posted: 25 February 2008 09:07 PM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

You shouldn’t nest one loop into the other.

Hvave you tried pulling the Gallery Extended Entries loop OUTSIDE of the Gallery Entries loop? smile

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 25 February 2008 09:16 PM   [ Ignore ]   [ # 4 ]
Newbie
Rank
Total Posts:  10
Joined  2008-02-25

I tried something like this below, but still had it try to pull ALL the entries (about crashed the browser, LOL). It only pulls the icons for the items IN the gallery I specify, but it keeps trying to grab data from the other galleries (not specified) as well.

{exp:gallery_extended:entries author_id="##" gallery_name="mygallery"}
<a href="{id_path=usergallery/image_full}"><img src="{thumb_url}"  class="border" width="{thumb_width}" height="{thumb_height}" border="0" title="{title}"  alt="{title}" /></a>
<
div class="title_icon">{title}</div>
<
span class="text9" style="color:#999999">(<a href="{path=usergallery/my_usergallery/{username}/}">{username}</a>)<br />Viewed {views} times<br />{total_comments} Comments</span>
{/exp:gallery_extended:entries"}

I tried hard coding the author value, though eventually I hope to make it a segment variable instead so I can change it dynamically for various users. Currently I found a way to do this with an IF statement, but the Extended module should make it a lot cleaner if I can get it working.

Thanks for your help,
John

Profile
 
 
Posted: 25 February 2008 09:21 PM   [ Ignore ]   [ # 5 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

Don’t forget about the CURRENT_USER option too!! Nothing cleaner than that!! smile
I’ve tested it and it works smile

author_id="CURRENT_USER"

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 25 February 2008 09:25 PM   [ Ignore ]   [ # 6 ]
Newbie
Rank
Total Posts:  10
Joined  2008-02-25

Still getting all the entries (from all authors) in my specified gallery AND getting all the entries from the other galleries. Icons still only appear for the first, though the stats (views/comments) are correct for the other galleries.

Weird how it’s ignoring the gallery_name parameter.

I’d post the link directly, but if I run that page more than a few time it might crash SQL. That’s a lot of images to load, LOL.

Any thoughts as to what my issue might be on this?

Profile
 
 
Posted: 25 February 2008 09:30 PM   [ Ignore ]   [ # 7 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

why don’t you throw the limit parameter on it for testing smile

Have you tried the loop by itself on a page? smile

Looking closer at your code, you also have an extra character in your End loop:

{/exp:gallery_extended:entries"}


Notice the “ at the end.

Try something simple to start. Create a new test template, and play with it from there… like this:

{exp:gallery_extended:entries author_id="##" limit="10"}
<a href="{id_path=usergallery/image_full}"><img src="{thumb_url}"  class="border" width="{thumb_width}" height="{thumb_height}" border="0" title="{title}"  alt="{title}" /></a>
<
div class="title_icon">{title}</div>
<
span class="text9" style="color:#999999">(<a href="{path=usergallery/my_usergallery/{username}/}">{username}</a>)<br />Viewed {views} times<br />{total_comments} Comments</span>
{/exp:gallery_extended:entries}

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 25 February 2008 09:34 PM   [ Ignore ]   [ # 8 ]
Newbie
Rank
Total Posts:  10
Joined  2008-02-25

We’re making progress, LOL. The limit works (meant to mention that earlier). But the last 3 entries are all from a gallery that I didn’t specify still; so weird. You have however now narrowed it to just the ID I specified, so that’s a step in the right direction. Thanks for catching the extra quote - I caught that too after I posted (forgot to change it in my post, sorry about that).

So it seems the main issue now is the gallery_name=“mygallery” not working.

Profile
 
 
Posted: 25 February 2008 09:58 PM   [ Ignore ]   [ # 9 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

Are you specifying the Full Name of the Gallery, or the short name?

I believe you’re supposed to pull it by the Full Name:

gallery_name="Photo Gallery Name"

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 25 February 2008 10:01 PM   [ Ignore ]   [ # 10 ]
Newbie
Rank
Total Posts:  10
Joined  2008-02-25

Ah, that may be my issue then. I’ll give that a try in the morning. Gotta head off for the night. I’ll let you know how it works. Thanks again Pie Man.

Edit: Nope, still didn’t work. LOL, will try more in the morning. smile

Profile
 
 
Posted: 31 March 2008 03:11 PM   [ Ignore ]   [ # 11 ]
Newbie
Rank
Total Posts:  9
Joined  2007-03-07

Im pretty sure this is the same problem i am having


The below code works fine if there are no numbers in my URL http://www.wkrg.com/weather_gallery/user_recent/

{exp:gallery_extended:entries author_id="##" gallery_name="wx_gallery" dynamic="off" limit="3"}
    {medium_url}
    {
/exp:gallery_extended:entries}

but if i put a number in the URL nothing is returned
http://www.wkrg.com/weather_gallery/user_recent/642/

i have tried the above code with and without dynamic=“off”

Profile
 
 
Posted: 01 April 2008 08:09 AM   [ Ignore ]   [ # 12 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

Lumis,

What kind of data are you trying to display?
With that code, you should have no need to have numbers or words/letters in the URL afterwards…

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 01 April 2008 08:46 AM   [ Ignore ]   [ # 13 ]
Newbie
Rank
Total Posts:  9
Joined  2007-03-07

Mr Pie smile
i am embedding it from another template that has a photo id in the URL because what im trying to do is list the most recent 5 images uploaded by the user whose full size photo is currently being displayed

the calling template would be something like this

{exp:gallery:entries gallery="wx_gallery" track_views="one"}
  some photo code here
.....
{embed="weather_gallery/user_recent" user_id="{author_id}"}
{
/exp:gallery:entries}

the embed template would be this

{exp:gallery_extended:entries author_id="{embed:user_id}" gallery_name="wx_gallery" limit="5"}
    {medium_url}
    {
/exp:gallery_extended:entries}

i was able to do it with a ajax post method and use php to $_GET[‘id’]; but i would rather have it so it is real code on the page rather than another server request

Profile
 
 
Posted: 01 April 2008 12:05 PM   [ Ignore ]   [ # 14 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

lumis,

I understand now wink

I can duplicate this. It looks like you would need a dynamic=“off” parameter. This is not yet a feature, and I will submit it as a feature request. smile

On a side note, what I might consider a bug is that if you specify a number in the URL, which is the same as a Photo Gallery Entry ID, it generates a SQL error.

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 14 May 2008 08:46 AM   [ Ignore ]   [ # 15 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

The dynamic=“off” parameter is now available in the latest version of GX2 smile

 Signature 

Check out the new Solspace Blog!

Profile