Page selection type name?

Page selection type name?

AndreNL
Shopify Partner
37 1 5

What is the liquid type name for selecting a page on a button?

{
      "type": "url",
      "id": "shopify_page_url",
      "label": "Shopify Page URL",
      "default": "/pages/sample-page"
    }
Replies 3 (3)

Guleria
Shopify Partner
4058 797 1146

"type": "url", 
is correct for selecting a page on a button. 

- Custom themes, UI/UX design, ongoing maintenance & support.
- Drop an email   if you are looking for quick fix or any customization
- Email: guleriathakur43@gmail.com Skype: live:navrocks1
- Try GEMPAGES a great page builder
AndreNL
Shopify Partner
37 1 5

so I would implement a variable called button_redirect inside of my href?

 

 

{
      "type": "url",
      "id": "button_redirect",
      "label": "Redirect to a page",
      "default": "/"
    }

 

EDIT: I doesn't bring me to the URL when being clicked. It does nothing as of now.

 

Guleria
Shopify Partner
4058 797 1146

Yes btw prefix also matters 
e.g.
if in settings then
{{ settings.button_redirect }}
if within the section then 
{{ section.settngs.button_redirect }} 
for block 
{{ block.settings.button_redirect }}

- Custom themes, UI/UX design, ongoing maintenance & support.
- Drop an email   if you are looking for quick fix or any customization
- Email: guleriathakur43@gmail.com Skype: live:navrocks1
- Try GEMPAGES a great page builder