Skip to content

Commit

Permalink
use default as widget id
Browse files Browse the repository at this point in the history
  • Loading branch information
MDevster committed Sep 12, 2017
1 parent 771078a commit ef6c111
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
},
{
"name": "Mathias Arzberger",
"email": "[email protected]",
"homepage": "https://pdir.de",
"email": "[email protected]",
"homepage": "https://hofff.com",
"role": "Developer"
}
],
Expand Down
7 changes: 4 additions & 3 deletions contao-module/dca/tl_module.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

$GLOBALS['TL_DCA']['tl_module']['palettes']['hofff_tawk-to']
= '{title_legend},type'
. ';{tawk-to_legend},hofff_tawkToPageId,hofff_tawkToWidgetId,hofff_tawkToUserJs'
. ';{tawk-to_legend},hofff_tawkToPageId,hofff_tawkToUserJs' //hofff_tawkToWidgetId,
. ';{expert_legend:hide},guests,cssID,space'
. ';{invisible_legend:hide},invisible,start,stop';

Expand All @@ -17,6 +17,7 @@
),
'sql' => "varchar(128) NOT NULL default ''",
);
/*
$GLOBALS['TL_DCA']['tl_module']['fields']['hofff_tawkToWidgetId'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_module']['hofff_tawkToWidgetId'],
Expand All @@ -26,8 +27,8 @@
'mandatory'=>false,
'tl_class' => 'w50',
),
'sql' => "varchar(128) NOT NULL default ''",
);
'sql' => "varchar(128) NOT NULL default 'default'",
);*/
$GLOBALS['TL_DCA']['tl_module']['fields']['hofff_tawkToUserJs'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_module']['hofff_tawkToUserJs'],
Expand Down
2 changes: 1 addition & 1 deletion contao-module/templates/elements/ce_tawk_to.html5
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
(function(){
var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0];
s1.async=true;
s1.src='https://embed.tawk.to/<?php echo $this->tawkToPageId ?>/<?php echo $this->tawkToWidgetId ?>';
s1.src='https://embed.tawk.to/<?php echo $this->tawkToPageId ?>/default';
s1.charset='UTF-8';
s1.setAttribute('crossorigin','*');
s0.parentNode.insertBefore(s1,s0);
Expand Down

0 comments on commit ef6c111

Please sign in to comment.