localshop
localshop copied to clipboard
Localshop Frontpage Text Personalization
Suggestion:
add 2 new variables to conf.py (and mantain defaults with the strings currently available hardcoded inside the template):
- FRONTPAGE_TITLE
- FRONTPAGE_SUBTITLE
And use those on frontpage.html, here:
Localshop
<p>Welcome to your localshop!</p>
We have 2 localshop instalations, and its a good idea to identify which one is targeted for testing, and which one is production.
Then I may have:
Localshop DSV
<p>Testing Environment Only</p>
Hey, since i'm really short on time currently i've added you as committer. So go ahead and help me make it better! :-)
Sure I will.
Best Em 12/06/2013 12:54, "Michael" [email protected] escreveu:
Hey, since i'm really short on time currently i've added you as committer. So go ahead and help me make it better! :-)
— Reply to this email directly or view it on GitHubhttps://github.com/mvantellingen/localshop/issues/65#issuecomment-19335333 .
It will be nice also to FRONTPAGE_SHOW_MESSAGE = True/False to enable and disable the whole message.
The suggested setting key (FRONTPAGE_SHOW_MESSAGE) it is only a idea, you might find a better key name to define the functionality.
This leads to me that some TEMPLATE_CONTEXT_PROCESSOR will need to be added to make settings visible from templates.
Yes, you are correct. Will take a deep look on my localshop instalation to see any other possible personalisation. Tks.
You're welcome. it will be good to expose the whole settings to the templating system, then any template will be able to render based on any setting.