{"action":"created","issue":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/20727","repository_url":"https://api.github.com/repos/joomla/joomla-cms","labels_url":"https://api.github.com/repos/joomla/joomla-cms/issues/20727/labels{/name}","comments_url":"https://api.github.com/repos/joomla/joomla-cms/issues/20727/comments","events_url":"https://api.github.com/repos/joomla/joomla-cms/issues/20727/events","html_url":"https://github.com/joomla/joomla-cms/issues/20727","id":331562551,"node_id":"MDU6SXNzdWUzMzE1NjI1NTE=","number":20727,"title":"[RFC] Would it be a good idea to have a logo in the global config","user":{"login":"uglyeoin","id":4665225,"node_id":"MDQ6VXNlcjQ2NjUyMjU=","avatar_url":"https://avatars2.githubusercontent.com/u/4665225?v=4","gravatar_id":"","url":"https://api.github.com/users/uglyeoin","html_url":"https://github.com/uglyeoin","followers_url":"https://api.github.com/users/uglyeoin/followers","following_url":"https://api.github.com/users/uglyeoin/following{/other_user}","gists_url":"https://api.github.com/users/uglyeoin/gists{/gist_id}","starred_url":"https://api.github.com/users/uglyeoin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uglyeoin/subscriptions","organizations_url":"https://api.github.com/users/uglyeoin/orgs","repos_url":"https://api.github.com/users/uglyeoin/repos","events_url":"https://api.github.com/users/uglyeoin/events{/privacy}","received_events_url":"https://api.github.com/users/uglyeoin/received_events","type":"User","site_admin":false},"labels":[{"id":138443932,"node_id":"MDU6TGFiZWwxMzg0NDM5MzI=","url":"https://api.github.com/repos/joomla/joomla-cms/labels/No%20Code%20Attached%20Yet","name":"No Code Attached Yet","color":"ededed","default":false},{"id":31297684,"node_id":"MDU6TGFiZWwzMTI5NzY4NA==","url":"https://api.github.com/repos/joomla/joomla-cms/labels/Request%20for%20Comment","name":"Request for Comment","color":"02d7e1","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":18,"created_at":"2018-06-12T12:17:52Z","updated_at":"2018-06-12T13:33:01Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I just want to see if people think this is worthwhile before I even go near coding because this is definitely something that will have opinions.\r\n\r\nI think we could have a logo field in the global configuration.  That would mean other components could call the logo without each component having to automatically upload the logo.  I'd also really like it if Joomla! had HTML emails instead of plain text, and in that instance, it would be nice to include a logo.  So this is kind of a step before looking at how hard it is to create a HTML email option in Joomla!\r\n\r\nIn any case, I can see a lot of uses for this option, including using it in the admin template for example.  Potentially there could be multiple logo sizes as well, which could potentially be used in srcset in the future.\r\n\r\nSomeone asked why it is better than having an image in the image directory.  In that case, the image can be called anything and it is difficult to access.  But if it is a global parameter it can be accessed like\r\n\r\n```\r\n$config = JFactory::getConfig();\r\n$logo = $config->get('logo');\r\n```\r\n\r\nThoughts, pitfalls, problems, opinions, or any other comments."},"comment":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/comments/396590318","html_url":"https://github.com/joomla/joomla-cms/issues/20727#issuecomment-396590318","issue_url":"https://api.github.com/repos/joomla/joomla-cms/issues/20727","id":396590318,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NjU5MDMxOA==","user":{"login":"brianteeman","id":1296369,"node_id":"MDQ6VXNlcjEyOTYzNjk=","avatar_url":"https://avatars3.githubusercontent.com/u/1296369?v=4","gravatar_id":"","url":"https://api.github.com/users/brianteeman","html_url":"https://github.com/brianteeman","followers_url":"https://api.github.com/users/brianteeman/followers","following_url":"https://api.github.com/users/brianteeman/following{/other_user}","gists_url":"https://api.github.com/users/brianteeman/gists{/gist_id}","starred_url":"https://api.github.com/users/brianteeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianteeman/subscriptions","organizations_url":"https://api.github.com/users/brianteeman/orgs","repos_url":"https://api.github.com/users/brianteeman/repos","events_url":"https://api.github.com/users/brianteeman/events{/privacy}","received_events_url":"https://api.github.com/users/brianteeman/received_events","type":"User","site_admin":false},"created_at":"2018-06-12T13:33:01Z","updated_at":"2018-06-12T13:33:01Z","author_association":"CONTRIBUTOR","body":"If joomla was like Twitter, Facebook, YouTube etc which have a fixed template then having the logo would make sense. But it's not and the chances of two template having the same dimensions for the logo and using the option are not very likely I don't see the benefit. In fact following the social media examples the correct place is where it usually is now - in the template"}}
{"actor":{"display_login":"brianteeman"}}