Page Reference Field

Overview

The page reference Custom Field stores one or more references to pages, and prints a link to the page by default.

With customizations, you can reference a page and show attributes from the page to create features like a gallery of pages. Our tutorial on Creating a Related Products Section could be used as a starting point.

Tip: See also, Basic Field Settings.

Default Display

Final_Product.png

Field Creation Form 

PageRef1.png

Tip: Page Reference fields are under the Reference drop-down. Checking "Allow Multiple Selections" allows users to reference more than one page in the content entry form.

Content Entry Form

PageRef3.png

Default Liquid Code

The Edit Code section allows a user to edit how a field prints or functions. The default code for this type of field is found below. 

PageRef2.png

For more information about code customization and the code editor itself, visit our Guide to the Snippet Editor.

Additional Resources & Documentation

Shopify: Liquid Template Language Documentation

Shopify: The Page Object Documentation

Custom Fields: Creating a Related Products Section

Custom Fields: Theming Examples & Tutorials