I am currenly buildiong a tieriary navigation that has 3 options. I am accomplishing this by using a field group with the repeater option. The links are added from the staging content page. The issue is when the page is viewed/tested the URL(s) aren't inserted into the href attribute as specified. I have tried a few methods including a text field and a Page Field, with no success.
You will see that the field allows you to choose a page in your cos, pages contain attributes, one of which is absolute_url. if you want to print the url of a page from the page field you can do this:
Oct 22, 201812:33 PM - edited May 31, 20194:54 AM
Key Advisor
Linking to internal page with Repeater Option
SOLVE
The only place to set up a page field is in a custom module.
you need to copy the snipped to the entire repeater field, paste it into your editor, copy the page field snippet from the repeater snippet, place that in your href, and add '.absolute_url' to the snippet.
The fact that you are getting nothing from the field shows me that it is mispelled or otherwise not correctly referencing the field.
You will see that the field allows you to choose a page in your cos, pages contain attributes, one of which is absolute_url. if you want to print the url of a page from the page field you can do this:
Oct 22, 201812:33 PM - edited May 31, 20194:54 AM
Key Advisor
Linking to internal page with Repeater Option
SOLVE
The only place to set up a page field is in a custom module.
you need to copy the snipped to the entire repeater field, paste it into your editor, copy the page field snippet from the repeater snippet, place that in your href, and add '.absolute_url' to the snippet.
The fact that you are getting nothing from the field shows me that it is mispelled or otherwise not correctly referencing the field.