I have a custom CC list, and the pagination will not work. Clicking on various pages in the pagination does nothing.
You can see it happening here http://avonlocalschools.org/parents/staff-directory
The functionality was working until the site was upgraded from Joomla 3.2.2 to 3.2.3
Rick
You can see it happening here http://avonlocalschools.org/parents/staff-directory
The functionality was working until the site was upgraded from Joomla 3.2.2 to 3.2.3
Rick
The code being inserted into the pagination, to change pages, is like this:
The '#' sign being inserted is what is causing the issue. Using that link above but removing the '#' makes the link work. Problem is - how do I remove that?
http://avonlocalschools.org/parents/staff-directory#?limitstart=0
The '#' sign being inserted is what is causing the issue. Using that link above but removing the '#' makes the link work. Problem is - how do I remove that?
Hi Rick,
I took a look and can see the problem. I can only suspect that something has changed in the pagination or the SEF URL code in Joomla! 3.2.3 :-(
I think that ChronoForms just imports the Joomla! Pagination code.
Bob
I took a look and can see the problem. I can only suspect that something has changed in the pagination or the SEF URL code in Joomla! 3.2.3 :-(
I think that ChronoForms just imports the Joomla! Pagination code.
Bob
So I am at a loss what to do. My client needs the pagination.
Perhaps Max has some idea?
Rick
Perhaps Max has some idea?
Rick
Is there any solution to this? My pagination also worked perfectly until I upgraded to 3.2.3
Wallyhowe
Wallyhowe
Update on my problem above. I momentarily changed template to Prorostar and the pagination works. Changed back and it stopped working. So it is a template issue that I need to try to solve.
Wallyhowe
Wallyhowe
Hi,
I'm not sure what's the source of the problem, and if its template dependent then it will be even harder to find and fix.
Maybe you can upgrade this connection only to v5 ? (both v4 and v5 can work together) it doesn't use the Joomla pagination code and so it would not have this issue, we also have few handy tutorials to get you started quickly!
Other solutions may bet o disable SEF or skip CC from SEF processing if you have a 3rd party SEF extension.
Regards,
Max
I'm not sure what's the source of the problem, and if its template dependent then it will be even harder to find and fix.
Maybe you can upgrade this connection only to v5 ? (both v4 and v5 can work together) it doesn't use the Joomla pagination code and so it would not have this issue, we also have few handy tutorials to get you started quickly!
Other solutions may bet o disable SEF or skip CC from SEF processing if you have a 3rd party SEF extension.
Regards,
Max
Hi Max
Disabling SEF made rthe whole site fail. I am going off for 4 days but on return I will try to get to the bottom of the template issue by removing my custom template overrides to see if that solves it. Then I can reisnstate them one by one to find the culprit. If we can understand the problem it may help others.
Wallyhowe
Disabling SEF made rthe whole site fail. I am going off for 4 days but on return I will try to get to the bottom of the template issue by removing my custom template overrides to see if that solves it. Then I can reisnstate them one by one to find the culprit. If we can understand the problem it may help others.
Wallyhowe
Removing custom css in the template (Shape5 vertex) made no difference. Went back to Joomla 3.1 then 3.2 and both worked fine. Upgraded to 3.2.3 and pagination stopped again.
I will try CC 5 for this connection.
Wallyhowe
I will try CC 5 for this connection.
Wallyhowe
Hi Max
I copied the 3 files from libraries/cms/pagination in Joomla version 3.2.0 into the same folder in 3.2.3 and pagination works again. I am not expert enough in php to work out what the difference is and what it means. Any help?
Wally
I copied the 3 files from libraries/cms/pagination in Joomla version 3.2.0 into the same folder in 3.2.3 and pagination works again. I am not expert enough in php to work out what the difference is and what it means. Any help?
Wally
Hi Wally,
I have no idea too, and this is one of the reasons I made v5, it doesn't use the Joomla core pagination, and so it should work fineπ
If you have a simple listing of records then it may only take 5 minutes to do it in CCv5 and it will look better with Bootstrap styling enabled, just check my first CC v5 tutorial under the FAQs section.
Regards,
Max
I have no idea too, and this is one of the reasons I made v5, it doesn't use the Joomla core pagination, and so it should work fineπ
If you have a simple listing of records then it may only take 5 minutes to do it in CCv5 and it will look better with Bootstrap styling enabled, just check my first CC v5 tutorial under the FAQs section.
Regards,
Max
Hi Max
Works a treat!
Now - what do I do with my 51 forms and 18 other listings π€£ π’
Wally
Works a treat!
Now - what do I do with my 51 forms and 18 other listings π€£ π’
Wally
Well, as long as the others are working fine then don't touch them.
v5 should work fine with v4 on the same website, there is no need to replace any working forms or listings, only do when there is a necessity.
Regards,
Max
v5 should work fine with v4 on the same website, there is no need to replace any working forms or listings, only do when there is a necessity.
Regards,
Max
Thanks Max
Will upgrade on a needs only basis for each listing where pagination is required.
Does v5 chronoforms contain all the functionality of v4? If so I may plan a bit by bit upgrade.
Thanks for your help
Wally
Will upgrade on a needs only basis for each listing where pagination is required.
Does v5 chronoforms contain all the functionality of v4? If so I may plan a bit by bit upgrade.
Thanks for your help
Wally
Hi Wally,
CF v5 has few different features, but v4 still has more, so upgrading v4 forms is not really needed or important at the moment.
Regards,
Max
CF v5 has few different features, but v4 still has more, so upgrading v4 forms is not really needed or important at the moment.
Regards,
Max
Ok. Understood.
I presume a V4 form can redirect to a v5 listing by using the redirect user action?
I also presume it cannot redirect by using a chronoconnect task action though?
Wally
I presume a V4 form can redirect to a v5 listing by using the redirect user action?
I also presume it cannot redirect by using a chronoconnect task action though?
Wally
Hi Wally,
Yes, you can redirect using the redirect action in v4, but the task action will not work with v5
You have mentioned before that replacing the pagination files in Joomla fixed the issue, so if you think that its "better in your situation" to replace the files, or even do a file compare and find the problem then you should not skip that, because you have a LOT of listings online, just thought I should share this ideaπ
Regards,
Max
Yes, you can redirect using the redirect action in v4, but the task action will not work with v5
You have mentioned before that replacing the pagination files in Joomla fixed the issue, so if you think that its "better in your situation" to replace the files, or even do a file compare and find the problem then you should not skip that, because you have a LOT of listings online, just thought I should share this ideaπ
Regards,
Max
Hi Max
Thanks again for this dialogue.
I see the file replacement as a temporary work around rather than a fix. As Joomla gets further enhanced I can see two possibilities - pagination gets fixed or replacing the files no longer works.
Having cc5 as a standby seems a much better option for me on an as needs basis.
I am not a php expert - I will however ask my son to have a look.
The template guys are not able to help. I post their reply here:
Quote:
This is the error that this page is producing when you click on pagination:
ReferenceError: Joomla is not defined
...and the page to get source for: http://v2.zopim.com/?wTPxKZxxghtRtDXv8tWvxtnfupI7...
It's a very strange way of doing pagination if they're running it through javascript instead of standard href calls. The template is no way controlling that, the component chrono forms is outputting this; that's what this pagination appears to belong to, not the Joomla content pagination. You would need to contact the component's developer about this, as the template does not control this.
End quote.
Thanks again for this dialogue.
I see the file replacement as a temporary work around rather than a fix. As Joomla gets further enhanced I can see two possibilities - pagination gets fixed or replacing the files no longer works.
Having cc5 as a standby seems a much better option for me on an as needs basis.
I am not a php expert - I will however ask my son to have a look.
The template guys are not able to help. I post their reply here:
Quote:
This is the error that this page is producing when you click on pagination:
ReferenceError: Joomla is not defined
...and the page to get source for: http://v2.zopim.com/?wTPxKZxxghtRtDXv8tWvxtnfupI7...
It's a very strange way of doing pagination if they're running it through javascript instead of standard href calls. The template is no way controlling that, the component chrono forms is outputting this; that's what this pagination appears to belong to, not the Joomla content pagination. You would need to contact the component's developer about this, as the template does not control this.
End quote.
Hi Wally,
CCv4 is using the Joomla core pagination which uses Javascript I think, a small function submits the form when you click the pagination link, that's weird but that's how Joomla does it, you want to try it yourself ? simply go to the Joomla admin article manager and try it, going to the next page will not add a page count to the url, which means that the page counter was submitted, using a js call.
Did you try to use the pagination on one of the core Joomla templates ? if it does work then its a template conflict issue, I'm not sure really.
Regards,
Max
CCv4 is using the Joomla core pagination which uses Javascript I think, a small function submits the form when you click the pagination link, that's weird but that's how Joomla does it, you want to try it yourself ? simply go to the Joomla admin article manager and try it, going to the next page will not add a page count to the url, which means that the page counter was submitted, using a js call.
Did you try to use the pagination on one of the core Joomla templates ? if it does work then its a template conflict issue, I'm not sure really.
Regards,
Max
I'm with you on this Max.
I had tried the core Joomla templates and both worked so I agree it is a template conflict.
The Shape5 guys seem to be in denial over it though. I have some sympathy with them as it was a change in core Joomla from 3.2.0 to 3.2.3 that caused it without making any changes to their template. However, as no-one else seems to have a problem and core templates work i will have to make my own way. At least I have options that work at the moment.
I copied the Protostar pagination.php file from their template into the Shape5 one and pagination worked - albeit formatting all over the place - so it obviously bypassed the conflict.
I have posted on joomla forum so see if that gets anywhere. Not holding breath though.
Wally
I had tried the core Joomla templates and both worked so I agree it is a template conflict.
The Shape5 guys seem to be in denial over it though. I have some sympathy with them as it was a change in core Joomla from 3.2.0 to 3.2.3 that caused it without making any changes to their template. However, as no-one else seems to have a problem and core templates work i will have to make my own way. At least I have options that work at the moment.
I copied the Protostar pagination.php file from their template into the Shape5 one and pagination worked - albeit formatting all over the place - so it obviously bypassed the conflict.
I have posted on joomla forum so see if that gets anywhere. Not holding breath though.
Wally
Hi Wally,
It looks as though the template isn't loading the Joomla! core.js file. which includes the Joomla.submitform() function used in the Pagination*.
The are several ways to try to work round this:
a) the official one is to add this code:
b) It might be enough to just add the function:
c) You could also try loading the whole core.js file without MooTools - not sure if that might cause some side effects though
The simplest way to add PHP like this in CC is to put it into the CC WHERE box as that is always executed but you might need to add a valid WHERE query though like 1=1 if there isn't anything there already.
Bob
* My guess is because the template has been converted to use only jQuery and this function hasn't yet been converted in Joomla! :-(
It looks as though the template isn't loading the Joomla! core.js file. which includes the Joomla.submitform() function used in the Pagination*.
The are several ways to try to work round this:
a) the official one is to add this code:
<?php
JHtml::_('behavior.framework');
?>
This will load the entire MooTools framework and the core Joomla! script files.
b) It might be enough to just add the function:
<?php
$script = "
if (typeof(Joomla) === 'undefined') {
var Joomla = {};
}
Joomla.editors = {};
// An object to hold each editor instance on page
Joomla.editors.instances = {};
/**
* Generic submit form
*/
Joomla.submitform = function(task, form) {
if (typeof(form) === 'undefined') {
form = document.getElementById('adminForm');
}
if (typeof(task) !== 'undefined' && task !== "") {
form.task.value = task;
}
// Submit the form.
if (typeof form.onsubmit == 'function') {
form.onsubmit();
}
if (typeof form.fireEvent == "function") {
form.fireEvent('submit');
}
form.submit();
};
";
$doc = JFactory::getDocument();
$doc->addScriptDeclaration($script);
?>
c) You could also try loading the whole core.js file without MooTools - not sure if that might cause some side effects though
<?php
JHtml::_('script', 'system/core.js', false, true);
?>
The simplest way to add PHP like this in CC is to put it into the CC WHERE box as that is always executed but you might need to add a valid WHERE query though like 1=1 if there isn't anything there already.
Bob
* My guess is because the template has been converted to use only jQuery and this function hasn't yet been converted in Joomla! :-(
Bob,
I added the code:
To the WHERE clause and it worked perfectly.
Thank you SO MUCH for solving this issue!!!!!! π π π π
Rick
I added the code:
<?php
JHtml::_('behavior.framework');
?>
To the WHERE clause and it worked perfectly.
Thank you SO MUCH for solving this issue!!!!!! π π π π
Rick
Hi Bob
Worked a treat for me as well.
I will report it back to the template guys.
Beer on its way when i move the site to live and validate the installation.
Many, many thanks
Wally
Worked a treat for me as well.
I will report it back to the template guys.
Beer on its way when i move the site to live and validate the installation.
Many, many thanks
Wally
This topic is locked and no more replies can be posted.