What you've got looks pretty good to me - I have something very similar.

It should be in defaults.py inside an app inside your project. The only difference with mine is that the TEMPLATE_ACCESSIBLE_SETTINGS call is at the bottom of the list, i.e. after the other settings have been registered.

Hope this helps.

Seeya. Danny.

On 11/11/2016 11:05 PM, JM M wrote:
Hi I'm having trouble showing up the settings for the social media here is the code, tried searching but no luck I read the comments below of the blog post but still don't work. Anyone want to help? thanks.
from mezzanine.confimport register_setting
from django.utils.translationimport ugettext_lazyas _

register_setting(
     name="TEMPLATE_ACCESSIBLE_SETTINGS", append=True, default=("SOCIAL_LINK_FACEBOOK", 
"SOCIAL_LINK_TWITTER", "SOCIAL_LINK_VIMEO"), )

register_setting(
     name="SOCIAL_LINK_FACEBOOK", label=_("Facebook link"), description=_("If present a Facebook icon 
linking here will be in the " "header."), editable=True, default="https://facebook.com/mezzatheme";, )

register_setting(
     name="SOCIAL_LINK_TWITTER", label=_("Twitter link"), description=_("If present a Twitter icon 
linking here will be in the " "header."), editable=True, default="https://twitter.com/mezzatheme";, )

register_setting(
     name="SOCIAL_LINK_VIMEO", label=_("VIMEO link"), description=_("If present a VIMEO icon linking 
here will be in the " "header."), editable=True, default="https://VIMEO.com/mezzatheme";, )

--
You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups "Mezzanine 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to