• Home
  • Get help
  • Ask a question
Last post 7 min ago
Posts last week 94
Average response time last week 34 min
All time posts 67852
All time tickets 10487
All time avg. posts per day 20

Helpdesk is open from Monday through Friday CET

Please create an (free) account to post any question in the support area.
Please check the development versions area. Look at the changelog, maybe your specific problem has been resolved already!
All tickets are private and they cannot be viewed by anyone. We have made public only a few tickets that we found helpful, after removing private information from them.

#1055 – Problem pagination with component OsProperty

Posted in ‘sh404SEF’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Thursday, 24 September 2015 17:08 UTC
dreamdev
Hello,
I face an issue with the pagination using sh404sef with the company osproperty.

I configure the component to use:
- USE DEFAULT HANDLER
- USE JOOMLA! ROUTER.php
- DISABLE SHURL
-TEXT STRING listing

I have url like this which display properties
/en/listing/rental/short-term-rental.html

But for the pagination, it didn't display I got only the url
en/listing/page-2.html?limit=21
en/listing/page-3.html?limit=21
so the sub-categories and criteria like rental/short-term-rental are not display.

For the property details same, it remove all the subcategories.

If for the first select filed, I select JOOMLA! ROUTER.php instead of DEFAULT HANDLER it's work well, but in that case the urls are not saved in database, so cannot configure url, cannot add the prefix ex LISTING... not using any features of sh404sef with this plugin.

Do you have a solution in order to tackle those issue?

Thx by advance,
Jack
 
Thursday, 24 September 2015 18:31 UTC
wb_weeblr
Hi

Unfortunately, pagination is very much dependant on the extension being used, when they don't come with an sh404SEF dedicated plugin.

We have anew version in development that has a compatible mode, and it may work with this extension. You can download it from here: xxxx

Once you've installed it, go back to "By components" and select this new option:


Then Purge URLS and see how it goes.

Rgds
 
Monday, 28 September 2015 16:32 UTC
dreamdev
Hello,
thank you.
It's solved the problem with the pagination.
But I can not display the text string in the url and it make problem with migration of my old site.
Also, with the configuration - USE DEFAULT HANDLER & USE JOOMLA! ROUTER.php, the urls for properties follow menu item so I have a lot of duplicate content.

As the only problem I face with this configuration is the pagination.
Can you tell me where I can look to solve this problem
- In sh404 component
- in the router.php file from the component.

Ideally, I would like only the pagination of this component follow menu item.

Maybe modifying the new file from sh404 ?

Thx by advance for support

Best
Tuesday, 29 September 2015 08:02 UTC
wb_weeblr
Hi

I am a bit confused now: which configuration do you want to use?

USE DEFAULT HANDLER & USE JOOMLA! ROUTER.php,

or

Use router.php with menu item?


As for making changes to the router.php or other places, that's always possible but extremely difficult, especially if you want to touch the pagination, which is not done in the router.php file, but separately.

Actually, I don't think the problem is here. If osProperty uses standard URLs, it should work fine. What are the full non-sef URL you get for paginated links ? (disable both sh404SEF and Joomla SEF, to see the actual non-sef the extension generated.

Rgds
 
Tuesday, 29 September 2015 09:43 UTC
dreamdev
Hi,
I would like to use
USE DEFAULT HANDLER & USE JOOMLA! ROUTER.php,

All is working, even the menu url display well ex:
/en/listing/rental/short-term-rental.html

But pagination doesn't work for it.

As requested, full non sef url is:
1. index.php?option=com_osproperty&view=ltype&type_id=2&Itemid=376&lang=en
----> which translate to sef url: /en/listing/rental/short-term-rental.html (take from menu item alias)
2. Pagination non sef url: index.php?option=com_osproperty&view=ltype&type_id=2&Itemid=376&lang=en&limitstart=21&limit=21
----> with configuration USE DEFAULT HANDLER & USE JOOMLA! ROUTER.php, translate to
en/listing/page-2.html?limit=21

When activate sh404sef, I got this in url management



So my question is where I have to look in order the pagination follow the current url structure
/en/listing/rental/short-term-rental.html
---> /en/listing/rental/short-term-rental/page-2.html
....

I confirm you pagination work for with the following configuration:

1. USE JOOMLA! ROUTER.php, & USE JOOMLA! ROUTER.php
2. USE DEFAULT HANDLER & Use router.php with menu item

Best regards,





Tuesday, 29 September 2015 14:48 UTC
wb_weeblr
Hi

Looking at your screenshot, I can see that the problem comes from a missing &limit=xx in the non-sef URL produced by osProperty (URLs have only &limitstart=xx, but misses the &limit variable).

Most likely, this is because osProperty does not use the Joomla JPagination class, but instead provides its own. Joomla also has this problem and thus sh404SEF provides a replacement class that properly insert the &limit=xx bit in the non-sef variable.

Does that ring a bell? can you find a JPagination class within osProperty? if yes, that's what needs to be modified, according to the changes made in sh404SEF own class, in /administrator/components/com_sh404sef/pagination.php.

If that cannot be achieved, then the only viable option is to use DEFAULT HANDLER & Use router.php with menu item.

Rgds
 
Wednesday, 14 October 2015 05:34 UTC
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.