localshop icon indicating copy to clipboard operation
localshop copied to clipboard

Localshop Frontpage Text Personalization

Open lovato opened this issue 11 years ago • 6 comments

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.

lovato avatar Jun 12 '13 15:06 lovato

Then I may have:

Localshop DSV

<p>Testing Environment Only</p>

lovato avatar Jun 12 '13 15:06 lovato

Hey, since i'm really short on time currently i've added you as committer. So go ahead and help me make it better! :-)

mvantellingen avatar Jun 12 '13 15:06 mvantellingen

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 .

lovato avatar Jun 12 '13 21:06 lovato

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.

llonchj avatar Jun 20 '13 19:06 llonchj

Yes, you are correct. Will take a deep look on my localshop instalation to see any other possible personalisation. Tks.

lovato avatar Jun 22 '13 00:06 lovato

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.

llonchj avatar Jun 22 '13 00:06 llonchj