Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2016-06-25 10:33:16

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 860
Website

Link to plugin preferences in Txp 4.6

Hi,
I use preferences in some of my plugins but I can’t see how to make the Options link work in 4.6; localhost:8888/textpattern-master/textpattern/index.php?event=prefs#prefs_group_my_plugin still takes me to the last viewed prefs.
Is there a way to target a defined prefs group?

Last edited by NicolasGraph (2016-06-27 09:28:29)


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

Offline

#2 2016-06-27 09:03:59

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 860
Website

Re: Link to plugin preferences in Txp 4.6

Anyone? If we now have PREF_PLUGIN shouldn’t we be able to link the plugin Options link to the plugins preferences?

Here is how I redirect the Options link for now…

function oui_quote_options() {
    $url = '?event=prefs#prefs_group_oui_quote';
    header('Location: ' . $url);
}

…but, of course, it has no effect on the jQuery ui prefs tabs.

Last edited by NicolasGraph (2016-06-27 09:50:14)


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

Offline

#3 2016-06-27 12:03:08

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 860
Website

Re: Link to plugin preferences in Txp 4.6

Continue here and there.


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

Offline

#4 2016-06-27 12:37:13

etc
Developer
Registered: 2010-11-11
Posts: 5,053
Website GitHub

Re: Link to plugin preferences in Txp 4.6

Please test this branch.

Offline

#5 2016-06-27 13:00:42

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 860
Website

Re: Link to plugin preferences in Txp 4.6

etc wrote #299996:

Please test this branch.

Thanks, it works for me.


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

Offline

#6 2016-09-03 04:35:22

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,075
Website Mastodon

Re: Link to plugin preferences in Txp 4.6

textpattern-master

After upgrading to the latest build I deleted the above named folder after installing all the peices. but when seconds that folder re-apperared and now has the following dir structure:

textpattern-master/sites/site1/public/admin and setup

these last two files seem to be aliases to files.

Is this normal? or is it something to do with my server?


…. texted postive

Offline

#7 2016-09-03 08:12:12

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,595
Website

Re: Link to plugin preferences in Txp 4.6

bici, I think you meant to post this to another thread (the 4.6 beta 3 maybe?).

Aside from that, the textpattern-master folder is (I expect) just the wrapper for the whole set of textpattern installation files, you only need the contents of it. I’ve no idea about the re-appearing (maybe it wouldn’t delete them and next time you refreshed they were still there), but the files and aliases you mention are for multi-site textpattern installations, and if yours is a normal installation, you can safely dispense with the /sites folder + contents altogether.


TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB