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.

Way to remotely set channel parameter limit via button?

September 14, 2013 1:46am

Subscribe [1]
  • #1 / Sep 14, 2013 1:46am

    Sunnyland

    66 posts

    I’m looking for a simple and direct way (if any) to quickly let users click an element to remove the limit from a channel.

    That is, I want to set a limit to begin with, but something quick and easy like a “Read More” button would remove the limit, thus expanding the channel to show all entries. In this case, a trade history list compiled from user entries.

    I want it to be very easy to view all entries at once, but I don’t want to paginate since I am using an ordered list to get the numbering, which is necessary for the type of data I want to display;
    (and since numbering natively doesn’t seem to be possible since entries are filtered by author, which apparently is either not possible to do natively from the channel:entries tag, or doesn’t co-operate with the count function anyway - either way, I cant number the entries using count).

    Basically, I don’t want it to be a drawn out process for the user to view the whole list at once quickly, but I don’t want to display it completely to begin with for layout reasons - a “Read More” button being my best option.

    Here’s the channel:entries tag.

    <h2>
         History of this trade-up.
        </h2>
    <p>    <ol><br />
        {exp:channel:entries channel="trades" sort="asc" limit="8" paginate="bottom"}<br />
         {if segment_2 AND "{author}"=="{segment_2}" OR "{segment_2}"=="" AND "{author}"=="busdriver_jow"} <br />
          <li><br />
           <a href="#" rel="noopener .{url_title}" title="{title}" target="_blank">_        {trade_time} > _ <span class="{item_quality} thc">{if item_quality!="unique"}{item_quality} {/if}{if effect!="none"} {effect} {/if}{title} </span>_       </a><br />
          </li><br />
         {/if}<br />
        {/exp:channel:entries}<br />
        </ol><br />
    <a href="#" title="Read More" class="read_more_button">Read More</a>

     

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

ExpressionEngine News!

#eecms, #events, #releases