zotonic/zotonic — pull request #261 by kaos (2011-11-16 21:26:07+00:00)
Title: admin action "dialog_new_rsc": trigger custom actions for newly created ...

...resources.

The action will get an additional `id' argument of the newly created
resource.

Example (and only tested) use:

{% button text=_"Create a new Project"
action={dialog_new_rsc
cat="project"
nocatselect=1
redirect=0
action={with_args
action={link
predicate="project_member"
object_id=id
element_id="projects"
edge_template="_project_list_entry.tpl"
}
arg={subject_id id}
}
}
%}