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

Alternates per content item #2866

Closed
HengzheLi opened this issue Dec 14, 2018 · 3 comments · Fixed by #16722
Closed

Alternates per content item #2866

HengzheLi opened this issue Dec 14, 2018 · 3 comments · Fixed by #16722

Comments

@HengzheLi
Copy link

My scenario is that I have create pages using Page contenttype. I want these pages to use different template to rendered. e.g. there is a page named userlogin and another named userregister. I want my custom login template to render userlogin page and my custom register template to render userregister page.

I remember in O1, there was an alternates that looks like Content-Item-[ContentId]. But this has to depend on the content item's id. And another approach is using Alias in placementinfo file to specify a alternates. But this seems not be implemented according this document https://orchardcore.readthedocs.io/en/latest/OrchardCore/OrchardCore.DisplayManagement/README/
in OC.

Is there another way to do that?

@sebastienros
Copy link
Member

We could add an alternate with the Alias module, good idea.

@sebastienros sebastienros added this to the rc milestone Dec 20, 2018
@sebastienros sebastienros modified the milestones: rc, 1.1 Apr 4, 2019
@agriffard agriffard changed the title Is possible to add alternates per contentitem Alternates per content item Dec 27, 2020
@flew2bits
Copy link
Contributor

I know this is an old issue, but is the goal here to add an alternate formatted like Content__[ContentType]__[Alias]? For example, a Page with an alias of my-page would have an alternate of Content__Page__my-page. Would any other alternates be appropriate? Should this take into account the content type stereotype as well?

@barthamark
Copy link
Contributor

The Content__[ContentType]__[Alias] looks like a good solution to me. I'll try to add it as part of the Harvest hackathon.

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