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 11: Línea 11:
 
file anonymous.shtml
 
file anonymous.shtml
  
−
<code><!--#include virtual="/anonym.html"-->
+
<nowiki><!--#include virtual="/anonym.html"-->
 
<!--#include virtual="/aaa/fillform.php3"-->
 
<!--#include virtual="/aaa/fillform.php3"-->
−
<!--#include virtual="/bottom.html"--></code>
+
<!--#include virtual="/bottom.html"--></nowiki>
  
  

Revisión del 23:19 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

<!--#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.