Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds apr_loopctr shortcode. #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

mazoola
Copy link

@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