Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#2 2011-11-08 00:14:56

maruchan
Member
From: Ukiah, California
Registered: 2010-06-12
Posts: 596
Website

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

#3 2011-11-08 11:37:07

aslsw66
Member
From: Canberra, Australia
Registered: 2004-08-04
Posts: 342
Website

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

#5 2013-03-10 17:43:51

whaleen
Member
From: Portland
Registered: 2006-05-11
Posts: 373
Website

Re: Simple editing of custom fields from front end


txtstrap (Textpattern + Twitter Bootstrap + etc…)

Offline

Board footer

Powered by FluxBB