Permalinks field always required

4 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: June 10, 2019   (RSS)

By gversion - June 5, 2019

Hello,

I am using the permalinks plugin and there is a "permalink" field on my CMSB accounts table.

The problem is that this field is always required even if a user should not have a permalink.

I have not ticked the "required" checkbox (user may not leave field blank) in the section editor settings.

Can someone please assist? I would like to stop having to enter a permalink for a user when I need to make an update to their account details.

Thank you,

Greg

By daniel - June 7, 2019

Hey Greg,

Unfortunately, the Permalinks plugin requires "permalink" fields to be filled when saving records through the admin. For your use case, is the issue having to enter the permalink for entries that don't need one, or do you specifically want some records in that table to be inaccessible via permalink? Depending on your desired result, there may be some room to work around the issue without having to modify the plugin itself.

Thanks,

Daniel
Technical Lead
interactivetools.com

By gversion - June 7, 2019

Hi Daniel,

Thanks for the reply.

I use the permalink to display all listings for a user (e.g. www.mywebsite.com/username) however I would like to only require a permalink if the user is on a subscription (cmsb_subscription). If the user does not have a subscription selected then the permalink should not be required.

If the above is too tricky to achieve without modifying the plugin then I would really appreciate it if you could offer me the solutions you can think of and then I will try to work with them.

One solution could be to just set the permalink for all users that register though I am not sure how to do this.

Thanks again,

Greg