Hide Slug/Permalink Column
Version 1.0.1 added 1 year ago by Masino Sinaga
HOW TO INSTALL: To install this package, copy the following code and paste it into your Pods >> Package Manager under the Import tab and follow instructions there.
1.0.1 Notes
1) Fixed: saving the real permalink that auto-generated from the "name" field, instead of permalink from the message.
2) Added: displaying message to user while the form on add-mode.
3) Added: displaying the read-only permalink to user while the form on edit-mode.
2) Added: displaying message to user while the form on add-mode.
3) Added: displaying the read-only permalink to user while the form on edit-mode.
About this Package
Description:
Since the value of "slug" or "permalink" column on the form will be automatically generated based on the value of "name" column, then you can now hide this "slug" or "permalink" column by using this input helper. This will make your form simpler and the operator will be happier while entering data. The field will still get updated, but the user will see the value as text only.
Note: If you use Pods-UI, then you still have to define explicitly the "slug" or "permalink" column on the "edit_field" and or "add_field" array in order to save the slug into database. However, this input helper will make the column will be hidden on your form.
Installation:
1) Go to your "Package Manager", choose "Import" tab, then paste this helper code to the text area there.
2) Click on the "Proceed to Confirmation" button and wait for a moment.
3) Next, you should see a new button below, with the caption: "Looking good. Finalize!", then click on this button.
4) Done.
Usage:
Simply choose "input_helper_hide_slug" from the "Input Helper" drop-down for each slug or permalink column you want set.
I have tested this input helper, and works fine with Pods 1.8.9.
Since the value of "slug" or "permalink" column on the form will be automatically generated based on the value of "name" column, then you can now hide this "slug" or "permalink" column by using this input helper. This will make your form simpler and the operator will be happier while entering data. The field will still get updated, but the user will see the value as text only.
Note: If you use Pods-UI, then you still have to define explicitly the "slug" or "permalink" column on the "edit_field" and or "add_field" array in order to save the slug into database. However, this input helper will make the column will be hidden on your form.
Installation:
1) Go to your "Package Manager", choose "Import" tab, then paste this helper code to the text area there.
2) Click on the "Proceed to Confirmation" button and wait for a moment.
3) Next, you should see a new button below, with the caption: "Looking good. Finalize!", then click on this button.
4) Done.
Usage:
Simply choose "input_helper_hide_slug" from the "Input Helper" drop-down for each slug or permalink column you want set.
I have tested this input helper, and works fine with Pods 1.8.9.
