-
Notifications
You must be signed in to change notification settings - Fork 106
is It possible to add new custom element on webspace? #708
Comments
You can not add custom attributes in the webspace, for me this also doesnt look as the right space for your case. Add the following into the
Run This will ask you to enter the panel_id for the current system, in your case on dev you enter You need to access this in twig? Then you need to write a twig extension and give your parameter in the service registration the consturctor |
I see, thank you, for your clarification but parameters will not be able to handle this for me, as every panel has it own ID and also a custom URL for every single panel, the right way for me would be having it on webspaces. I will need to build a feature for it. |
When parameter is not the way to go you need to create your own configuration tree in the config.yml at current state: e.g.: client_website:
panels:
<webspace_key>:
panel_id: 124124
panel_url: http://....
<webspace_key2>:
panel_id: 124124
panel_url: http://.... as you see in the app/config/website and app/config/admin there are different yml file for each environment. how to read the configuration you will find here http://symfony.com/doc/2.8/cookbook/bundles/configuration.html. But if you only have only one webspace this makes more sense in the parameters.yml and is faster to use because for me this type of configuration goes into the same type as the database as another developer could maybe have another panel_id and panel_url as you when he is developing. |
yes, I used this before but I wanted to have all under the same umbrella, thank you for your help is much appreciated |
I don't know your exact requirements, but I could imagine that a feature like this might make sense in certain cases. But at the moment it is not possible. Maybe we should think about a solution to make this easily possible. An easy solution would be to add an |
The text was updated successfully, but these errors were encountered: