Menu Content

Support

> Forums, FAQs & Paid Support
Support forum for customers who have purchased paid JoomSEF extension. Archive only, no new post can be added.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.
  • Page:
  • 1

TOPIC: Phoca Gallery Sef Extension no SEF url detail view

Phoca Gallery Sef Extension no SEF url detail view 15 years ago #23616

  • scoutingborculo
  • OFFLINE
  • Posts: 15
Joomla 1.7.0 Stable
Joomla SEO Enabled Yes
Use Apache mod rewrite enabled Yes (with .htaccess file)
Joomsef 4.1.0
Phoca Galleryy Sef Extension 3.0.0
Phoco Gallery 3.0.2

I have created a menu item with the name photobook linked to the Phoca Gallery » List Of Categories (Categories View) component in the Main Menu tree.

The SEF link at the Front Site is correct created as /photobook

I have created a category 2011 with a sub category album-name. The category url is also correctly turned into a SEF link /photobook/2011/album-name

However when I hoover over a thumbnail in the album it shows a non SEF url resulting in an 404 error. At the beginning there is a double index.php added which results in the 404 error. Question is however why the detail url is not SEF.

/index.php/index.php?option=com_phocagallery&view=detail&catid=2:album-name&id=1:img4451&tmpl=component&Itemid=201

With Joomsef disabled using only Joomla Basic SEF the link to the Detail looks like this and is working correctly.

/multimedia/photobook/2-album-name/detail/2-img4451?tmpl=component

Please provide a working solution for the detail url not been created with Joomsef enabled.


Edit 1:

Been digging the code of Phoca found something interesting in
/components/com_phocagallery/views/category/view.html.php

At line 1233 and 1235

 
$siteLink = JRoute::_('index.php?option=com_phocagallery&view=detail&catid='.$category->slug.'&id='. $items[$iS]->slug.'&Itemid='. JRequest::getVar('Itemid', 0, '', 'int') );
} else {
$siteLink = JRoute::_('index.php?option=com_phocagallery&view=detail&catid='.$category->slug.'&id='. $items[$iS]->slug.'&tmpl=component'.'&Itemid='. JRequest::getVar('Itemid', 0, '', 'int') );
 


After placing a / in front off index.php the double index.php in the detail url is working but only for Detail view.

 
$siteLink = JRoute::_('/index.php?option=com_phocagallery&view=detail&catid='.$category->slug.'&id='. $items[$iS]->slug.'&Itemid='. JRequest::getVar('Itemid', 0, '', 'int') );
} else {
$siteLink = JRoute::_('/index.php?option=com_phocagallery&view=detail&catid='.$category->slug.'&id='. $items[$iS]->slug.'&tmpl=component'.'&Itemid='. JRequest::getVar('Itemid', 0, '', 'int') );
 



Edit 2:

Clean install Joomsef, Phoca extension and Phoca Gallery

Uninstall process:
-------------------------

Removed Phoca Gallery within Joomla
Removed Joomsef and extensions within Joomla
Removed files from server
Removed components records from database

Install Process:
-------------------------

Installed Phoca Gallery

With basic Joomla Sef support all links are created correctly and working.

Menu item url = /multimedia/photobook
Category url = /multimedia/photobook/category/2-album-name
Photo detail url = /multimedia/photobook/2-album-name/detail/1-img4451?tmpl=component

Installed Joomsef 4.1.0.

With Joomsef enabled SEF url looks like this after cleaning cache and Purge SEF url’s. Photo detail is a non SEF url and is not working due to a double index.php in the url.

Menu item url = /multimedia/photobook
Category url = /multimedia/photobook/category/2-album-name
Photo detail url = /index.php/index.php?option=com_phocagallery&view=detail&catid=2:album-name&id=1:img4451&tmpl=component&Itemid=220

Installed JoomSef Phoca Extension

SEF url are created for menu item and Category view and working. Again the Photo detail url is a non sef url and not working resulting in a 404 error.

Menu item url = /photobook
Category url = /photobook/2011/album-name
Photo detail url = /index.php/index.php?option=com_phocagallery&view=detail&catid=2:album-name&id=1:img4451&tmpl=component&Itemid=220
Last Edit: 15 years ago by scoutingborculo. Reason: Fixed problem with configuration parameter
The topic has been locked.

Re: Phoca Gallery Sef Extension no SEF url detail view 15 years ago #23645

  • scoutingborculo
  • OFFLINE
  • Posts: 15
Hello,


Fixed with a configuration parameter at Joomsef 4.1.0. At the Global Configuration - Advanced tab I have set “SEF URLs using component template” from No to Yes. Detail Photo link is now correctly created and working as:

/photobook/2011/album-name/img-4451
The topic has been locked.

Re: Phoca Gallery Sef Extension no SEF url detail view 14 years, 11 months ago #24438

  • edwinmooi
  • OFFLINE
  • Posts: 8
I had the same problem.
Solution worked for me.
The topic has been locked.
  • Page:
  • 1
User Login Empty