Something is not right with the shortcode on page ID:

Support MB Frontend Submission Something is not right with the shortcode on page ID:

Viewing 15 posts - 1 through 15 (of 22 total)
  • Author
    Posts
  • #30974
    jmcbadejmcbade
    Participant

    I'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?

    #30975
    jmcbadejmcbade
    Participant

    Ok, 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?

    #30977
    jmcbadejmcbade
    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.

    #30979
    jmcbadejmcbade
    Participant

    I 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".

    #30981
    Long NguyenLong Nguyen
    Moderator

    Hi,

    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.

    #30987
    jmcbadejmcbade
    Participant

    Do 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.

    #30988
    jmcbadejmcbade
    Participant

    I 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.

    #30989
    jmcbadejmcbade
    Participant

    When 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".

    #30993
    Long NguyenLong Nguyen
    Moderator

    Hi,

    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.

    #31022
    jmcbadejmcbade
    Participant

    Here is the CPT code if you need that: Link:

    And here is the Custom Fields code: Link:

    #31023
    jmcbadejmcbade
    Participant

    If I want to create a CPT, form and dashboard that a certain level user all of them can use?

    #31027
    Long NguyenLong Nguyen
    Moderator

    Hi,

    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.

    #31029
    jmcbadejmcbade
    Participant

    The 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.

    #31035
    jmcbadejmcbade
    Participant

    It 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?

    #31037
    jmcbadejmcbade
    Participant

    BTW, 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?

Viewing 15 posts - 1 through 15 (of 22 total)
  • You must be logged in to reply to this topic.