We're Moving to a New Support Platform – Starting June 1st!
We’re excited to let you know that starting June 1st, we’ll be transitioning to a new support system that will be available directly on our product websites – Amelia, wpDataTables, and Report Builder. In fact, the new support platform is already live for Amelia and wpDataTables, and we encourage you to reach out to us there.
You'll always be able to reach us through a widget in the bottom right corner of each website, where you can ask questions, report issues, or simply get assistance.
While we still do not offer live support, a new advanced, AI-powered assistant, trained on our documentation, use cases, and real conversations with our team, is there to help with basic to intermediate questions in no time.
We're doing our best to make this transition smooth and hassle-free. After June 1st, this current support website will redirect you to the new "Contact Us" pages on our product sites.
Thanks for your continued support and trust – we’re excited to bring you an even better support experience!
Hello,
Is it possible to change the text of the popover edit block text from edit to view, as well as modify the modal form so the editable text in there is only view only.
Hello jb11294.
Thank you for your purchase.
To change the text for "Edit", "New" and "Delete" buttons, you can open wp-content/plugins/wpdatatables/source/class.wpdatatable.php around line 3257 find this line of code:
And after 'text' => you can change 'Edit' to whatever you want. Same goes for 'New Entry' and 'Delete' of course.
As for leaving the text in 'view-only' mode is not something so easily done, and would fall under customization of the plugin, since the feature is not built-in out-of-the-box. You're welcome to explore ../wp-content/plugins/wpdatatables/templates/frontend/edit_dialog.inc.php and maybe you'll find what you need there. I can't say if there's any other file that needs to be modified, because we haven't done anything like this yet.
Best regards.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hello Aleksandar,
Thank you! i just was not sure what file to look through.
So i discovered in the edit_diaglog.inc file that you directed me to if you are only looking for read-only access (without using an edit model at all) you can just apply readonly to the textarea around line 59 and to where the code decides whether to use float, date,time, or datetime as well around line 134 fields to prevent it from being edited without having to redesign anything. I couldn't find the integer field code to make it not editable, but if you make any integer column in a table to string, it will make it view only.
Line 59 Area
<textarea data-input_type="<?php echo $dataColumn->getInputType(); ?>"
class="form-control editDialogInput <?php if ($dataColumn->isNotNull()) { ?>mandatory<?php } ?> <?php if ($dataColumn->getInputType() == 'mce-editor') { ?>wpdt-tiny-mce<?php } ?>"
id="<?php echo $this->getId() ?>_<?php echo $dataColumn_key ?>"
data-key="<?php echo $dataColumn_key ?>" rows="5"
data-column_header="<?php echo $dataColumn->getTitle(); ?>" readonly></textarea>
Line 134 Area
class="form-control input-sm editDialogInput
<?php if ($dataColumn->isNotNull()) { ?>mandatory<?php } ?>
<?php if ($dataColumn->getDataType() == 'float' || $dataColumn->getDataType() == 'int') { ?>wdt-maskmoney<?php } ?>
<?php if ($dataColumn->getInputType() == 'date') { ?>wdt-datepicker<?php } ?>
<?php if ($dataColumn->getInputType() == 'time') { ?>wdt-timepicker<?php } ?>
<?php if ($dataColumn->getInputType() == 'datetime') { ?>wdt-datetimepicker<?php } ?>" readonly
/>
Then in the class.wdttools.php change around line 364 'Edit entry' to 'View Entry'
'dataSaved' => __('Data has been saved!', 'wpdatatables'),
'detach_file' => __('detach', 'wpdatatables'),
'edit_entry' => __('View Entry', 'wpdatatables'),
'error' => __('Error!', 'wpdatatables'),
Hey jb11294.
Great work, I must say! And thanks for this. It may help someone else if they come up with the same request. Greatly appreciated!
Best regards.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables