Messaging
ExpressionEngine 2, ExpressionEngine 3, ExpressionEngine 4, ExpressionEngine 5, ExpressionEngine 6
Back to this add-on's main page
View Other Add-ons From Yuri Salimovskiy
wrapping pagination in a folder
Support Request
roscoeh
|
Posted: 30 May 2014 07:13 AM |
|
|
|
Hi,
I want to have my pagination wrapped in a div, the problem is it must be parsed last because it ends up after the div.
How do I get it inside
{exp:messaging:private_messages folder_id="{segment_3}" limit="20" form="yes"}
{if '{count}'=='1'} <div class="large-8 columns">Move to {folder_select}</div> <div class="large-8 columns"><input class="button" type="submit" name="move" value="move selected" /> </div> <div class="large-8 columns"><input type="submit" name="delete" value="delete selected" /></div>
{/if} {if '{count}'=='20' OR '{absolute_count}'=='{total_results}'} <div class="large-8 columns">{paginate} {pagination_links}{/paginate}</div> {/if}
|
|
|
Yuri Salimovskiy
|
Posted: 30 May 2014 07:34 AM |
# 1
|
|
Developer
|
Sorry, I’m not sure I understand. What is the desired HTML you want to generate?
|
|
|
roscoeh
|
Posted: 30 May 2014 07:42 AM |
# 2
|
|
|
I want the pagaination inside the div but the output is
<div class="large-8 columns"></div><strong>1</strong><a href="/messages/folder/2/P20">2</a>
|
|
|
roscoeh
|
Posted: 30 May 2014 08:07 AM |
# 3
|
|
|
Fixed -add the class inside
{if ‘{count}’==‘20’ OR ‘{absolute_count}’==’{total_results}’}
{paginate} <div class=“large-24 columns”> {pagination_links}</div>{/paginate}</div>
{/if}
|
|
|
Yuri Salimovskiy
|
Posted: 31 May 2014 04:56 AM |
# 4
|
|
Developer
|
First of all, you don’t need the
{if ‘{count}’==‘20’ OR ‘{absolute_count}’==’{total_results}’}
part
Second, specify
paginate="bottom"
parameter to make sure the pagination will be displayed at the bottom only (currently this is default behaviour, but it is best to specify that directly)
Lastly, if you use one of latest EE version (2.6 or later) you can use {pagination_links} as pair variable: http://ellislab.com/expressionengine/user-guide/templates/pagination.html#variable-pairs
let me know whether that helps or not.
|
|
|