Hi Louis,
On 2 Jul., 11:02, Louis Landry <
louis.lan...@joomla.org> wrote:
> Hi Robert,
>
> On Thu, Jul 2, 2009 at 3:24 AM, Robert Deutz <
rde...@googlemail.com> wrote:
>
> > Hi,
>
> > first it is not true that a plugin don't have a presentation part.
> > Most of the Content-Plugins have.
>
> Firstly, content plugins make up a small part of the plugins and events that
> are available with Joomla. There are currently 5 content plugins in the
> trunk I believe, and around 25 non-content plugins.
>
> Secondly, the only reason that most of those plugins exist is because we
> didn't get to dealing with them during the 1.5 release cycle. It was always
> the intention to move most of them right into com_content. Content plugins
> like "pagenavigation" and "pagebreak" and "vote" are really constructs of
> com_content and belong there, not in an abstract content plugin.
>
> Thirdly, architecturally, plugins are not designed to just render output.
> They exist to manipulate the application state and control flow during
> runtime. Certainly they can be used for all sorts of things -- one of which
> would be to render some output directly -- but that does not mean it is the
> best way to handle it.
>
What we are talking about, if we talk about the present or the future.
Atm plugins render output, no question. 1.6 goes the same way
>
>
> > Second, I can write this six lines of code, but can a template
> > designer do this, should he do this? I think he doesn't.
>
> A template designer wouldn't be writing that code, the person writing the
> plugin would. A template designer would simply be putting a layout in an
> appropriate folder specified by the plugin author.
And the content plugins that render code atm don't allow this or don't
go the way you have show.
>
> > Third, use the same strategie for the same problem, is have said this
> > already. I go a little bit more in detail to explain what I exactly
> > mean.
>
> > The Joomla! Framework is a pattern based framework, that use a named
> > based schema to find files. For a component e.g. com_xyz you have a
> > directory com_xyz and in this directory a file xyz.php that is
> > included, if someone call index.php?option=com_xyz. That is clear and
> > easy. For components and modules we use to implement the functionality
> > a MVC design. I won't go to much in detail here, but I'd like to say
> > it is our software design principle.
>
> > If we talk about plugins it is a little bit different. Plugin were
> > fired on events, so it possible that a plugin is executed many times
> > on different steps in application workflow. But this is only how we
> > execute a plugin at the end a plugin implements a functionality. And
> > here the circle is closing. It is functionality and we have a
> > software design principle, we use a MVC pattern.
>
> MVC is not a software design principle it is a design pattern, and actually
> the MVC pattern is only used for components.
It is our principle to use mvc for implementing functionality.
>
> There is a convention for calling a JModuleHelper::getLayoutPath() method
> which in turn tells you what file to include: either yours or one made
> available by a template developer.
Why not have a JPluginHelper::getLayoutPath() method ?
> There is no controller for the module by
> convention nor is there really a model. Obviously modules can load models
> from components, or optionally they *could* have their own, but the latter
> certainly isn't a convention we have made nor is it one that we have
> promoted.
> Plugins are very different from modules and plugins both in design and
> concept. Of course they "implement a functionality", so does a library or
> really anything. That doesn't mean that it should have a layout override
> designed for it.
>
> Components, Moduls and Plugin are the same, they implement
>
> > functionality. I came back to my third point: use the same strategie
> > for the same problem.
> > q.e.d.
>
> I'm sorry, but that q.e.d. is anything but. They are by no means the same.
> JArrayHelper implements a functionality too, but it isn't the same as a
> Component, Module, or Plugin either. It is not the same problem. You may
> be trying to solve the same problem with plugins, but that doesn't mean that
> it is the correct or best way to solve the problem.
>
Sorry Louis, but I don't get it why there is so many resistance.
It hurts nobody but it makes it easier for all.
I disagree, I (we) request
* for a additional function in JPluginHelper
* for a move of some files in subfolders
* and for a little bit refractoring of content-plugins
thats all.
If this is against the design goals of the system, it's time to think
about the design goals.
I don't know if my next sentence are politely and kindly enough. It is
not against you or anyone personally.
It seems to me that the core developers are very resistant again new
ideas those are a liitle bit besides there view. For me it is to much
fighting for such a little add on. Community involvement makes only
sence if this results in new or better things.
It is a little bit out of scope, but I have looked at the Feature
Tracker (order by prio) the first 5 pages 90% of the items are
untouched. Last modification date == open date. This annoyed people
and I know many people that are willing to help but the stand on the
floor calling "I will help" all doors are open but nobody like to
speak with them.
Kindly Regards,
Robert
> >
http://www.theartofjoomla.com/converting-old-extensions.htmlAll that
> > > does is notate what the legacy plugin does - it's not rocket science,
> > > fortunately.
>
> > > This is also a good time to remind, again, all devs legacy mode is NOT
> > > available in 1.6. The API is backward compatible where possible but
> > > there is no legacy mode. The 1.5 legacy mode was only intended to
> > > bridge the gap between the major changes from 1.0 to 1.5. If you are
> > > running your extensions on the native 1.5 API (and I mean native), you
> > > are "1.6 ready" in the sense that only minor changes are required for
> > > you to adjust to the new ACL, nested-set (menus and categories) and
> > > PHP requirements (unfortunately there are parts of the menus,
> > > categories and ACL systems that are just impossible to provide with
> > > 100% backward compatibility). If you want to discuss the implications
> > > of this further, please open up a new thread on this list. It's
> > > better to speak up early and be a part of the development process than
> > > be caught unawares when 1.6 stable arrives.
>
> > > Regards,
> > > Andrew Eddiehttp://www.theartofjoomla.com-the art of becoming a Joomla