How to customize or create function blueprint in AEM communities
In AEM 6.2 communities , by default some blueprints to create a function is already available like blog (/content/communities/templates/functions/blog) , calendar , page etc .
Using these blueprints we can create a function using this URL http://{server}:{port}/communities/communityfunctions .
In Case i want to override a blueprint or want to create a new blueprint what would be an ideal approach ?
1. I can override the template in /apps . for example : blog components refers to "/libs/social/console/templates/base_page" we can create a similar structure in "/apps/social/console/templates/base_page" . but disadvantages of this approach is if there are multiple websites on my AEM server then it will get override for each website .
To overcome from this problem another solution is.
2. Create a custom function blueprint on this path /content/communities/templates/functions path and create a function using this custom blueprint.
Now my queries are : Is there any OOTB interface provided by AEM to create a blueprint under /content/communities/templates/functions or we have to deploy the blueprint as a part of code ?
secondly if i create a custom function using /communities/communityfunctions on this path /etc/community/templates/functions/custom/custom_blog_function . function get created but configuration folder is not getting created just like ootb functions "/etc/community/templates/functions/reference/blog/configuration" . How can i achieve this .
Please guide.
Thanks