JEM-Project icon indicating copy to clipboard operation
JEM-Project copied to clipboard

Strange comportment: when there is a venuecalendar

Open jojo12 opened this issue 2 years ago • 12 comments

When I have a venue calendar and I click in eventlist or event detail on the venue link of a venue, I normally should reach the venue detail of this venue. But I only reach the venue calendar of the clicked venue (even when I don't have a menue for this venue!)

jojo12 avatar Mar 19 '23 09:03 jojo12

I don't see the issue, could you indicate more details or capture view?

mckillo avatar Mar 20 '23 07:03 mckillo

capture isn't possible, I can't capture a switch! To reproduce (in jem4test.joomla.com) I created a menue item: "Lokalkalender" for Pétanque-Platz Kalkhof. This works! Then I go to "Agenda"= Simplelist and click on the link of a venue. Without "venue calendar" I get the detail view of venue. (like set in JEM settings) But now I get a venue calendar of the clicked venue.

jojo12 avatar Mar 20 '23 08:03 jojo12

When I disable the menue item "Lokalkalender", then the link is correct to the venue details view!

jojo12 avatar Mar 20 '23 08:03 jojo12

In this case, in a issue of Joomla but It depends of the menu active created. When Joomla creates your page for the menu Agenda, there are a lot link, for each one, Joomla check if the link exits in a active menu (in your JL).

In this eventlist view, the venue link are of this type: 'index.php?option=com_jem&view=venue&id=1:name_place'

If venue link exists, \components\com_jem\helpers\route.php - getVenueRoute($id) call to Joomla, Joomla will find any link of menu with the type of option and view, and if it exists, change your link to frienly links (alias menu).

You have this error becuase JEM don't find any menu for: option=com_jem&view=venue&id=1 option=com_jem&view=venues&id=1 but if it found a link to menu: option=com_jem&view=venue (You have one of this type: option=com_jem&view=venue&layout....) --> Check it: See URI od this URL https://jem4test.joomla.com/index.php/lokalkalender Take the alias menu and change it.

Solution: Create a unpublish menu of type: JEM venues and you'll have the right link for each venue in Agenda page.

mckillo avatar Mar 20 '23 12:03 mckillo

When I said, unpublish menu, is a active menu into group menu (no main menu, other) no visible as module.

mckillo avatar Mar 20 '23 12:03 mckillo

Wow! You're so excellent! But it's good to know that. I didn't know

jojo12 avatar Mar 20 '23 12:03 jojo12

In my opinioin, it's a issue of design, when use layout into view. Joomla check typically URL with &option and &view attributes, but if there is any menu with same attribute + &layout, Joomla does not detect it.

mckillo avatar Mar 20 '23 12:03 mckillo

Workaround is a no visible menu for venues and categories. :- )

mckillo avatar Mar 20 '23 12:03 mckillo

In current version, this is as Joomla is working and as JEM was designed. Solution from JEM: review JEM structure, it'll convert calendar layout in views as pure views

mckillo avatar Mar 20 '23 21:03 mckillo

What should we do with this?

Heklaterriol avatar Apr 18 '23 21:04 Heklaterriol

I think, this should be mentioned somewhere. When I know it, then there's a way to prevent, but this needs an action of the admin

jojo12 avatar Apr 19 '23 04:04 jojo12

I think that this issue could be closed or left open if we want to convert the layouts to views. What do we do?

mckillo avatar Oct 20 '24 16:10 mckillo