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
3199 620 899

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

- If helpful then please Like and Accept Solution.
- Want to modify or custom changes or bug fix on store Hire me. - Email: guleriathakur43@gmail.com - Skype: navrocks1 ,
- Try GEMPAGES a great page builder
- Support me PayPal
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
3199 620 899

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 }}

- If helpful then please Like and Accept Solution.
- Want to modify or custom changes or bug fix on store Hire me. - Email: guleriathakur43@gmail.com - Skype: navrocks1 ,
- Try GEMPAGES a great page builder
- Support me PayPal