andyc
New Member
Posts: 2
|
Post by andyc on Jul 9, 2020 11:54:17 GMT 1
Is there a full list of the tags that can be used? For example to insert the current date. Or the possibility to edit the php file to return the date string?
|
|
|
Post by n3t on Jul 10, 2020 16:54:42 GMT 1
Hi, all tags are listed in help popup to field Custom suffix (just hold mouse over the label) and in documentation. Date is currently not supported, also there is not PHP file to override. You could add any special custom text by handling Copylink manually in template, means: - switch off the plugin - add js declaration with code simÃlar to code bellow use Joomla\CMS\Factory; use Joomla\CMS\HTML\HTMLHelper; ...
HTMLHelper::_('script', 'plg_n3tcopylink/copylink.min.js', ['version' => 'auto', 'relative' => true]);
Factory::getDocument()->addScriptDeclaration(" CopyLink.addEvent(window, 'load', function () { new CopyLink({ container : document.body, handler : function () { return 'Whatever text'; }, minimalSelection: 100 }); }); ");
|
|
andyc
New Member
Posts: 2
|
Post by andyc on Jul 12, 2020 11:16:43 GMT 1
Thanks, that's useful.
Are there any plans to introduce a bigger range of tags?
|
|
|
Post by n3t on Jul 13, 2020 10:39:47 GMT 1
Hi,
no currently there are no such plans. Even maybe some basic ate tags could be usefull, I guess {year} should be enough. Will think about it.
|
|