ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Filtering related entries by author and 'issue'

November 12, 2012 10:09am

Subscribe [1]
  • #1 / Nov 12, 2012 10:09am

    gregwrightjhb

    3 posts

    Coded myself into a corner and in urgent need of a solution.

    Scenario:

    I am creating a digital ‘magazine’ that is released on a weekly basis. Each release/issue is made up of listings that are authored by various authors. These listings are related to a master page which acts as the issue’s table of contents.

    One of the feature requests is that users should be able to filter listings by an individual author. The filtered results should be limited to the specific issue or master page that they are related too.  I have tried passing the author_id as a segment variable and using the following:

    {exp:channel:entries channel="auctions_weekly_master" show_future_entries="yes" author_id="{segment_4}" dynamic="no" status="open|closed"}
    
        {reverse_related_entries channel="auctions_weekly_listings"}
    
        {exp:gwcode_categories channel="auctions_weekly_listings" entry_id="{entry_id}" style="linear" backspace="1"}
        <li data-id="id-{count}" class="clearfix item three columns eq {cat_id} author_{author_id}" >
         <div class="one_third triggerBox">
          <div class="padder clearfix">
           {cat_name}, {/exp:gwcode_categories}
           <a href="http://{title_permalink=%27auctions-weekly/entry%27}" class="triggerLink">{aw_primary_image}{exp:imgsizer:size src="{image}" width="270" height="188" alt="{alternate}"}{/aw_primary_image}</a>
           <h3><a href="http://{title_permalink=%27auctions-weekly/entry%27}" class="triggerLink">{title}</a></h3>
    <p>       <a href="http://{title_permalink=%27auctions-weekly/entry%27}" class="link">view</a><br />
          </div><br />
         </div><!--triggerBox--><br />
        </li><br />
        {/reverse_related_entries}<br />
        {/exp:channel:entries

    No luck. How can I filter listings by author, limited by their relationship to the master page? Would really appreciate some help on this one. Got a deadline that is fast approaching.

  • #2 / Nov 14, 2012 11:36am

    Dan Decker

    7338 posts

    Hi Greg,

    Ok - let’s get a look at other limiting factors that could help us.

    hese listings are related to a master page which acts as the issue’s table of contents.

    Is that “page” a channel entry itself, or a template? If the master page is a channel entry, we may be able to use start_on= and stop_before= date parameters.

    Can I see the template that represents the master page? Reverse-related may not be the best path - we may be looking at perhaps passing some variables using embeds to pull the “related” entries.

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases