Diferencia entre revisiones de «Soluciones practicas»

De ActionApps Documentacion
Saltar a: navegación, buscar
(Como editar un item en un website publico)
(Como editar un item en un website publico)
Línea 8: Línea 8:
  
 
Tu debes usarlo de esta manera:
 
Tu debes usarlo de esta manera:
 
+
Dentro del archivo
 
file anonymous.shtml
 
file anonymous.shtml
 +
Colocar
  
 
<nowiki><!--#include virtual="/anonym.html"-->
 
<nowiki><!--#include virtual="/anonym.html"-->
Línea 16: Línea 17:
  
  
 +
Entonces tu puedes llamarlo asi 
 +
 +
anonymous.shtml?my_item_id=...
 +
 +
para editar el formulario llenado con los viejos valores
 +
 +
Hay dos parametros adicionales que muchos usuarios no necesitarán:
 +
usar "form=formname" cuando tu cambies el nombre del formulario que contiene los campos (usualmente  es llamado "f"). Puede usar "notrun = 1" si tu deseas llenar los controles e.g. solamente despues de clickar en algun lugar.
  
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.
 
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.
 
The same script may be used to refill conditions on a search page - see this.

Revisión del 23:26 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: Dentro del archivo file anonymous.shtml Colocar

<!--#include virtual="/anonym.html"--> <!--#include virtual="/aaa/fillform.php3"--> <!--#include virtual="/bottom.html"-->


Entonces tu puedes llamarlo asi

anonymous.shtml?my_item_id=...

para editar el formulario llenado con los viejos valores

Hay dos parametros adicionales que muchos usuarios no necesitarán: usar "form=formname" cuando tu cambies el nombre del formulario que contiene los campos (usualmente es llamado "f"). Puede usar "notrun = 1" si tu deseas llenar los controles e.g. solamente despues de clickar en algun lugar.


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.