TheAdminMarket |
07-25-2015 04:13 AM |
Quote:
Originally Posted by ArcadeSyndicate
(Post 2551242)
how about adding PREV and NEXT buttons to the viewmedia-page? :)
|
Finally it's not so easy. Not from the coding side as I already added the code as you can see below. The problem is: Usability. Let me explain. The view media page opens from different sections. eg from browsing category xxxx, from browsing search results etc.
By adding Prev - Next, should ignores are these and it will shows just the previous and next id without any criteria something that will confuse the users. To solve this I must add queries and/or section flags to view media page, something not so easy.
But as I said, I already wrore the code, so you can use the attached media.php. Then in mediagalley_view_media template add anywhere you want to show the links:
Code:
<vb:if condition="!empty($prev_link)">
<a href="{vb:raw prev_link}">Previous</a>
</vb:if>
<vb:if condition="!empty($next_link)">
<a href="{vb:raw next_link}">Next</a>
</vb:if>
|