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

Allow Entry URI Format to be conditionally blank (no URL) #4254

Closed
timkelty opened this issue May 13, 2019 · 0 comments
Closed

Allow Entry URI Format to be conditionally blank (no URL) #4254

timkelty opened this issue May 13, 2019 · 0 comments
Labels
enhancement improvements to existing features site development 👩‍💻 features related to website/API development

Comments

@timkelty
Copy link
Contributor

Several times we've wanted a fully dynamic "Entry URI Format", where conditionally, some entries in a section (usually by depth), don't have URLs.

Making this "Entry URI Format" something like this has a peculiar effect:

{% if level == 1 %}projects/{slug}{% endif %}

I want entries with level 2 to have no url, but instead they seem to get a homepage URL (even if there is already a homepage single). Subsequent level 2 entries will fail because of the occupied URL.

@brandonkelly brandonkelly added site development 👩‍💻 features related to website/API development enhancement improvements to existing features labels May 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement improvements to existing features site development 👩‍💻 features related to website/API development
Projects
None yet
Development

No branches or pull requests

2 participants