Diferencia entre revisiones de «Soluciones practicas»

De ActionApps Documentacion
Saltar a: navegación, buscar
(Calendario de eventos)
(Galeria de fotos)
Línea 1: Línea 1:
  
== Galeria de fotos ==
+
== Como editar un item  en un website publico==
 +
 
 +
Tu tienes preparado un formulario de envio anonimo publico y deseas usarlo para editar items. Como hacerlo?
 +
 
 +
Hay un script fillform.php3 asociado con las utilidades javascript en include/fillformutils.php3.
 +
Este script toma el id de item largo de la variable my_item_id y llama a las funciones javascript para buscar los campos y llenarlos apropiadamente.
 +
 
 +
Tu debes usarlo de esta manera:
 +
 
 +
file anonymous.shtml
 +
 
 +
<!--#include virtual="/anonym.html"-->
 +
<!--#include virtual="/aaa/fillform.php3"-->
 +
<!--#include virtual="/bottom.html"-->
 +
 
 +
 
 +
 
 +
Than you can call anonymous.shtml?my_item_id=... to show the edit form filled with old values.
 +
 
 +
There are two additional parameters which most users will not need: use "form = formname" when you changed the name of the form containing the fields (usually it is "f"). Use "notrun = 1" if you want to fill the controls e.g. only after clicking somewhere.
 +
 
 +
Only items posted by public website and not updated in the AA admin can be edited this way - a flag ITEM_FLAG_ANONYMOUS_EDITABLE cares about it. It is reset every time you send an item with itemedit.php3.
 +
 
 +
The same script may be used to refill conditions on a search page - see this.

Revisión del 23:18 2 jun 2006

Como editar un item en un website publico

Tu tienes preparado un formulario de envio anonimo publico y deseas usarlo para editar items. Como hacerlo?

Hay un script fillform.php3 asociado con las utilidades javascript en include/fillformutils.php3. Este script toma el id de item largo de la variable my_item_id y llama a las funciones javascript para buscar los campos y llenarlos apropiadamente.

Tu debes usarlo de esta manera:

file anonymous.shtml



Than you can call anonymous.shtml?my_item_id=... to show the edit form filled with old values.

There are two additional parameters which most users will not need: use "form = formname" when you changed the name of the form containing the fields (usually it is "f"). Use "notrun = 1" if you want to fill the controls e.g. only after clicking somewhere.

Only items posted by public website and not updated in the AA admin can be edited this way - a flag ITEM_FLAG_ANONYMOUS_EDITABLE cares about it. It is reset every time you send an item with itemedit.php3.

The same script may be used to refill conditions on a search page - see this.