Hello
I m looking for a way to do a pmForm (pagemaster plugins), where an automatic task will be done after saving the main publication. In fact, i would like to know how to do post / pre process task at the "saving publication" moment.
Indeed, i ve done a workaround for pagemaster to handle many to many relationship
See
http://community.zik…componentid-137.htm
and eventually http://support.zikul…pic-topic-29166.htm
In order to transform the workaround as a form plugin, i need to automatically create a "linked" publication, ie a publication with two fields, that will do the many-to-many link with the destination publication.
At this time, i didn't manage to find a sample where such operation are done, is there a way to do this ?
Thanks in advance
Mumuri.
PS : in zk.de post, i m talking of a temp "core_pid" , but i think that it can be avoid.
edited by: mumuri, Jun 28, 2009 - 06:09 AM
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- rgasch created topic »Using PageUtil::addVar() to load script code« 11:48 AM
- michiel responded to »password problem« 10:01 AM
- mazdev responded to »Hide "Register new account" and change template to 3 col« 07:50 AM
- mesteele101 created topic »Zikula 1.3.3 - Site Search 1.5.2 - Unable to turn off plug-ins« 07:48 AM
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
pnForm pmForm plugins
-
- Rank: Developer
- Registered: May 17, 2004
- Last visit: Apr 08, 2010
- Posts: 386
-
- Rank: Softmore
- Registered: May 22, 2004
- Last visit: Apr 03, 2010
- Posts: 451
I don't use pagemaster but in Pagesetter the workflows can be custom configured to do anything one can imagine so long as it's PHP...
the Pagesetter workflow looks like:
Code
<action id="submit">
<title>Submit Request</title>
<description>Submit new Request</description>
<permission>author</permission>
<nextState>approved</nextState>
<operation online="1">createPublication</operation>
<operation recipient="$moderatorMails" subject="$notificationSubject">mailNewOfficialsMessage</operation>
</action>
you can put any workflow operation in there before or after "createPublication" and they'll be executed in that order upon submission of the publication...
--
Burnham Racing
Illinois Cycling Association -
- Rank: Developer
- Registered: May 17, 2004
- Last visit: Apr 08, 2010
- Posts: 386
i don't know if this type of workflow are supported in pagemaster, but in any case the problem is on a different level, i wan't to do a plugin for many-2-many relationship, and this doesn't have anything to do with workflow, it's not on the same level.
- Moderated by:
- Support
