Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page Select Box #16

Open
jude86-7 opened this issue Feb 10, 2017 · 1 comment
Open

Page Select Box #16

jude86-7 opened this issue Feb 10, 2017 · 1 comment

Comments

@jude86-7
Copy link

This extension is great and I'm sure will help a lot of our clients when updating their website.

However I'm not sure how to get this working for pages where I use the 'page select box' extension.

I have a section titled 'page text' that controls the content of each page, with the page select box field to determine which page on the site the text is assigned to.

I add the link preview field and in the URL Format I enter the handle of the page select box field, which works great. But when I have a page that has a parent the parent isn't brought into the URL format as this is not in the page select box field value.

Does anyone know if it would be possible to edit the code for this to work with the page select box and multi-level page navigation?

Many thanks in advance

@nitriques
Copy link
Member

The link preview was not made for this use case. You can't get data from multiple entries at once.

But you could try to add a case specific for the pages select box here: https://github.com/DeuxHuitHuit/link_preview/blob/master/fields/field.link_preview.php#L315

I am glad to review/help any PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants