• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Default Itemid with Upcoming events module

Default Itemid with Upcoming events module 11 years 9 months ago #23915

  • oorzaak
  • oorzaak's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 17
Hi,

I hop e you can help me think up a solution for this:

In RSEvents Pro I made categories corresponding to a number of artists. Each event on the site will get categorized with only one category (a content based decision).

Each artist has their own page / menu item on the site. Here we have a main article and a few modules showing news articles and also an upcoming events modules for RSEvents Pro. Each artist's upcoming events module shows only their own events and the default item id is their own menu item, obviously. This is running fine.

On the Home page of the site I've put an Upcoming Events module showing all artists = categories, and that is where trouble starts. Because all categories are involved here, I cannot set a default Itemid. When clicking an event you are taken to the Itemid of the first artist in the menu, regardless of the category that's assigned to the event.

Would there be a way to point to the Itemid that is associated with the category? As these Itemid's are outside the RSEvents tables I suppose some overriding will be involved. I have no problem with that, as long as I can put this in a template override or similar safe location.

Kind regards,
Frits
The administrator has disabled public write access.

Default Itemid with Upcoming events module 11 years 9 months ago #23916

  • oorzaak
  • oorzaak's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 17
After creating this topic I also submitted a support ticket on this subject.

Just for the record: the answer was that this requires some custom coding in a template override. There was no example code from an earlier, similar project. So I'll just give it a try. If I'm successful and I'll have the time for it, then I'll report my solution here.


Frits
The administrator has disabled public write access.

Default Itemid with Upcoming events module 11 years 9 months ago #23922

  • oorzaak
  • oorzaak's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 17
Well I doubt if I should give full code of my solution as it involves (a) quite some sql tweaking and (b) some hard coded search strings that are specific for my site. I can give you a hint though:

The RS Joomla support guys helped me to find the location of the details() function, which loads all event data based on a list of event ids. I did a lot of table joining in order to get from the event id to the desired menu id. And in this process I had to throw in some hard coded search strings.

But I ended up having the item ids. And I swapped these for the itemid parameter that is used in the default.php of the upcoming events module to create the url. Bingo!

Now I only have this problem left: the module override is stored safely in a template override but the override of the details() function is not. I'll ask the RS Joomla guys again for a solution.


Kind regards,
Frits
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!