Jump to content

Hook into Page Save - Pages field


Pete
 Share

Recommended Posts

I've got a Pages field that I've set to allow new entries whilst editing a page.

What I want to do is intercept the page save for the added content if possible and set another field on that page based on something in the main page.

So to make that clearer (yes please) I have a page with fields for:

  • Software name
  • Software category
  • Software version

Software version is my Page field and I want the ability to add new ones on-the-fly, so I set this field to Pages and allow new pages to be added.

The software version template itself has a Page field that links it to software name, so when the page above is saved, I want to intercept the software version page creation and link it back to software name.

Any ideas? I know it will be possible somehow, but I've not heard of anyone trying this before.

Link to comment
Share on other sites

Actually, scratch that. Since what I'm doing can have multiple software tagged to it (it's a knowledgebase system where some articles can overlap different packages) there is no quick and easy way to achieve this anyway.

Not to worry - new versions don't come out very often anyway.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...