Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
j2.5 plugin scriptfile not being processed
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Miljan  
View profile  
 More options Jul 27 2012, 7:41 am
From: Miljan <mil...@aleksic.es>
Date: Fri, 27 Jul 2012 04:41:42 -0700 (PDT)
Local: Fri, Jul 27 2012 7:41 am
Subject: j2.5 plugin scriptfile not being processed

Hi,

I'm new here, sorry if I do anything not expected =/

I have succesfully made the scriptfile work on a module reading trough
joomla docs and this group posts but I'm not able to do the same with a
plugin.

The file is processed by PHP but is not copied to the install folder and
the preflight function for ex is not executed. I double checked everything,
the scripfile class name is the same as in the Extensions DB Element field.

I'm attaching my code example, if anybody can give me some tip :)

Thank you very much,
Miljan

  zoofilter.zip
5K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
elin  
View profile  
 More options Jul 27 2012, 9:06 am
From: elin <elin.war...@gmail.com>
Date: Fri, 27 Jul 2012 06:06:04 -0700 (PDT)
Local: Fri, Jul 27 2012 9:06 am
Subject: Re: j2.5 plugin scriptfile not being processed

I believe this is already in the platform tracker as an issue but no one
has done any code to solve it ... it would be most welcome I think if
someone would do that.

Elin


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Miljan  
View profile  
 More options Jul 27 2012, 9:56 am
From: Miljan <mil...@aleksic.es>
Date: Fri, 27 Jul 2012 06:56:58 -0700 (PDT)
Local: Fri, Jul 27 2012 9:56 am
Subject: Re: j2.5 plugin scriptfile not being processed

Elin,

I didn't find that bug in the tracker but I did find another similar wich
point me out to try to use this as the class name of the scripfile:
"plg$group$nameInstallerScript" => plgsystemzoofilterInstallerGroup.

That did the trick :)

I'm not sure why modules are using mod_$... and plugins plg$... without the
'_' but will try to figurate out and if intentional for some reason edit
the docs about it.

Thanks ;)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sam Moffatt  
View profile  
 More options Jul 27 2012, 12:39 pm
From: Sam Moffatt <pasa...@gmail.com>
Date: Fri, 27 Jul 2012 09:39:31 -0700
Local: Fri, Jul 27 2012 12:39 pm
Subject: Re: [jgen] Re: j2.5 plugin scriptfile not being processed
Components are com_componentname, modules are mod_modulename and
plugins are classes in the form plgGroupPluginname.

The choice is the logical appending to those base unique names.

Cheers,

Sam Moffatt
http://pasamio.id.au


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Miljan  
View profile  
 More options Jul 27 2012, 1:03 pm
From: Miljan <mil...@aleksic.es>
Date: Fri, 27 Jul 2012 10:03:38 -0700 (PDT)
Local: Fri, Jul 27 2012 1:03 pm
Subject: Re: [jgen] Re: j2.5 plugin scriptfile not being processed

Hi Sam,

following that logic plugins should be plg_GroupPluginname. I'm not sure if
that missing underscore is on purpose because plugin usually don't user the
'plg_' structure.

BTW, I found out that the in the pre/postflight functions($type, $parent)
the $type returns 'Update' in module script, but 'update' in the plugin.
All this tiny details are nothing more than confusing, once aware is just
about to adapt.

Thanks,
Miljan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sam Moffatt  
View profile  
 More options Jul 27 2012, 2:39 pm
From: Sam Moffatt <pasa...@gmail.com>
Date: Fri, 27 Jul 2012 11:39:10 -0700
Local: Fri, Jul 27 2012 2:39 pm
Subject: Re: [jgen] Re: j2.5 plugin scriptfile not being processed
I'm not sure I understand your logic. "class plgGroupPluginname
extends JPlugin" is how every plugin I've seen in Joomla works, if you
name your plugin "plg_GroupPluginname" you will likely encounter
problems. The logical extension is that this is already the name
defined for plugins, it's already unique and it's in the style.
Perhaps we could have done a better job of naming things when they
were introduced but that time is a good half a decade ago. Components
are similarly named "com_componentname" and modules are named
"mod_modulename" so these are used for them as these are prefixed
names used for these extension types. So the rule is to take what it
is the existing unique name and append the value. For plugins this is
different because plugins are actually a composite of two unique
values plus "plg" as a prefix instead of "plg_". An unfortunate side
effect of being established for a while is legacy decision which with
hindsight turn out to be bad.

The installer adapter for modules should be passing lower case so
that's a bug somewhere that should be fixed.

Cheers,

Sam Moffatt
http://pasamio.id.au


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Miljan  
View profile  
 More options Jul 27 2012, 3:24 pm
From: Miljan <mil...@aleksic.es>
Date: Fri, 27 Jul 2012 12:24:17 -0700 (PDT)
Local: Fri, Jul 27 2012 3:24 pm
Subject: Re: [jgen] Re: j2.5 plugin scriptfile not being processed

OK, I now understand that the installer class name must be the same as the
class of the plugin, comp, etc... thanks for pointint that out. Of course I
understand that from j1.0 to 2.5 the decisions about names can't be perfect.

Thank you for you time and patience Sam ;)

Miljan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »