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-content-type config of ContentSelector is not working inside site config #5801

Closed
alansemenov opened this issue Jan 30, 2023 · 0 comments · Fixed by #5834
Closed

allow-content-type config of ContentSelector is not working inside site config #5801

alansemenov opened this issue Jan 30, 2023 · 0 comments · Fixed by #5834
Assignees
Labels
Bug Something isn't working

Comments

@alansemenov
Copy link
Member

allow-content-type config of ContentSelector in site.xml doesn't seem to work - it returns all elements.

site.xml:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<site xmlns="urn:enonic:xp:model:1.0">
  <form>
    <input type="ContentSelector" name="searchPage">
      <label>Search page</label>
      <occurrences minimum="0" maximum="1"/>
      <config>
        <allow-content-type>landing-page</allow-content-type>
      </config>
    </input>
  </form>
</site>

image

Same input works correctly inside a content type:

image

@alansemenov alansemenov added the Bug Something isn't working label Jan 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants