Jump to content

$session->redirect($page->editURL) ... and then open Children tab


ottogal
 Share

Recommended Posts

Hi all,

to open a certain page for editing you can use 

$session->redirect($mypage->editURL);

But what when you would like to open the Children tab of that page instead? Just change it to

$session->redirect($mypage->editURL . '#ProcessPageEditChildren');

I found it hovering over that tab: The status line shows the additional "#ProcessPageEditChildren".

Perhaps this could be useful for some of you...

  • Like 1
Link to comment
Share on other sites

  • 1 year later...

I'm building a little dashboard... Part of it will be some shortcuts - directly linking to attribute pages (page references).

Now, I've tried to simply add the #ProcessPageEditChildren to the URL. But clicking such links never opens the children tab, i.e. 

<a href="../page/edit/?id=1040#ProcessPageEditChildren">

will always open with the first, default tab. The entire #foo is then removed from the URL.

This is with PW dev 81 + 84 (but afair I also stumbled over this issue with older versions).

Does anybody know how this can be done? Or maybe even when linking to the main tree-view: some sort of hashtag / query string to open parent page and show its children?

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