- Posts: 157
COMMUNITY FORUM
Front end user add item very confusing
- yaksushi
-
Topic Author
- Offline
- Premium Member
Please Log in or Create an account to join the conversation.
- Odin Mayland
-
- User
Please Log in or Create an account to join the conversation.
- Jovica Turčinović
-
- Offline
- New Member
- Posts: 2
Another question is how to automatically set a category list of a current user. Front end populate all categores and that is so confused for users. More of them have a one group (blogging). I can't find a solution for this problem. Also, can front and user limited for some directory to uploading images ?
Please Log in or Create an account to join the conversation.
- Alan Sparkes
-
- Offline
- Premium Member
- Posts: 118
1. How do i control the potential end screen / 'thankyou' aspect of someone submitting stuff ?
2. How do I customise the form display for front end submissions
I have just looked at 2.
UNortunately thre is no template overide for form display for submissions front end and my quick hack attempts to add one produced no result.
However @ jovica
IF you follow the logic of 2 above then you can get to a solution.
In components/com_k2/views/item/tmpl/form.php is where the front end submission is rendered.
So a potential solution for a project I have concerns the extrafields - the people submitting to this site we're building dont knwo what extrafields mean. They are coming to submit specific data and thats what I want to give them - a custom form that just has what they need to see. Likewise for preventing massive lists of categories which have nothing to do with them you can adjust the category output and posibly hardcode the category id of the logged in user. To do this you need to get the logged in user id, look up their permissions and grab the category id form the parameter field. Its a lot of work really for something that should be so user friendly to the submitter. What we really need is another template view for forms and more global parameters to read into the templates.
I will definitely be hardocoding a category id for specific user groups so will share this back once done. It will be in the next two weeks AND it will break your upgrade path ;-)
Please Log in or Create an account to join the conversation.
- Alan Sparkes
-
- Offline
- Premium Member
- Posts: 118
Try this: open up com_k2/views/item/tmpl/form.php line 349 and see attached for replacement
Please Log in or Create an account to join the conversation.
- Jovica Turčinović
-
- Offline
- New Member
- Posts: 2
Yes, I found that, but in modal link I haven't a id of category. I must create for master url id of category.
In which a file is create link "add new item" ? I have to add to modal url parameter "cid" or something like this ...
Best regards!
Please Log in or Create an account to join the conversation.
- Odin Mayland
-
- User
Please Log in or Create an account to join the conversation.
- Odin Mayland
-
- User
1. What template are you using? I am using a rockettheme template and I am having the same issue.
2. After some trouble shooting, I realized that if the K2 login module is in a popup position then the "K2 Add Item" screen does NOT appear in a popup also. Therefore, there is not a close button and the Save and Cancel buttons do NOT close the screen.
My fix for now until this bug is fixed is to comment out the "Add new item" link in the k2 login module helper.php file. I then inform the users that they have to click "My Page" and then click "Post new item". From this link, the K2 Add Item screen appears is a popup and everything works.
Please Log in or Create an account to join the conversation.
- Odin Mayland
-
- User
Please Log in or Create an account to join the conversation.
- Odin Mayland
-
- User
Please Log in or Create an account to join the conversation.
- Odin Mayland
-
- User
Please Log in or Create an account to join the conversation.
- daniel
-
- Offline
- New Member
- Posts: 2
I do also have the same issue and I'm useing rockettheme, but didn't fing any solution yet.
Please Log in or Create an account to join the conversation.
- Odin Mayland
-
- User
Please Log in or Create an account to join the conversation.
- Marcelo Passos
-
- Offline
- New Member
- Posts: 1
I dont use rockettheme template, but i have the same issue in frontend.
Please Log in or Create an account to join the conversation.
- Brent C
-
- Offline
- New Member
- Posts: 6
I just tested by setting the template back to rhuk_milkyway. After clicking save on the frontend article submit form the standard Joomla "Article Saved" message appeared at the top of the popup window. I'm wondering if this is breaking on RT templates due to the Gantry option to control where Joomla messages appear. I'm going to play with positions and see if I can find one that will work. Next step after that would be changing "Article Saved" to something more informative.
Please Log in or Create an account to join the conversation.