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

Can not use Pods Shortcode Where To Select Item To Update With Form #2284

Closed
Shelob9 opened this issue Jul 9, 2014 · 1 comment · Fixed by #2392
Closed

Can not use Pods Shortcode Where To Select Item To Update With Form #2284

Shelob9 opened this issue Jul 9, 2014 · 1 comment · Fixed by #2392
Assignees

Comments

@Shelob9
Copy link
Contributor

Shelob9 commented Jul 9, 2014

While I can echo pods( 'foo', array( 'where'=> 't.ID' => 7 ) )->form() or echo pods( 'foo', array( 'where'=> 't.post_title' => 'bar' ) ) to edit a specific item [pods name="foo" form="1" where="t.ID = 7 "] and [pods name="foo" form="1" where="t.post_title = 'bar' "] will create new items.

This is an issue since, if I'm reading the page on special magic tags correctly, I should be able to use a special magic tag, such as {@get.foo} or {@id} in the where clause of the shortcode, but not in ID parameter.

The goal here is to put output a form, via shortcode, to edit a specific item, but not current post, with it's ID or post_title being setting in a GET variable.

@Shelob9 Shelob9 added this to the Pods 3.1 milestone Jul 9, 2014
@carlosrovira
Copy link

Very needed. All ways to "link" request vía GET, POST or whatever way that could be valid are really needed since a pods developer will need it to wire a a pods app without the need of writing PHP code templates and only configuring (so maintain the development outside the theme scope with the benefit of switching themes more easily)

Thanks Josh to log this important bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants