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

How do I pass values to Page ContentItem in Orchard CMS,please? #14876

Closed
effapp opened this issue Dec 11, 2023 · 5 comments
Closed

How do I pass values to Page ContentItem in Orchard CMS,please? #14876

effapp opened this issue Dec 11, 2023 · 5 comments
Milestone

Comments

@effapp
Copy link

effapp commented Dec 11, 2023

Hi:
How do I pass values to Page ContentItem in Orchard CMS,please?
And then How do I receive values in the Page ContentItem?

Thanks!

@effapp effapp changed the title How do I pass values to ContentItem from Page in Orchard CMS,please? How do I pass values to Page ContentItem in Orchard CMS,please? Dec 11, 2023
@hishamco
Copy link
Member

The ContentItem has Content property that you can access the item properties dynamically

@effapp
Copy link
Author

effapp commented Dec 14, 2023

for example, http redirect task in the workflow redirect url of Page, then How does I pass values to the Page?

@sebastienros
Copy link
Member

Sorry but it is hard to understand your question. Please try to rephrase it, or provide examples, screenshots, ... anything that could help.

@sebastienros sebastienros added this to the backlog milestone Dec 14, 2023
@effapp
Copy link
Author

effapp commented Jan 3, 2024

Sorry but it is hard to understand your question. Please try to rephrase it, or provide examples, screenshots, ... anything that could help.

Hi:

1 How do I pass values to ContentItem display page ?
Example: Https://localhost:5001/Contents/ContentItems/contentItemId?param=xxxxx

2 How do I receive query string "param" in the ContentItem display page?

@sebastienros
Copy link
Member

You need to create a custom view for this content type, see this doc https://docs.orchardcore.net/en/latest/docs/reference/modules/Templates/#content-templates

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

3 participants