Main menu

Forum


× Help Forum English

Displaying the event details on the Home page in error?

  • PJ_Robinson
  • Topic Author
  • New Member
  • New Member
More
2 days 13 hours ago - 2 days 13 hours ago #18998 by PJ_Robinson
I have installed the iCagenda Pro version on the website I am currently developing for our non-profit Egyptology website, based in Canada. On that site, I have an 'Events Calendar' page that includes, on the right-hand edge, a calendar month, using the iCagenda-Calendar module. On the left-hand edge, I have a menu of the various Event categories (for example, the option to list local events set up for specific cities, events set up at national level, events related to our annual conference and fund raising events. In the centre of the page, I have included an Event Listing using the iCagenda Event List module.

Using the menu on the left (option 1), if the visitor selects a category that gives the desired list of events filtered for that category of events, and clicking on an individual event then takes the visitor to a page specifically giving the details of that event, based on the information entered when that event was created.

If, however, the visitor clicks either on a the 'pop up event title' from clicking on a 'Calendar Day' in the calendar on the right of the page (option 2), or on one of the list of next events in the central Event List module (option 3), while the details of the event appear, they actually appear at the bottom of the Home page. Hovering over the links for option 1, which works the way I want it to work, the link would appear to be:
<website URL>/index.php/all-events/<event title>/<event date and time>.
Options 2 and 3, however, appear to link to:
<website URL>/index.php/component/icagenda/<event title>/<event date and time>

I really would like these 2nd and 3rd options to point to the same page (ie a 'clean' details page of the specific event), rather than appear at the very bottom of the Home page. Is there an overide to the code or some other means of making that happen? I have looked through the modules and also through the other options in the component and cannot find any references to linked pages or URLs. Could it be anything to do with the file com_icagenda\src\helper\RouteHelper.php where line 52 gives the following:
        $link = 'index.php?option=com_icagenda&view=event&id=' . $id;
or something similar? Please note that I have not edited any of the various PHP or other code in the component, nor made any overrides to the website for iCagenda.

For reference, I am using Joomla 6.0.3 with Gantry 5, and a specific template layout for the Event Calendar page that locates the three sections in a Main, Aside and Sidebar section. I can provide images of the layout and page if need be. I am currently setting up the website offline but can upload the website as it is at present online, if need be. I am guessing that the details from options 2 and 3 are placed on the 'Page Content' section of the Home page.

Thank you for any pointers or suggestions.   

Peter Robinson
The Society for the Study of Egyptian Antiquities, Canada (SSEA)
 
Last edit: 2 days 13 hours ago by PJ_Robinson.

Please Log in or Create an account to join the conversation.

  • PJ_Robinson
  • Topic Author
  • New Member
  • New Member
More
2 days 2 hours ago - 2 days 2 hours ago #19000 by PJ_Robinson
After further testing, after adding an image to at least one event, with option 2 or 3, the links go straight to the details pages for the events (of those I've tested). So does that mean that I'd have to have 'seeded' at least one event with an image for the links to work correctly? Those events in the past, however, still go to the home page, and it only has affected future events, it would seem.
Having also then removed the image from the 'working' future event, the future events still go correctly to the Event Details page. On that basis, therefore, I am guessing that Future events will correctly go to the details page, but previous events may not. I have a couple more events planned for the current month, so should be able to see if ALL past events default to the Home page, or just the initial ones I set up a couple of days ago, when incorporating the extension into the website.
Any comments from other users, or developers, or from Cyril and team will be appreciated.
Thanks
Peter Robinson (SSEA)
Last edit: 2 days 2 hours ago by PJ_Robinson.

Please Log in or Create an account to join the conversation.

  • Lyr!C
  • Lyr!C's Avatar
  • Administrator
  • Administrator
  • Lead Developer
More
1 day 10 minutes ago #19001 by Lyr!C
Hello,

And welcome!

As you have a pro subscription, i recommend you to use the Pro tickets support: www.joomlic.com/support

There, i give an advanced support, and faster reply ;-)

And if you open a private ticket, i can help you too with an admin access, to setup iCagenda as you want it. (but as you wrote, the site is not online yet).

So, as a quick explanation (which is valid for any extension, and Joomla articles as well), about URL routing:
If you have a SEF URL of kind [DOMAIN]/index.php/component/icagenda/[EVENT], that means there's no menu item published that can display the event, and so the default site page is used to display the event details view.

It works the same for articles module of Joomla.

But, in iCagenda modules (calendar and iC Event list, as you've got the Pro version), there's option to change the default behavior.
That means you can select a specific menu item of type "list of events" in the calendar module options, to display all events using this parent menu link.
And an additionnal option allows you to display event only if it meets the filters options (by date, category, access...) of the menu item settings.

So, depending on how you've set up the menu items, there are multiple setting possibilities.

The event does not require an image to work, so it was due to another setting changed somewhere else (menu item and or module options).

When (as a general usecase) you want only one link to list events, and filter to display only upcoming events, a solution to show correctly the past event details view can be to create an hidden menu item of type list of events (if hidden in menu, not visible, but can then be used for details view) and to set it with no filtering or only show past events.
But if you main visible link has as alias something generic such as "events", then you don't need (for a good SEO and URL writing) a second menu item, and then you can force module to always use this menu item in the module options "Link to menu" (which is on "auto" by default).

I hope this gives you a bit more information on how the link system works in iCagenda (and Joomla as well)?

Best regards,
Cyril

Latest version : iCagenda 4.0.3
We recommend every user to keep iCagenda updated.
Don't forget to have your Joomla!™ up-to-date!

Do you like iCagenda?
I would appreciate if you could take 5 minutes to post a review on JED (Joomla Extensions Directory) .

File Attachment:

Please Log in or Create an account to join the conversation.

  • PJ_Robinson
  • Topic Author
  • New Member
  • New Member
More
18 hours 15 minutes ago #19008 by PJ_Robinson
Thank you for this, Cyril. I already have a 'hidden menu' so I was able to quickly and easiily add the 'past events list' option to that (as well as a Data Compliance agreement option for new registered members). Your instructions were easy to follow and worked perfectly first time! So thank you again.
I also hope that this thread helps anyone else who has a similar issue and they can resolve their problems just as quickly and easily.
Peter

Please Log in or Create an account to join the conversation.

Moderators: Lyr!C
Time to create page: 0.045 seconds

Follow Us

Create your Joomla templates with Template Creator CK

acymailing logo new