Prev/Next not working in correct order
EE 2.5.2
LR 2.0.4
I have an index page that reorders thumbs for articles perfectly.
When I click into a page i have prev/next buttons and they do not follow the same order and in some instances link to incorrect pages.
Thoughts? Appreciate any assistance you can offer.
Niall
------------------
Here is template debugging code:
TEMPLATE DEBUGGING
(0.000009 / 1.88MB) - Begin Template Processing -
(0.001936 / 1.89MB) URI: accessories/view/welcome
(0.001955 / 1.89MB) Path.php Template: /
(0.001970 / 1.89MB) Retrieving Template
(0.001984 / 1.89MB) Parsing Template URI
(0.002930 / 1.89MB) Template Group Found: accessories
(0.003676 / 1.89MB) Retrieving Template from Database: accessories/view
(0.005005 / 1.89MB) Template Found
(0.006020 / 1.90MB) Retrieving Template from File
(0.009838 / 1.95MB) Template Type: webpage
(0.009867 / 1.95MB) Parsing Site Variables
(0.009927 / 1.96MB) Snippets (Keys): freelancer_version|site_id|site_label|site_short_name|last_segment
(0.009943 / 1.96MB) Snippets (Values): FALSE|1|Anna Valentine|default_site|welcome
(0.010105 / 1.96MB) Parse Date Format String Constants
(0.010143 / 1.96MB) Parse Current Time Variables
(0.010206 / 1.96MB) Parsing Segment, Embed, and Global Vars Conditionals
(0.021969 / 1.98MB) - Beginning Tag Processing -
(0.021999 / 1.98MB) Parsing Tags in Template
(0.022035 / 1.98MB) Tag: {exp:channel:entries channel="accessories" disable="categories|category-fields|member-data|pagination" status="open" limit="1"}
(0.022129 / 1.99MB) Closing Tag Found
(0.022193 / 1.99MB) Tag: {exp:channel:entries channel="accessories" disable="categories|category-fields|member-data|pagination" status="open" limit="1"}
(0.022256 / 1.99MB) Closing Tag Found
(0.022303 / 2.00MB) Tag: {exp:channel:next_entry}
(0.022337 / 2.00MB) Closing Tag Found
(0.022379 / 2.00MB) Tag: {exp:channel:prev_entry}
(0.022413 / 2.00MB) Closing Tag Found
(0.022448 / 2.01MB) Processing Tags
(0.022483 / 2.01MB) Module Tag: Channel/entries
(0.022500 / 2.01MB) Module Tag: Channel/entries
(0.022516 / 2.01MB) Module Tag: Channel/next_entry
(0.022531 / 2.01MB) Module Tag: Channel/prev_entry
(0.022548 / 2.01MB) Including Files for Plugins and Modules
(0.023047 / 2.06MB) Files for Plugins and Modules All Included
(0.023789 / 2.07MB) Beginning Final Tag Data Processing
(0.023816 / 2.07MB) Calling Class/Method: Channel/entries
(0.024038 / 2.08MB) -> Class Called: Channel
(0.025287 / 2.15MB) -> Method Called: entries
(0.035513 / 2.48MB) Returning No Results Content
(0.035589 / 2.48MB) -> Data Returned
(0.035626 / 2.47MB) Calling Class/Method: Channel/entries
(0.035829 / 2.47MB) -> Class Called: Channel
(0.035990 / 2.48MB) -> Method Called: entries
(0.039717 / 2.48MB) Returning No Results Content
(0.039776 / 2.48MB) -> Data Returned
(0.039810 / 2.47MB) Calling Class/Method: Channel/next_entry
(0.039927 / 2.47MB) -> Class Called: Channel
(0.040050 / 2.48MB) -> Method Called: next_entry
(0.052155 / 2.64MB) -> Data Returned
(0.052194 / 2.63MB) Calling Class/Method: Channel/prev_entry
(0.052289 / 2.63MB) -> Class Called: Channel
(0.052412 / 2.64MB) -> Method Called: prev_entry
(0.057468 / 2.64MB) -> Data Returned
(0.057514 / 2.62MB) - End Tag Processing -
(0.057564 / 2.62MB) - Processing Sub Templates (Depth: 1) -
(0.057585 / 2.62MB) List of Embeds: includes/header,includes/footer
(0.057649 / 2.63MB) Processing Sub Template: includes/header
(0.057666 / 2.63MB) Retrieving Template
(0.057680 / 2.63MB) Retrieving Template from Database: includes/header
(0.062643 / 2.63MB) Template Found
(0.080346 / 2.63MB) Template Type: webpage
(0.080386 / 2.63MB) Parsing Site Variables
(0.080424 / 2.63MB) Snippets (Keys): freelancer_version|site_id|site_label|site_short_name|last_segment
(0.080438 / 2.63MB) Snippets (Values): FALSE|1|Anna Valentine|default_site|welcome
(0.080608 / 2.64MB) Parse Date Format String Constants
(0.080636 / 2.64MB) Parse Current Time Variables
(0.080692 / 2.64MB) Parsing Segment, Embed, and Global Vars Conditionals
(0.080759 / 2.64MB) - Beginning Tag Processing -
(0.080775 / 2.64MB) - End Tag Processing -
(0.080794 / 2.64MB) Processing Advanced Conditionals
(0.081397 / 2.64MB) Processing Sub Template: includes/footer
(0.081419 / 2.64MB) Retrieving Template
(0.081433 / 2.64MB) Retrieving Template from Database: includes/footer
(0.082491 / 2.64MB) Template Found
(0.090303 / 2.64MB) Template Type: webpage
(0.090333 / 2.64MB) Parsing Site Variables
(0.090368 / 2.64MB) Snippets (Keys): freelancer_version|site_id|site_label|site_short_name|last_segment
(0.090381 / 2.64MB) Snippets (Values): FALSE|1|Anna Valentine|default_site|welcome
(0.090493 / 2.64MB) Parse Date Format String Constants
(0.090513 / 2.64MB) Parse Current Time Variables
(0.090535 / 2.64MB) Parsing Segment, Embed, and Global Vars Conditionals
(0.090564 / 2.64MB) - Beginning Tag Processing -
(0.090577 / 2.64MB) - End Tag Processing -
(0.090630 / 2.63MB) - End Template Processing -
(0.090642 / 2.63MB) Parse Global Variables
(0.092215 / 2.64MB) Template Parsing Finished
Memory Usage: 2,810,624 bytes
Replies
Niall Thompson 21 Sep 2012 18:26
Ok, i realised that I actually need to use the low reorder pref/next tags.
But now the entry is returning the same data for each entry.
i.e same image and text for each entry.
Niall Thompson 21 Sep 2012 18:59
got it!
Needed to add details about url_title and that solved it.
Low 22 Sep 2012 11:49
Ha! Excellent you got it sorted. :)