help to better help you:

Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!

Missing "add venue" button in frontend

Re: Missing "add venue" button in frontend

8 years 3 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.
The following user(s) said Thank You: znort

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

Re: Missing "add venue" button in frontend

8 years 3 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.

Re: Missing "add venue" button in frontend

8 years 3 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:
Code:
$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.

Re: Missing "add venue" button in frontend

8 years 3 months ago
#22498
thank you for sharing.
But - I don't find controllers/editvenue.php

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

Re: Missing "add venue" button in frontend

8 years 3 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.496 seconds