Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Faceted Navigation for ExpressionEngine

Faceted Navigation for ExpressionEngine

John Henry Donovan

August 26, 2011
Tweet

More Decks by John Henry Donovan

Other Decks in Technology

Transcript

  1. Users are searching for an item in a structure where

    all facets of an item are a possible entry point PROBLEM SOLUTION Allow the users to navigate the information by progressively selecting desired facets of the information items.
  2. •WHEN THERE IS GOOD META DATA IN PLACE USE DON’T

    USE •WHEN CONTENT NATURALLY FORMS FACETS •YOUR USERS UNDERSTAND THE FACETS •USERS PREFER THE ACTUAL SEARCH •VERY SMALL COLLECTION OF CONTENT •CONTENT IS IMPOSSIBLE TO RELATE
  3. <?php $entry = "{segment_2}"; if (($entry == "") || ($entry

    == "category") || preg_match("^P[0-9]{1,}$^",$entry) ){ ?> {embed="/directory/listing/"} <?php }else{ ?> {embed="/directory/more/"} <?php } ?> /directory/index PHP :On Parse: Input
  4. {exp:channel:categories channel="directory"} <a href="{path='directory/index'}"> {category_name} </a> {exp:query sql="SELECT count(exp_category_posts.entry_id) AS

    post_count FROM exp_category_posts WHERE exp_category_posts.cat_id = '{category_id}' "} ({post_count}) {/exp:query} {/exp:channel:categories}