By Guest on Saturday, 19 January 2019
Replies 12
Likes 0
Views 1.4K
Votes 0
I've asked for help with this before, but maybe I never explained properly. Anyway (wish me luck), here goes again...

Our Event Detail pages display category as link text, but with the link URL having this pattern:
<a class="ev_link_cat" href="/{events}/{category}/eventsbyweek/2019/01/19/43?evid=10985&title={event-title}" title="Category">{Category}</a>

I don't want users to be able to navigate to an Events by Week view. I want the link to simply be an up-link to the category page.

Please help me to just get that right.
Thanks in anticipation!
Vicki
(Running the latest version of JEvents on the latest Joomla!)
Hello,

So basically you just want to display a linked category within the event details is that right?

If so you can just use {{Category Link:CATEGORYLNK}} in your Event Details custom layout.

Many thanks
Tony
·
Monday, 21 January 2019 06:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Gah! I obviously don't know what I'm doing.

When I publish the edited custom Event Detail Page template, with {{Category Link:CATEGORYLINK}} instead of {{Category:CATEGORY}} it doesn't make any difference. The words/s of the category name still link to the eventsbyweek view!

I really need help to fix this. (I've also added another issue into Site Details (Private) comments. If you log in to correct one problem, it would be great to kill two birds...
·
Wednesday, 23 January 2019 12:13
·
0 Likes
·
0 Votes
·
0 Comments
·
I'm hoping to get support to solve this problem.
·
Tuesday, 29 January 2019 10:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Ahh I see the issue. I've made the change into the core and your override of defaultloadedfromtemplate.php line 668ish week.listevents has been changed to cat.listevents.

If you haven't made any changes to the defaultloadedfromtemplate.php I would advise removing this as an override as we can change this with more features in the future.

Many thanks
Tony
·
Tuesday, 29 January 2019 10:18
·
0 Likes
·
0 Votes
·
0 Comments
·
I never (consciously) applied any override and, thus, I don't know how to remove it.

Please do the change, or give me step-by-step instructions.

Thanking you, Tony!
Vicki
·
Tuesday, 29 January 2019 10:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Vicki,

Ok so for now then I would just rename:

/templates/your_template/html/com_jevents/helpers/defaultloadedfromtemplate.php
to:
/templates/your_template/html/com_jevents/helpers/defaultloadedfromtemplate.bak.php

In-case it's in place from someone else for some other reason.
·
Tuesday, 29 January 2019 10:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok. I'll do that. (I see that in the process you installed eXtplorer, which is quite handy. Thank you!)
·
Tuesday, 29 January 2019 11:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you! That finally fixed the problem!
·
Tuesday, 29 January 2019 11:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Great to hear! Thanks for letting us know.
·
Tuesday, 29 January 2019 14:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Doh! This was resolved a while back, but I have just rolled out a few new categories (still in Status: Registered at this point).

And I've found that, on events under pre-existing categories, all is well i.e. the CATEGORYLNK goes up to the category page.

On events under newly-created categories, the CATEGORYLNK goes up to https://ourdomain/etc/etc/monthcalendar/YYYY/MM/DD.

I don't understand why there's a distinction between the two sets - pre-existing and new categories - but I need the uplinks from all events to behave the same (naturally). As I don't understand how the fix was made, I'm asking for help.

Thanks!
Vicki
·
Saturday, 13 April 2019 18:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Are the new categories sub categories of a category? Nothing we do changes in the way the link is generated. We just pull it from the database.


Make sure all categories are available in the main menu item category selection or select none for all.

Many thanks
Tony
·
Tuesday, 23 April 2019 11:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Maybe we can discuss this in the other/new thread -
https://www.jevents.net/discussions/categorylnk-2-problems-1-re-emerging-1-new -
which I created after realising this one was Resolved (& I didn't know how to UN-Resolve it).

But before I go, I'll answer your points:
Yes, all the new categories are sub categories of a category (but then, so are the old, sibling sub categories which behave as wished).
They are all available in the selection for main menu items. (I hope I'm understanding your point.) That's how I added them to the menu.
·
Tuesday, 23 April 2019 12:49
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post