By FishEagle on Thursday, 16 November 2017
Replies 1
Likes 0
Views 1.3K
Votes 0
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!
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
·
7 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post