SEF problem with publications

17 views
Skip to first unread message

M. A.

unread,
Mar 11, 2016, 12:26:43 PM3/11/16
to J!Research Support
With Sh404sef & the sef_ext file written for com_jresearch, pagenav is not working. I have ruled out the template. If I use the attached sh303sef file (renamed slightly to not confuse it with other com_jresearch.php files sent to you), the source is this:

<div class="frontendPagination">
Results 1 - 15 of 1029<br/><ul>
<li class="pagination-start"><span class="pagenav">Start</span></li>
<li class="pagination-prev"><span class="pagenav">Prev</span></li>
<li><span class="pagenav">1</span></li>
<li><a href="/ita30/" class="pagenav">2</a></li>
<li><a href="/ita30/" class="pagenav">3</a></li>
<li><a href="/ita30/" class="pagenav">4</a></li>
<li><a href="/ita30/" class="pagenav">5</a></li>
<li><a href="/ita30/" class="pagenav">6</a></li>
<li><a href="/ita30/" class="pagenav">7</a></li>
<li><a href="/ita30/" class="pagenav">8</a></li>
<li><a href="/ita30/" class="pagenav">9</a></li>
<li><a href="/ita30/" class="pagenav">10</a></li>
<li class="pagination-next"><a title="Next" href="/ita30/" class="hasTooltip pagenav">Next</a></li>
<li class="pagination-end"><a title="End" href="/ita30/" class="hasTooltip pagenav">End</a></li>
</ul>
</div>
</div>



With com_jresearch set to use router.php within sh404sef:

<div class="frontendPagination">
Results 1 - 15 of 1029<br/><ul>
<li class="pagination-start"><span class="pagenav">Start</span></li>
<li class="pagination-prev"><span class="pagenav">Prev</span></li>
<li><span class="pagenav">1</span></li>
<li><a href="/ita30/publications/publications.html?lang=en&amp;limit=15&amp;start=15" class="pagenav">2</a></li>
<li><a href="/ita30/publications/publications.html?lang=en&amp;limit=15&amp;start=30" class="pagenav">3</a></li>
<li><a href="/ita30/publications/publications.html?lang=en&amp;limit=15&amp;start=45" class="pagenav">4</a></li>
<li><a href="/ita30/publications/publications.html?lang=en&amp;limit=15&amp;start=60" class="pagenav">5</a></li>
<li><a href="/ita30/publications/publications.html?lang=en&amp;limit=15&amp;start=75" class="pagenav">6</a></li>
<li><a href="/ita30/publications/publications.html?lang=en&amp;limit=15&amp;start=90" class="pagenav">7</a></li>
<li><a href="/ita30/publications/publications.html?lang=en&amp;limit=15&amp;start=105" class="pagenav">8</a></li>
<li><a href="/ita30/publications/publications.html?lang=en&amp;limit=15&amp;start=120" class="pagenav">9</a></li>
<li><a href="/ita30/publications/publications.html?lang=en&amp;limit=15&amp;start=135" class="pagenav">10</a></li>
<li class="pagination-next"><a title="Next" href="/ita30/publications/publications.html?lang=en&amp;limit=15&amp;start=15" class="hasTooltip pagenav">Next</a></li>
<li class="pagination-end"><a title="End" href="/ita30/publications/publications.html?lang=en&amp;limit=15&amp;start=1020" class="hasTooltip pagenav">End</a></li>
</ul>
</div>
</div>

I've turned off caching on the site as well. Any thoughts?
sh404sef_com_jresearch.php

M. A.

unread,
Mar 11, 2016, 3:55:08 PM3/11/16
to J!Research Support
One error - I was using Simple encoding and not Joomla Router.

M. A.

unread,
Mar 17, 2016, 2:01:32 PM3/17/16
to J!Research Support
I've learned if I set the sh404sef settings to use the plugin, the Member individual page urls look nice, but you can't switch pages on the publications list (or table) page. 

If I use router.php, the publications pages work fine, but the Member pages are ugly.

I resorted to setting it up to use the sh404sef plugin first, to establish the member urls, then deleting the publications sh404sef entry and changing the settings to use the router.php.

Luis Galárraga

unread,
Mar 20, 2016, 3:24:41 PM3/20/16
to jresearc...@googlegroups.com
Hi,

I am so sorry to come back so late to this issue.

If I use router.php, the publications pages work fine, but the Member pages are ugly

What do you mean by "ugly"?


I resorted to setting it up to use the sh404sef plugin first, to establish the member urls, then deleting the publications sh404sef entry and changing the settings to use the router.php.
 
I am actually not familiar with sh404sef. Carlos was who at some point provided support for this component. @Carlos: is J!Research 3.x supposed to work with sh404sef?

I am doing some final testing before releasing the new version of J!Research!

Best,
Luis

 


--
You received this message because you are subscribed to the Google Groups "J!Research Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jresearch-supp...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

M. A. Ladd

unread,
Mar 21, 2016, 11:42:20 AM3/21/16
to jresearc...@googlegroups.com
Below is an example of the URL for the same staff person using router.php vs the sh404sef plugin. You can see why I consider the router.php one ugly.

The "ugly" URL using router.php for a staff member:

The pretty one using the sh404sef plugin:




M. A. Ladd 
Harbor to the Bay

M. A.

unread,
Mar 25, 2016, 2:10:19 PM3/25/16
to J!Research Support, mal...@harbortothebay.org
Fixed it. I'm not much of a coder. I noticed that in components/sh404sef/sef_ext/com_jresearch.php, there was a difference between the publications and other "list" type case statements. In Carlos' code, I simply added case 'publications': under the case publicationslist entry and pagination magically worked.

I've attached the sef_ext files with my addition.

cheers!

M. A. 
com_jresearch_sh404sef.zip

Luis Galárraga

unread,
Apr 5, 2016, 5:46:11 AM4/5/16
to jresearc...@googlegroups.com, Harbor to the Bay
Hi,

This is very kind from you. I will then add the fix to the new version which I expect to announce next Monday.

Best,
Luis

Luis Galárraga

unread,
Apr 9, 2016, 9:13:30 AM4/9/16
to jresearc...@googlegroups.com, Harbor to the Bay
I have included the fix. I also removed the modules which will not be anymore maintained such as cooperations and teams. The new version is coming soon.

Thanks,
Luis
Reply all
Reply to author
Forward
0 new messages