Fork me on GitHub

pnForm pmForm plugins  Bottom

  • 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
  • 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
  • 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.

This list is based on users active over the last 60 minutes.