Neighbor Links Navigation: Difference between revisions

From Littledamien Wiki
Jump to navigation Jump to search
(Created page with "==Retrieve neighboring record ids== * Add a <code>get_neighbor_links()</code> routine for the content filtering class. ** Runs SQL to fetch the id's what should be the adjacen...")
(No difference)

Revision as of 14:04, 28 March 2012

Retrieve neighboring record ids

  • Add a get_neighbor_links() routine for the content filtering class.
    • Runs SQL to fetch the id's what should be the adjacent records in the sequence.
    • Must take into account current filters.
    • Neighbor id's are stored in the content filtering class's prev_id and next_id properties.

Links content include

include (COMMON_TEMPLATE_DIR."framework/navigation/neighbor_links.php");
  • Within the include the content object is referred to as $input.