@Schamper How would one customize say, the custom-homepage widget to show only to users who are not logged in then?
Edit: Figured it out 🙂
This follows along the lines of https://github.com/NodeBB/NodeBB/issues/1428. For websites that heavily rely on custom widgets and the custom home page, SEO for brand relevant keywords get severely affected because the content is not present in the source code and is loaded after the page load.
E.g this website http://definedictionarymeaning.com doesn't show anything on the home page on the google webmasters tool. The content is loaded via http://definedictionarymeaning.com/api/widgets/render?v=77j2miltru6&locations=sidebar&locations=footer&locations=header&locations=content&template=homepage.tpl&url=&isMobile=false afterwords.
Does anyone know a fix or workaround that'll enable me to load all my widgets via server?
Feel free to open an issue on our Github page.
Ideally we want to change our widget rendering code so that cold loads renders the widgets server side and ajaxifying renders them client side just like regular pages.