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

Extend cpn:link tag to add selectors, parameters etc. #208

Open
stoerr opened this issue Nov 9, 2020 · 0 comments
Open

Extend cpn:link tag to add selectors, parameters etc. #208

stoerr opened this issue Nov 9, 2020 · 0 comments

Comments

@stoerr
Copy link
Member

stoerr commented Nov 9, 2020

The cpn:link tag could be enhanced with more attributes to match, even extend the sling:include functionality of addSelectors, replaceSelectors, replaceSuffix etc. and thus make the functionality of SlingUrl available in a good way to JSPs.

We could add the attributes addSelectors, replaceSelectors, (removeSelectors), replaceSuffix, replaceExtension, addParameter (a little unclear how to represent both value and key here), replaceFragment. Possibly replacePathAndName (for full URLs).

There also could be a attribute resource as an alternative to href with a Resource value, and very possibly for that case a boolean map attribute for mapped / unmapped URLs.

@stoerr stoerr changed the title Extension cpn:link tag to add selectors, parameters etc. Extend cpn:link tag to add selectors, parameters etc. Nov 9, 2020
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

1 participant