Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Joomla API is not used for group categories (filterbar)

2 years 1 month ago
  • Alex N.'s Avatar
    Topic Author
  • Alex N.
  • Offline
  • Fresh Boarder
  • Posts: 12
  • Thank you received: 0
Licenses:
JomSocial Active

We use sh404SEF component for URL creation and it works fine with JomSocial except one area - filterbar in group categories, which is built without using the Joomla API, and therefore URLs are not recorded in the database, creating 404s

Seems like it is creating the URLs directly in javascript, which of course cannot work with database based URLs.

The code involved is in the file /components/com_community/templates/jomsocial/layouts/filterbar.html.php.

function joms_change_filter( value, type ) {
var url;

// Category selector.
if ( type === 'category' ) {
if ( value ) {
url = '<?php echo html_entity_decode(CRoute::_("index.php?option=com_community&view=groups&task=display&categoryid=__cat__")); ?>';
url = url.replace( '__cat__', value );
} else {
url = '<?php echo html_entity_decode(CRoute::_("index.php?option=com_community&view=groups&task=display")); ?>';
}

window.location = url;
return;
}

// Filter selector.
// @todo
}



This simply cannot work with fully SEF URLs.

2 years 1 month ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi,

Thank you for your input, we will forward this to our developer.

thank you!

2 years 1 month ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi,

To inspect this issue further, would you mind provide me backend and FTP access, please?

thank you!

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW