Jump to content

Hook to check if pagetable item should be deleted before save possible?


Recommended Posts

Posted

Hello @ all,

I have a pagetable field on a page and I want to know if it is possible to check if an item of the pagetable was selected for deletion.

Screenshot_1.jpg

As you can see I have clicked the basket icon to delete one item in the pagetable field.

What I want to achive is to check fe via a hook before saving the page if an item was activated for deletion, so I can use fe an if/else statement with different code lines.

Has anyone done something similar and has an idea how to achive this?

Best regards

Posted

Thanks, I have solved this problem now with another way, where I dont need hooking into the pagetable field, but I will take a look at Inputfield::processInput.

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
  • Recently Browsing   0 members

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