Welcome, Guest
Username: Password: Remember me

TOPIC:

Menu Item for city of venue. 7 years 8 months ago #18483

  • AchLive
  • AchLive's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 43
  • Thank you received: 3
Hi, I want to know if you can have a link (menu Item) to the city of venue.
For Jem the venue representing a place where the event takes place. Among the parameters of the office there is also the city. If I want a link to the city that I see all the events that take place in that city you can?
Thanks for the support

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

Menu Item for city of venue. 7 years 7 months ago #18727

hi AchLive,

Have to say that such thing ain't possible right now.

It is possible to have the eventslist-view (or any other view) limited to the city so the events listed will be based upon the choosen city but it will require some coding to be done. To make this happen the easiest thing would be to add an additional option in the xml of the view and then some code in the model/helper to catch the parameter.
(won't respond to PM)
==================================================================
running: pre-alpha JEM 4.x (custom version) + Joomla 4.0.0-beta7 + PHP 7.3

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

Menu Item for city of venue. 7 years 7 months ago #18862

  • AchLive
  • AchLive's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 43
  • Thank you received: 3
Hi Bluefox , thanks for your reply.
I just need a view for the city as you wrote.

It is possible to have the eventslist-view (or any other view) limited to the city so the events listed will be based upon the choosen city but it will require some coding to be done.

How can I do to have this feature? I do not know how and what to change in the xml file. This I think is very important and that can be very helpful to all users. I hope you can help me. Thanks for the support

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

Menu Item for city of venue. 7 years 7 months ago #18870

  • Hoffi
  • Hoffi's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 2279
  • Thank you received: 449
Hi AchLive,

one possible but of course not ideal way but without code changes would be to create a category for each city and attach every event additionally to the matching category. Then you could create menu items with Single category view.
But if you change the venue you must also change the category - a lot of work to have it consistent, I know.

On the other site a city filter is also not easy because you must create a menu item for each city you have in all your venues. And maybe some of them are little villages. Technically it's no problem, just a bit or lot of work. ;)
There's already a state filter used by some modules. A city filter would require the same work for this different field. The most work is within the eventslist model, the rest inside the view files and a bit language file I think.

Compared with the ACL think I'm currently sunken into that's a very easy task. :laugh:
Pessimists are optimists with experience!

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

Menu Item for city of venue. 7 years 7 months ago #18871

How can I do to have this feature? I do not know how and what to change in the xml file. I hope you can help me

well, maybe i'll take a look at it..

Not sure if this is what you want, but if you want to have some options to the eventslist-view then that can be done but it will be a personal-modification.

Basicly it's possible to add a "Venue" filter+city filter to the eventslist menu-item options. And i think it's even possible to show possible city's after a venue was selected but that might be a bit to advanced :)
(won't respond to PM)
==================================================================
running: pre-alpha JEM 4.x (custom version) + Joomla 4.0.0-beta7 + PHP 7.3

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

Last edit: by Bluefox.

Menu Item for city of venue. 7 years 7 months ago #18882

  • AchLive
  • AchLive's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 43
  • Thank you received: 3
Hi Hoffi , I have already thought about the solution you have proposed

one possible but of course not ideal way but without code changes would be to create a category for each city and attach every event additionally to the matching category. Then you could create menu items with Single category view.

I used this solution to a site that uses eventlist.
For Jem I thought that there was a different solution.
It seems strange that it was not expected because it is logical that a user searches for events in a city and not in a venue. A venue normally be subject to the city and not the other.

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

Time to create page: 0.523 seconds

Donate

If you find JEM useful and if you use it on your site, please consider a donation to the project.

Private Messages

You are not logged in.

Follow us......