Skip to content
This repository has been archived by the owner on Aug 30, 2018. It is now read-only.

password.liquid template #298

Open
suture opened this issue Dec 22, 2014 · 7 comments
Open

password.liquid template #298

suture opened this issue Dec 22, 2014 · 7 comments

Comments

@suture
Copy link

suture commented Dec 22, 2014

I think this is a new one http://docs.shopify.com/themes/theme-development/templates/password-liquid

@suture suture closed this as completed Dec 25, 2014
@suture
Copy link
Author

suture commented Dec 29, 2014

This is the translation values I'm using for the storefront password page. I'm not sure if you want to include that page in Timber?

http://docs.shopify.com/themes/theme-development/templates/password-liquid

  "storefront": {
    "page": {
      "title": "Please Log In",
      "subtext": "Will be opening soon..."
    },
    "form": {
      "label": "Enter store using password:",
      "submit": "Enter"
    },
    "footer": {
      "login_link_title": "Log in here",
      "settings_link_title": "Change your password settings",
      "link_options_html": "Are you the store owner?<br />{{ login_link }} or {{ settings_link }}"
    },
    "credits": {
      "powered_by": "This store is powered by",
      "powered_by_title": "Create your own online store with Shopify"
    }
  },

@seeReadCode
Copy link

What's the story on this page not being in the Timber repo?

@ccmeyers
Copy link

+1

@Cam
Copy link

Cam commented Feb 25, 2016

+1. I was just thinking this yesterday.

@ccmeyers
Copy link

If you create a password.liquid file in your templates folder, Shopify will automatically render it. I took the following code from https://docs.shopify.com/themes/development/templates/password-liquid and built on that to customize it.

{% unless shop.password_message == blank %}
  {{ shop.password_message }}
{% endunless %}

{% form 'storefront_password' %}

{{ form.errors | default_errors }}

<label for="password">Enter store using password:</label>
<input type="password" name="password">
<input type="submit" value="Enter" class="btn btn-white">

{% endform %}

@seeReadCode
Copy link

I did the same as I imagine a few others have. That said, it would be nice to have liquid code from their example in the Timber repo. There are also values that need to be added to the locale file if I remember correctly.

@ccmeyers
Copy link

I totally agree. And yes, you're right about adding values to the locale file. See pull request #499

@suture suture reopened this Feb 26, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants