Replies: 3 comments
-
OK ... I THINK I found where the return is being set. $this->view_list = 'dashboard'; I need to change this to something else for the front-end; however, somewhere it is automatically getting pre-pended with the component name, turning it into 'component//dashbaord' I see that this might be being processed in the controller's save function with this line: But I can't find where this '$this->view_list' value is being further processed (pre-pended) to turn it into the return value. I realize this isn't specifically a JCB issue, but I've searched all the Joomla code locations I can find with no results. Anyone else ever need to have a front-end JCB-created form return to a different-than-standard location when it is saved? |
Beta Was this translation helpful? Give feedback.
-
A while ago i posted a simmilar question, my solution was the following. If you use a form to save and quit you can create a hidden field with the name return and the value (if i recall correctly) a base_64 encoded full joomla url. From what i've seen the controllers automatically find this value should set this value as the return value. This might not be the best way but at least you get the correct return. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
In JCB I created an admin view for a table and using that as the basis for a front-end edit form.
I've added a link on a dashboard screen that allows the user to edit their record (this is a custom 'user profile' type record - one per user).
The URL to open the edit (on front end) is:
http:///component/<component_name>/reviewer_profile/reviewer_profile/28?task=reviewer_profile.edit
When the user saves the record, they are taken to:
http:///dashboards-and-profiles/new-reviewer-profile/dashboard
I'm guessing that I SOMEHOW got the edit form to redirect to that URL; but now I can't for anything remember (or figure out) where/how the return value should be set
Anybody know how to manually set/change return values for a form (different for front-end than admin)?
Beta Was this translation helpful? Give feedback.
All reactions