Jump to content

Passing a page object/ID to ProcessPageEditImageSelect?


Recommended Posts

I have a site structure with repeaters that contain page select fields, and then I am outputting the content of those page fields in a hierarchical layout.

I'd like to allow users to edit the content on the front-end, and for general text editing this works fine. The changes are saved to the original page, and wherever that page is inserted elsewhere in other layouts the changes are reflected.

When I try to insert an image into that page where no images exist, the system tries to use the layout page where the repeater is, rather than the page selected whose tinymce is being edited. So I have to navigate the page tree down to the original page being entered into the tree.

In most cases it would be redundant to pass an id to the page image select process because you are likely editing the content from the page url - so the url test works. But could that ID also get either passed or tested so that pages rendered as parts of other pages can have their images added to/edited without navigating through the tree to the original?

Link to comment
Share on other sites

  • 8 months later...

It's definitely tricky to manage when trying to edit content on the front end and ensuring that changes are reflected throughout the site, especially with images. In my case, I found that passing the page ID to the image select process was a bit of a game changer. It helped me avoid having to navigate the page tree each time. I was thinking of using something like an Identity Verification API (www.idanalyzer.com) to streamline the process further and add another layer of validation. I know it’s not the exact solution you're looking for, but I wonder if this could help in more complex setups.

Edited by Dwightsune
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...