Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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)
Offline
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)
Offline
Offline
Offline
Re: Link to plugin preferences in Txp 4.6
Offline
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
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