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

URL not output for future or expired entries #57

Open
imagehat opened this issue Jan 24, 2017 · 0 comments
Open

URL not output for future or expired entries #57

imagehat opened this issue Jan 24, 2017 · 0 comments
Labels

Comments

@imagehat
Copy link

When linking to an entry, the {{ entry.linkItField.url }} results in empty output if the chosen entry has a future post date or is expired.

When creating an event listing or archive listing I would think it should still output the entry url.

I was able to get by for now with a hacky twig workaround for now by checking for the related entry's url, but this is really not ideal:

{{ entry.linkItField.entry.getUrl()|default(entry.linkItField.url) }}

Craft 2.6.2952, LinkIt 2.3.4

Thanks for the awesome plugin and all your hard work!

@shornuk shornuk added the bug label Feb 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants