ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Gallery Comments Pagination

January 25, 2009 4:28pm

Subscribe [2]
  • #1 / Jan 25, 2009 4:28pm

    FaithX

    120 posts

    I have a single entry image page in the gallery with comments. I’d like to paginate the page by the comments. I had many troubles, but finally I found out how to get work the pagination links. It did not work when I had the comments tag nested inside the entries tag. Actually everything is working except the {auto_path}. This is my code in short:

    {exp:gallery:entries gallery="gallery_name"}
    ...
    {/exp:gallery:entries}
    {exp:gallery:comments limit="5" orderby="date" sort="desc" paginate="both"}
    {name}
    {comment}
    {paginate}
    {if "{total_pages}" != 1}
    {if previous_page}<a href="http://{auto_path}">Previous</a>{/if}
    {pagination_links}
    {if next_page}   <a href="http://{auto_path}">Next</a>{/if}
    {/if}
    {/paginate}
    {/exp:gallery:comments}

    The Next/Previous links are result in a link like this:

    <a href="http://www.mysite.com/gallery/image/6635/P5/{auto_path}">http://www.mysite.com/gallery/image/6635/P5/{auto_path}</a>

    Am I doing something wrong? Or is this a bug?

  • #2 / Jan 26, 2009 1:20pm

    Greg Aker

    6022 posts

    Greetings FaithX:

    Do you have a link we can see?  Also, what version/build of ExpressionEngine are you running? 

    -greg

  • #3 / Jan 26, 2009 1:26pm

    FaithX

    120 posts

    I am using: ExpressionEngine 1.6.6 20081114
    I do not have a public link yet, and also I’ve commented this part out because of that problem. But I think You can easily reproduce this using the code above.

  • #4 / Jan 26, 2009 6:01pm

    Ingmar

    29245 posts

    FaithX, can you try using {path} instead of {auto_path} in your template? Let us know if this works, please 😊

  • #5 / Jan 26, 2009 6:06pm

    FaithX

    120 posts

    I will test it soon, and let You know.

    I’ve found another two problems. The total comments count in the categories is not recalculated after I deleted some comments. And if accidentally happens, that total view count for the gallery entry is not accumulated with the categories total view count, then there’s not possibility to sync this. It would be nice to have a menu for this in the CP.

  • #6 / Jan 26, 2009 6:11pm

    Ingmar

    29245 posts

    May I suggest we tackle one problem at a time? It makes it easier for us, too.

  • #7 / Jan 26, 2009 6:16pm

    FaithX

    120 posts

    Thank You! That’s work!

  • #8 / Jan 26, 2009 6:19pm

    FaithX

    120 posts

    I’ve tried deleting the comments again, and the total_comments field stayed the same. So there are inconsistent values there again. You can easily reproduce that.

  • #9 / Jan 27, 2009 2:18pm

    Lisa Wess

    20502 posts

    Hi, FaithX - I just wanted to let you know that we are looking into this and will update you as soon as we have more information.  Thank you!

  • #10 / Jan 27, 2009 2:29pm

    FaithX

    120 posts

    Thanks in advance!

  • #11 / Jan 27, 2009 2:33pm

    Robin Sowell

    13255 posts

    Ah- yep, the category comment count getting ‘off’ when an entry is moved or deleted is a bug- we’re working on a fix now.  See the post in the bug forum thread for details.

    Aside from the count bug, are you squared away on the pagination?

  • #12 / Jan 27, 2009 2:45pm

    FaithX

    120 posts

    Everything’s OK now. Just the feature set for the Gallery is really weak. I’ve manage the image current number and total number while iterating full images by on SQL query. I plan to create a plugin for this in the future.

    I think, You can close this thread.

  • #13 / Jan 27, 2009 3:17pm

    Lisa Wess

    20502 posts

    Thanks for the update, FaithX!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases