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

Fixed Issue of locking and unlocking content based on access level #105

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

PradeepWeb77
Copy link
Collaborator

Fixed Issue of locking and unlocking content based on access level

);

echo '<sesamy-locked-content-container ';
Sesamy_Utils::html_attributes( $html_attributes_l );
Copy link
Contributor

@julianidiart julianidiart Apr 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we're missing some attributes here, the <sesamy-locked-content-container> should also include:

  • required-attributes: for the case that the access-level is logged-in, we need to know if there are some attributes required as well.
  • item-src: for the case that the access-level is entitlement, we need to know which entitlement should be in charge of locking/unlocking the content.
  • pass: idem item-src.
  • publisher-content-id: to get the item-src, pass, and public from the <sesamy-content-data> component or meta tags in the case that these are not set as attributes.

These valules should be the same the we pass to the <sesamy-content-container> component.

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

Successfully merging this pull request may close these issues.

2 participants