Something is not right with the shortcode on page ID:
Support › MB Frontend Submission › Something is not right with the shortcode on page ID:
- This topic has 21 replies, 2 voices, and was last updated 3 years, 6 months ago by
Long Nguyen.
-
AuthorPosts
-
September 26, 2021 at 6:08 PM #30974
jmcbade
ParticipantI'm trying to use the "Dashboard" for post management of a CPT. Permalinks are set to "Postname".
I have a page for the submit form with the ID: "vehicles-management" and on a new page (if I understand the documentation correctly I have a shortcode: [mb_frontend_dashboard edit_page="vehicles-management"]
I get the error: "Something is not right with the shortcode on page ID:"
What am I missing?
September 26, 2021 at 6:30 PM #30975jmcbade
ParticipantOk, I found the post_id I needed and I get the dashboard. It's showing "ALL" post and I want the page to only edit a CPT - not every post submitted by the current user.
Can this be done?
September 26, 2021 at 6:33 PM #30977jmcbade
Participant... because what I really want to do is create a page where my CPT "vehicles" can be managed by anyone with the correct permissions.
If I use this as it stands, only vehicles created by the current user can be managed.
September 26, 2021 at 6:58 PM #30979jmcbade
ParticipantI am trying to add the attributes found at Link: and some seem to work and some don't.
My current shortcode looks like: [mb_frontend_form id="vehicles" post_fields="title, thumbnail" post_type="vehicles" allow_delete="true" edit="true" ajax="true" delete_confirmation="Are you SURE? All post and attachments will be deleted."]
For example, I don't see a "Delete button".
September 26, 2021 at 9:07 PM #30981Long Nguyen
ModeratorHi,
If the attribute
ajax
of the shortcode is assigned totrue
, the delete button will display when you edit the post from the Frontend Dashboard.September 27, 2021 at 7:44 AM #30987jmcbade
ParticipantDo you see in my example I have set ajax="true" in my shortcode above? I am not seeing the delete button. Should it be ajax=true (without the quotes)?
I would request that your documentation have a lot more examples including some working shortcodes with the parameters being used and a screen shot of the output.
September 27, 2021 at 8:24 AM #30988jmcbade
ParticipantI changed the shortcode to this:
[mb_frontend_form id="vehicles" post_fields="title, thumbnail" post_type="vehicles" allow_delete=true edit=true ajax=true delete_confirmation="Are you SURE? All post and attachments will be deleted."]
Still nothing but a "Submit" button. Very frustrating.
Please create some working examples of these various params listed at:
https://docs.metabox.io/extensions/mb-frontend-submission/
with the shordcode and output examples. Put them in the documentation also please.
September 27, 2021 at 8:44 AM #30989jmcbade
ParticipantWhen I view the page with the form, no delete button. I also have a page with the "Dashboard" that refers to the SAME page form and when I use the edit pencil from there, the record shows with the data (most of it - see below) and the "Delete" button shows there. Huh!?
Also, some of the fields are not working like the "Switch" fields don't keep there settings. Why? When I go to the back end they are not being saved as well. They are defaulting to a greyed out "off" position - even when I set to required and default to "On".
September 27, 2021 at 12:26 PM #30993Long Nguyen
ModeratorHi,
Please take a look at my screen record https://share.getcloudapp.com/wbub4Yde
As my previous reply:
If the attribute ajax of the shortcode is assigned to true, the delete button will display when you edit the post from the Frontend Dashboard.
You can remove the attribute ajax or set it to
false
to show the Delete button after submitting a post.Regarding the field
switch
does not save its value. Can you please share the code that creates the custom fields? I do not see that issue on my end.September 28, 2021 at 8:08 AM #31022jmcbade
ParticipantSeptember 28, 2021 at 8:30 AM #31023jmcbade
ParticipantIf I want to create a CPT, form and dashboard that a certain level user all of them can use?
September 28, 2021 at 10:25 AM #31027Long Nguyen
ModeratorHi,
Does the Delete button work on your site?
The Frontend Dashboard only support allowing the users to edit their own post, not allow them to edit posts of another one.
September 28, 2021 at 2:58 PM #31029jmcbade
ParticipantThe Frontend Dashboard only support allowing the users to edit their own post, not allow them to edit posts of another one.
Makes it pretty worthless then for my application.
How would is do it then without that but with the same functionality, but giving me control for a role rather than a particular user?
I want to use MB but I keep hitting walls and issues. It very frustrating.
September 28, 2021 at 7:07 PM #31035jmcbade
ParticipantIt looks like the Dashboard is "locked" into managing only a specific user's posts as you said. I tried a User Role editor and no change.
Couldn't this be tweaked somehow? I'm trying to make this work but since you don't seem to have documentation to generate this myself with role based permissions... Where would I look in the docs to get to create my own version based on roles?
September 28, 2021 at 7:36 PM #31037jmcbade
ParticipantBTW, I sent you gave you pastebins for the CPT and the Custom fields concerning the switch fields not being saved. Have you looked at that?
You seem lost and not able to track the issues together. Should I be breaking up my questions into separate threads? Would you then be able to answer these questions better?
-
AuthorPosts
- You must be logged in to reply to this topic.