Skip to content

Adds apr_loopctr shortcode.#4

Open
mazoola wants to merge 1 commit into
chetmac:masterfrom
mazoola:loopctr
Open

Adds apr_loopctr shortcode.#4
mazoola wants to merge 1 commit into
chetmac:masterfrom
mazoola:loopctr

Conversation

@mazoola
Copy link
Copy Markdown

@mazoola mazoola commented Sep 1, 2017

Counts iterations of apr_loop[x] and returns current iteration number.

Two optional variables: loop and start.

  • loop identifies which apr_loop[x] to count; e.g., loop="apr_loop2".
    loop may be specified as 'apr_loop[x]' or 'loop[x]'. If no loop specified,
    defaults to 'apr_loop'.
  • start specifies the index number for the first iteration. (For instance,
    if displaying records in batches of 50, on the second page one might
    specify [apr_loopctr start="51"].) If no start specified, defaults to 1.

Counts iterations of apr_loop[x] and returns current iteration number.

Two optional variables: loop and start.
- loop identifies which apr_loop[x] to count; e.g., loop="apr_loop2".
  loop may be specified as 'apr_loop[x]' or 'loop[x]'. If no loop specified,
  defaults to 'apr_loop'.
- start specifies the index number for the first iteration. (For instance,
  if displaying records in batches of 50, on the second page one might
  specify [apr_loopctr start="51"].) If no start specified, defaults to 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant