Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2011-11-07 23:43:54
- frickinmuck
- Member
- Registered: 2008-05-01
- Posts: 118
Simple editing of custom fields from front end
I’m creating a tool sign-out page and need a simple way to edit the content of 3 of my custom fields based on user input.
1] Toggle signed in/signed out status
2] Select from pull-down menu to update condition of tool
3] Enter the new location of the tool into a text field
for example, the DeWalt cordless drill:
Currently signed out [ SIGN IN ] < click to sign tool back in
Currently in Normal working condition < select from list to update condition
Currently in Joe’s truck < update location (type in new location, tool shed)
I was planning on using smd_query to update the fields, but was just wondering if there is a plugin that addresses this type of functionality, or some better way of handling this?
Last edited by frickinmuck (2011-11-07 23:44:51)
The AI does not hate you, nor does it love you, but you are made out of atoms which it can use for something else.
Offline
Re: Simple editing of custom fields from front end
That seems a befitting use of smd_query to me. That is, unless smd_tool is released sometime soon.
Offline
Re: Simple editing of custom fields from front end
If the information about each tool is held in an article, then you can simply use mem_public_article
instead. You just have remember to pass the form the index field of the article being update, so it nows to update an existing article rather than create a new one.
I’m a big fan of smd_query
, but mem_public_article
really does all the processing for you and you can concentrate on what it looks like to the user.
Offline
#4 2012-03-07 02:41:51
- blur
- Member
- Registered: 2008-09-08
- Posts: 18
Re: Simple editing of custom fields from front end
aslsw66 wrote:
If the information about each tool is held in an article, then you can simply use
mem_public_article
instead. You just have remember to pass the form the index field of the article being update, so it nows to update an existing article rather than create a new one.
I’m trying:
<txp:mem_public_article form="my_form" success_form="success_form" article_id='<txp:article_id />' />
That creates a new article, i can’t find a way to update an specific article. Any ideas?
Offline
Re: Simple editing of custom fields from front end
txtstrap (Textpattern + Twitter Bootstrap + etc…)
Offline