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

[gv_entry_link] shortcode #548

Merged
merged 10 commits into from
Oct 14, 2015
Merged

Commits on Oct 13, 2015

  1. Configuration menu
    Copy the full SHA
    25d81b2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b029486 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a65b843 View commit details
    Browse the repository at this point in the history

Commits on Oct 14, 2015

  1. Fix missing index issue

    If users didn't have `copy_gravityviews` caps, the array would be empty.
    zackkatz committed Oct 14, 2015
    Configuration menu
    Copy the full SHA
    681e646 View commit details
    Browse the repository at this point in the history
  2. Create a new [gv_entry_link] shortcode

    This replaces the `[gv_delete_entry_link]` and `[gv_edit_entry_link]`
    shortcodes, and also adds a `read` option that makes it easy to
    directly link to an entry.
    
    Accepts the same attributes as the previous shortcodes:
    
    ```
    $action What type of link to generate. Options: `read`, `edit`, and
    `delete`. Default: `read`
    $view_id Define the ID for the View. If not set, use current View ID,
    if exists.
    $entry_id ID of the entry to edit. If undefined, uses the current entry
    ID, if exists.
    $post_id ID of the base post or page to use for an embedded View
    $link_atts Pass anchor tag attributes (`target=_blank` to open Edit
    Entry link in a new window, for example)
    $return What should the shortcode return: link HTML (`html`) or the URL
    (`url`). Default: `html`
    $field_values Only used for `action="edit"`. Parameters to pass in to
    the prefill data in Edit Entry form. Uses the same format as Gravity
    Forms "Allow field to be populated dynamically" {@see
    https://www.gravityhelp.com/documentation/article/allow-field-to-be-popu
    lated-dynamically/ }
    ```
    zackkatz committed Oct 14, 2015
    Configuration menu
    Copy the full SHA
    9954c3a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ffd3820 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9b9ae87 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    417bae6 View commit details
    Browse the repository at this point in the history
  6. Merge branch 'version/1.15' into feature/gv-entry-link-shortcode

    Conflicts:
    	readme.txt
    zackkatz committed Oct 14, 2015
    Configuration menu
    Copy the full SHA
    23afffd View commit details
    Browse the repository at this point in the history
  7. Easy wins for code coverage!

    zackkatz committed Oct 14, 2015
    Configuration menu
    Copy the full SHA
    3dd9714 View commit details
    Browse the repository at this point in the history