This topic contains 3 replies, has 3 voices, and was last updated by Yurii Muratov 6 years, 1 month ago.
- Topic
Hi,
I want to expand the definitions in the File vendor/oro/crm/src/Oro/Bundle/ContactBundle/DependencyInjection/Configuration.php.
Try this in my Bundle:
class Configuration implements ConfigurationInterface
{
/**
* {@inheritDoc}
*/
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('oro_contact');
SettingsBuilder::append(
$rootNode,
[
'social_url_format' => [
'value' => ['xing' => 'https://xing.com/profile/%%username%%']
]
]
);
return $treeBuilder;
}
But it doesnt work. Then i try this:
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('oro_contact')
->children()
->arrayNode('social_url_format');
SettingsBuilder::append(
$rootNode,
[
'xing' => [
'value' => ['value' => 'https://xing.com/profile/%%username%%']
]
]
);
return $treeBuilder;
}
Doesnt work either.
Can you give me a hint what i’m doing wrong ?
The forum ‘OroPlatform – How do I? Questions’ is closed to new topics and replies.