Skip to content

Implement template placeholders for Contentful #4665

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

Closed
kkartunov opened this issue Jul 21, 2020 · 3 comments
Closed

Implement template placeholders for Contentful #4665

kkartunov opened this issue Jul 21, 2020 · 3 comments
Assignees
Labels
Contentful-DEV Internal development operations for Contentful Prod Env Environment QA Pass
Milestone

Comments

@kkartunov
Copy link
Collaborator

kkartunov commented Jul 21, 2020

Add support for template placeholders. It will be using https://lodash.com/docs/4.17.15#template

Adding something like this in Contentful should result to rendered page when the user is logged in.

Hello __<%= profile.firstName %> <%= profile.lastName %>__(<%= profile.handle %>)!

Some data we have for you:
- userId: <%= profile.userId %>
- Autogenerated link to profile: <a href="https://topcoder.com/members/<%= profile.handle %>"><%= profile.handle %></a>

Test URL: https://community-app.topcoder-dev.com/examples/contentful/contentblock/2JEvQENG9pSUTdZSSAAxOK

@SathyaJayabal
Copy link
Collaborator

verified on dev
Screenshot 2020-07-22 at 10 56 45 AM

kkartunov added a commit that referenced this issue Jul 22, 2020
@kkartunov kkartunov mentioned this issue Jul 22, 2020
@SathyaJayabal SathyaJayabal added this to the v0.37.0 milestone Jul 22, 2020
@SathyaJayabal SathyaJayabal added Beta Env Environment and removed Dev Env labels Jul 22, 2020
@SathyaJayabal
Copy link
Collaborator

verified on beta (develop branch)
Screenshot 2020-07-22 at 3 53 48 PM

@SathyaJayabal SathyaJayabal added Prod Env Environment and removed Beta Env Environment labels Jul 22, 2020
@SathyaJayabal
Copy link
Collaborator

verified on prod
Screenshot 2020-07-22 at 6 31 46 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Contentful-DEV Internal development operations for Contentful Prod Env Environment QA Pass
Projects
None yet
Development

No branches or pull requests

2 participants