Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-07-19 08:48:23

gemal
Member
From: Copenhagen, Denmark
Registered: 2007-01-09
Posts: 107
Website

Extensions tab disapper when using the Plugins tab

if I go to the Plugins tab by using index.php?event=plugin the Extensions tab disappear.

Offline

#2 2007-07-19 08:50:50

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Extensions tab disapper when using the Plugins tab

That’s intentional. When you’re on the plugins tab, no plugins are loaded to avoid plugins from interfering with the plugins tab itself. That way you can always disable a malfunctioning plugin.

Offline

#3 2007-07-19 08:58:52

gemal
Member
From: Copenhagen, Denmark
Registered: 2007-01-09
Posts: 107
Website

Re: Extensions tab disapper when using the Plugins tab

ruud wrote:

That’s intentional. When you’re on the plugins tab, no plugins are loaded to avoid plugins from interfering with the plugins tab itself. That way you can always disable a malfunctioning plugin.

Not sure that I fully understand. What would be the problem of always having a link to “index.php?event=pluginstall” ?

Offline

#4 2007-07-19 09:07:29

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Extensions tab disapper when using the Plugins tab

THere is no general “Extensionstab” – it only exists if a plugin registers it. And the link usually leads to the first plugin. To be able to know whether a plugin registers a tab under extensions we would have to load it (or create a half-assed parser to check specifically for that).
The other alternative is to make the plugin-format more complicated, and pull the registration of tabs out of the php-code, and add it to the meta-data of the plugin – and I don’t think the benefit is high enough to justify the additional complexity.

I am open to other suggestions.

Offline

#5 2007-07-19 09:09:38

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Extensions tab disapper when using the Plugins tab

Suppose you install a plugin that completely messes up the TXP private side, so you want to remove it. You can visit the plugins tab directly, by entering the url …textpattern/index.php?event=plugin (or something like that) manually. Since no plugins are loaded when you’re on that tab, they can’t mess things up, so you can remove the offending plugin without it standing in the way. Not loading plugins causes the extensions tab to disappear, because only plugins add tabs there.

Offline

Board footer

Powered by FluxBB