- monthcalendar/2011/11/-
- eventsbyweek/2011/11/12/- (day is always first day of the week)
- eventsbyday/2011/11/06/-
- eventdetail/1646/-/event-title
- eventdetail/1646/-/weely-attendance-test
- Task part of the URL...
So if you want to customize these new URLs, now it is really easy using the language overrides possibilities of Joomla! and JEvents. You just have to follow these steps:
- Create the folder: {JOOMLA!}/{YOUR TEMPLATE}/language/
- Inside this folder create a folder for your language: {JOOMLA!}/{YOUR TEMPLATE}/language/{LANGUAGE_CODE}. For instance, if your language is English from Great Britain you should create this folder: {JOOMLA!}/{YOUR TEMPLATE}/language/en-GB/
- Create a file called: {LANGUAGE_CODE}.com_jevents.ini. In our example it would be en-GB.com_jevents.ini
- Inside that file place the following code:
; Please be aware that these strings are going to be part of the URL of the site.
; DO NOT USE NON-ASCII CHARACTERS IF POSSIBLE as this might create some compatibility issues with some hosts.
; Start of URL STRINGS
JEV_SEF_ICALREPEAT_DETAIL="eventdetail"
JEV_SEF_DAY_LISTEVENTS="eventsbyday"
JEV_SEF_MONTH_CALENDAR="monthcalendar"
JEV_SEF_WEEK_LISTEVENTS="eventsbyweek"
JEV_SEF_YEAR_LISTEVENTS="eventsbyyear"
JEV_SEF_CAT_LISTEVENTS="eventsbycategory"
JEV_SEF_RANGE_LISTEVENTS="daterange"
JEV_SEF_DAY_LISTEVENTS="eventsbyday"
; End of URL STRINGS - Replace the text inside the double quotes with your desired translation for each URL
- Upload the file to the recently created folder
Please be aware that if you use the same string for all the URLs, the system will not be able to detect which part of the component have to show and it will not work as expected.