Thursday, 16 November 2017
  1 Replies
  1.5K Visits
0
Votes
Undo
Hi All,

I need help with redirecting/blocking the .../eventsbyyear/... url/directory.

I want to prevent the view/crawl of "Events by Year", thus .../eventsbyyear/2016... .../eventsbyyear/2017... .../eventsbyyear/2018... etc. needs to be blocked or redirected back to the main monthly calendar view (url). Simply put, I don't want to view events using "year", only using month (by default), day and week.

It seems I can get it to work with 301 redirect in the .htaccess file, but is it maybe possible to make use of the com_jevents/views/geraint//year/view.thml.php (or similar) file? Might be more accurate/effective to do it this way?

Hope you understand my question.

Thanks!
7 years ago
·
#195383
Accepted Answer
0
Votes
Undo
Hello,

You would then create a template override and just remove the code with the override in place nothing would be output. You could look into a php redirect incase someone genuinely managed to get there.

Please see:https://www.jevents.net/frequently-asked-questions/customising-layouts

Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

7 years ago
·
#195383
Accepted Answer
0
Votes
Undo
Hello,

You would then create a template override and just remove the code with the override in place nothing would be output. You could look into a php redirect incase someone genuinely managed to get there.

Please see:https://www.jevents.net/frequently-asked-questions/customising-layouts

Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

There are no replies made for this post yet.