Author Topic: Gallery image (list view) shows different url from sobi field (title) url  (Read 2333 times)

0 Members and 1 Guest are viewing this topic.

Offline Valdonatas

Helo,

I have an issue of some entries not being displayed in details view - sobi shows list of all entries.
I am using gallery rc 2.4, sobisef rc 1.6, sobi 2.9.2.3, joomla 1.5.15, joomla sef enabled, sobi cache disabled, joomla extended menu items and any of my entries could be added to 5 categories.
Gallery image is strangely showing (under any of menu items, linking to a certain sobi subcategory) different path (when sobisef is enabled) from the sobi custom fields path (ini my case - title). Here are two urls:

image url (supposed to show details view of an entry): http://nuopamatu.lt/statybiniai-darbai/medzio-konstrukcijos/_catid/105/muro-darbai-namu-statyba-teritorijos-tvarkymas.html.

and title url: http://nuopamatu.lt/statybiniai-darbai/medzio-konstrukcijos/uab-primtela-mediniu-stogo-konstrukciju-projektavimas-ir-gamyba.html
Both of these urls are not working - instead I get a list of all entries.
As you notice, gallery adds /_catid/105 for some reason. I don't think that's correct. When sobisef is deactivated I get urls:
for gallery image (details view): http://nuopamatu.lt/statybiniai-darbai/medzio-konstrukcijos?sobi2Task=sobi2Details&____catid=105&sobi2Id=29
for title (details view): http://nuopamatu.lt/statybiniai-darbai/medzio-konstrukcijos?sobi2Task=sobi2Details&catid=105&sobi2Id=29
As you see, the path differs only by how catid is displayed. I think that's all what is causing me problems. so where can I change something so that urls would be the same (catid would be displayed as catid, not as ____catid in the urls above).

And in root list (which I get after clicking any of the above links) gallery image is showing url the same as title and when clicking you get details view. So what could be the problem?

Regards,
Donatas


« Last Edit: 06. February 2010, 12:22:22 by Valdonatas »
Country: Lithuania Lithuania |  OS: Windows XP Windows XP |  Browser: Firefox 3.5.7 Firefox 3.5.7 | View Profile

Offline aboututila

Greg,

Can you please look at this problem and check how the URL linking the image displayed by the Gallery plugin in the V-Card view to the SOBI2 Entry Details View is being generated.
This issue was originally reported as a SobiSEF plugin problem (Refer Sobi sef not working properly) but on further investigation I suspect the problem lies with the URL's being generated by the Gallery plugin in the V-Card view.

In the V-Card view the URL's linking the SOBI2 Title to the Entry Details View appear to be correct SobiSEF URL's,
but the URL's linking the Gallery Image to the Entry Details View appear to be incorrect.

I can confirm Valdonatas is using;
Joomla! 1.5.15
SOBI2 RC 2.9.2.3
SobiSEF RC 1.6
Gallery plugin RC 2.4

Valdonatas's web site is in the Lithuanian language xml:lang="lt-lt", if this is relevant.

Does the Gallery plugin pass its URL's through the function sobi2Config::sef($url)?
For example;
# Convert a SOBI2 URL to a SobiSEF URL
    $url = sobi2Config::sef($url);

the code above will produce SobiSEF URL's if the SobiSEF plugin is enabled, and,
also produce non-SEF ('standard' SOBI2 URL's) if the SobiSEF plugin is disabled or not installed.

Or perhaps, because of the foreign language character set being used by Valdonatas's web site, there may be an encoding issue.
Refer PHP functions urlencode, and htmlentities

Regards - Mark
« Last Edit: 06. February 2010, 17:24:48 by aboututila »
Country: Honduras Honduras |  OS: Windows XP Windows XP |  Browser: Firefox 3.5.7 Firefox 3.5.7 | View Profile

Offline Greg Hunt

  • Quality & Testing
  • Sobi Hero
  • *
  • Posts: 1069
  • Reviews:

    What is it?

It's possible I'm not using SEF urls I will have to take a look at the code.

Might be Monday at this point

Greg
Country: Canada Canada |  OS: Windows Vista/Server 2008 Windows Vista/Server 2008 |  Browser: Firefox 3.5.7 Firefox 3.5.7 | View Profile

Tags: