mirror of
https://github.com/a2nt/cms-niceties.git
synced 2024-10-22 11:05:46 +02:00
IMPR: Minor social links improvements
This commit is contained in:
parent
90e1a0676e
commit
fc596b45ff
@ -58,10 +58,16 @@ class SocialExtension extends DataExtension
|
||||
{
|
||||
parent::updateCMSFields($fields);
|
||||
|
||||
$nwfieldsList = array_keys(self::$has_one);
|
||||
foreach ($nwfieldsList as $k) {
|
||||
$fields->removeByName($k.'ID');
|
||||
}
|
||||
|
||||
$cfg = [
|
||||
'types' => [
|
||||
'URL',
|
||||
],
|
||||
'title_display' => false,
|
||||
'types' => [
|
||||
'URL',
|
||||
],
|
||||
];
|
||||
|
||||
$linkFields = [
|
||||
@ -71,7 +77,7 @@ class SocialExtension extends DataExtension
|
||||
LinkField::create('Instagram', 'Instagram', $this->owner, $cfg),
|
||||
LinkField::create('Twitter', 'Twitter', $this->owner, $cfg),
|
||||
LinkField::create('YouTube', 'YouTube', $this->owner, $cfg),
|
||||
LinkField::create('Tiktok', 'Tiktok' , $this->owner, $cfg),
|
||||
LinkField::create('Tiktok', 'Tiktok', $this->owner, $cfg),
|
||||
];
|
||||
|
||||
$fields->findOrMakeTab('Root.Social');
|
||||
|
Loading…
Reference in New Issue
Block a user