Jump to content
bernhard

is it possible to link directly to the content or delete tab?

Recommended Posts

hi everybody!

i'm linking directly to some tabs in my processpageedit form and it works great for my custom tabs. it does not work for the system tabs unfortunately :(

/page/edit/?id=123&field=mycustomtab (fieldset tab in the template editor)

shows only the fields inside this tab. I tried this:

/page/edit/?id=123#ProcessPageEditDelete

...but this does not work inside a pw-panel :(

any ideas?

Share this post


Link to post
Share on other sites
3 hours ago, bernhard said:

/page/edit/?id=123#ProcessPageEditDelete

hi @bernhard Can't you just use the complete URL instead?

Share this post


Link to post
Share on other sites

A link like /page/edit/?id=123#ProcessPageEditDelete works as expected when used as a "normal" link, so I think this issue is about the limitations of pw-panel rather than the link itself. 

  • Like 2

Share this post


Link to post
Share on other sites

@bernhard, try replacing this part of panel.js with...

if(typeof panelURL != 'undefined' && panelURL.length) {
    var hash = '';
    if(panelURL.indexOf('#') > -1) {
        var url_parts = panelURL.split('#');
        panelURL = url_parts[0];
        hash = '#' + url_parts[1];
    }
    panelURL += (panelURL.indexOf('?') > -1 ? '&' : '?') + 'modal=panel&pw_panel=';

    if($toggler !== null && $toggler.hasClass('pw-panel-links')) {
        panelURL += '2'; // don't update target of links in panel
    } else {
        panelURL += '1'; // update target of links in panel
    }
    panelURL += hash;
}

Let me know if it works for you and if so I'll suggest it on the PW GitHub.

  • Like 4

Share this post


Link to post
Share on other sites

thank you robin, that worked!

it's not directly what i wanted but almost the same :)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...