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

Conversation

zackkatz
Copy link
Member

@zackkatz zackkatz commented Oct 14, 2015

┆Issue is synchronized with this Asana task

If users didn't have `copy_gravityviews` caps, the array would be empty.
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 added a commit that referenced this pull request Oct 14, 2015
@zackkatz zackkatz merged commit a37326c into version/1.15 Oct 14, 2015
@zackkatz zackkatz deleted the feature/gv-entry-link-shortcode branch October 14, 2015 21:25
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.

None yet

1 participant