jojo_contact_fields.php

Jojo_contact_fields.php, a forum discussion on Jojo CMS. Join us for more discussions on Jojo_contact_fields.php on our Plugin Support forum.

Back to Forum Index : Back to Plugin Support   RSS
Jaijaz Jaijaz

7 Nov 2009
Posts: 215

In the past I have used this quite a bit to customise fields in the contact form for a particular site by putting a customised copy in the theme directory.

With rc2, this doesn't seem to work anymore. Looking through the code of the new plugin, it isn't obvious either. Is there something I'm missing with the latest release version?
If you not living on the edge you taking up too much space.
tom

Developer

tom

8 Nov 2009
Posts: 379

the name of the fields file was changed to jojo_contact_fields.php instead of the myriad variants that were in there previously, and it uses
foreach (Jojo::listPlugins('jojo_contact_fields.php') as $pluginfile) {
to get the file in order of the normal precedence.
I thought we'd caught it before the release (but apparently not): the function should be
Jojo::listPluginsReverse
so that it checks theme, plugins, base plugins in that order rather than the reverse (which I thought was the default but isn't).

It needs to be changed in both the sendEnquiry and getContent functions.
Jaijaz Jaijaz

8 Nov 2009
Posts: 215

Thanks Tom. All working.

I have to admit I thought Jojo::listPlugins used to do it in that assumed order and had never see Jojo::listPluginsReverse before.

I went to look at the svn version and notice a whole new function to go learn about, Jojo::findFiles

Thanks again.
If you not living on the edge you taking up too much space.
tom

Developer

tom

8 Nov 2009
Posts: 379

it's the same thing - but seeing as listPlugins doesn't actually list plugins, but finds files Mike though it might be worth renaming..
Back to Forum Index : Back to Plugin Support   RSS
You must be logged in to post a reply



You need to Register or Log In before posting on these forums.