When a user clicks on a table row, a template page opens in a seperate tab. Can a table be configured to open the template page in the same tab when a row is clicked?
Opening in a seperate tab makes it very difficult for iphone users to navigate back to the original page containing the table.
WpDataTables v4.4
When a user clicks on a table row, a template page opens in a seperate tab. Can a table be configured to open the template page in the same tab when a row is clicked?
Opening in a seperate tab makes it very difficult for iphone users to navigate back to the original page containing the table.
Hello Gary
Unfortunately, there is no built-in option at the moment, but we will add it in one of the next updates.
You can change it in code in file wp-content/plugins/wdt-master-detail/class.masterdetail.wpdatacolumn.php around line 51 you will find this
and you have to change target="blank" to target="_self"
also in the same file on line 64, you will find this
and you have to replace it with this:
Then, go to wp-content/plugins/wdt-master-detail/templates/md_modal.inc.php and change line 52 just like you did the others, so change this:
To this:
That one's for row click.
Basically, look only for "target='_blank'" and change it to "target="_self'" and that's it.
I hope that helps.
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
Thanks Aleksandar, your solution worked perfectly. It's a big win for our iphone users..!
Thanks again,
Gary
You're welcome, Gary.
Keep in mind that you'll need to do this again when the plugin updates, until we include it in the plugin.
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