Welcome, Guest
Username: Password: Remember me

TOPIC:

Missing "add venue" button in frontend 5 years 10 months ago #22486

I can't help but I understand the problem. I resolved it, making a template override in which choose of venue is at the top of the form. So when there is not such venue. I didn't loose a lot.
on JEM 2.3.3 stable in latest Joomla (3.10.2) Protostar php7.4.15
Personally I use t4_B5 template with t4_system plugin framework with bootstrap 5 and fontawesome)
(I prefer free "Signal" or paid "Threema" instead of "Whatsapp".)
The following user(s) said Thank You: znort

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

Missing "add venue" button in frontend 5 years 10 months ago #22487

Thank's Jojo for the reply

but the point is different, like I said this code work very well, I don't understand why, is not implemented in the new jem, take a look, this one open the add venue page inside a modal box and insert the new venue directly, so you can add the venue without exit from the add event page, very usefull ! (I putted the button inside the choosevenue modal so i can choose an existing venue or add a new venue). :)

My problem is that, after press the 'apply' button (save), I need to stay (or reload) for to complete the missing data and than 'save' and close with the save (save&close) button.

And NO, (I answer the easy question) I can't complete all in one step because at first I need to store the facebook ID for to import and load the data after the first save (apply).

For now I must reopen the edit venue page after saving all and it is a little tricky.

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

Missing "add venue" button in frontend 5 years 10 months ago #22497

SOLVED

I was thinking at a very hard solution but, it is very simple, in effect for the "apply" is not need to run the Javascript that auto-select the venue in the chooser venue, save and reload is enough.
So, for who may need, i solved in this way:

In controllers / editvenue.php - switch ($task) case 'apply'
I deleted all the code inside the " if ($mode == 'ajax'){ " and I put this:
$this->setRedirect(

JRoute::_('index.php?option=' . $this->option . '&view=' . $this->view_item . '&mode=ajax&tmpl=component'
. $this->getRedirectToItemAppend($recordId, $urlVar), false	
)
);
break;

a simple redirect that call the mode ajax is the trik.

Thanks anyway
The following user(s) said Thank You: jojo12

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

Missing "add venue" button in frontend 5 years 10 months ago #22498

thank you for sharing.
But - I don't find controllers/editvenue.php
on JEM 2.3.3 stable in latest Joomla (3.10.2) Protostar php7.4.15
Personally I use t4_B5 template with t4_system plugin framework with bootstrap 5 and fontawesome)
(I prefer free "Signal" or paid "Threema" instead of "Whatsapp".)

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

Missing "add venue" button in frontend 5 years 10 months ago #22509

Hi Jojo

You right..... my bad... I did not say that i'm working with the "OLD" Jem3.......and the code was writen by Bluefox for jem 2.1. in the new jem seems that the editvenue controller not exist anymore..... I gave now a quick look....
I make no promises, but I think that the code can be adapted, the next week a will give a better look.... and if I find a solution I will share it. Must find where is the code that control the action for the save button.

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

Time to create page: 0.385 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......