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

There is no preview part to add #6338

Closed
devhomecali opened this issue Jun 4, 2020 · 5 comments · Fixed by #7148
Closed

There is no preview part to add #6338

devhomecali opened this issue Jun 4, 2020 · 5 comments · Fixed by #7148
Labels
Milestone

Comments

@devhomecali
Copy link

Configuring the Preview feature for Blog Posts this guide, you describe:

  • Edit the content definition of Blog Post, click Add Parts, then select Preview. Click Save.
  • In the list of parts, for Preview, click on Edit to change its settings for this content type.
  • In the Pattern textbox, enter /blogpost/{{ ContentItem.Content.AliasPart.Alias }} which is the way to generate the same URL as the route which is configured in the Razor page.

But there is no Preview Part at that list of Content Parts.

How can I add the preview part to PostBlog definition type?

Screenshot

@deanmarcussen
Copy link
Member

You probably need to upgrade to the preview package feed as I think we added the Preview Part after RC1

See the guide here
https://docs.orchardcore.net/en/dev/docs/getting-started/preview-package-source/

@devhomecali
Copy link
Author

@deanmarcussen Following your suggestion I installed the preview version: OrchardCore.Application.Cms.Tarjets v1.0.0-rc1-13380. But although the Preview part can now be added to the definition of the BlogPost, it did not solve the described problem. Doing the settings described in the guide for the preview does not have any effect, the custom url does not look: the standard url of the preview is shown.

Image 1: Preview is added to BlogPost definition

Image 2: Pattern for Preview

Image 3: Normal URL for BlogPost content

Image4: Preview url is not the slug alias pattern

@sebastienros sebastienros added this to the 1.0 milestone Jul 2, 2020
@sebastienros sebastienros added the P1 label Jul 2, 2020
@sebastienros
Copy link
Member

Can someone else confirm it's broken?

@ns8482e
Copy link
Contributor

ns8482e commented Jul 10, 2020

@devhomecali Preview part allows you to configure PreviewUrl for Preview button in add/edit screen.

It doesn’t replace ootb content management UI.

You are still able see OOTB view screen.

@deanmarcussen
Copy link
Member

I can confirm the PreviewPart is working fine.

image

What @devhomecali is expecting as shown in the image above is that the Content Admin List's View button would also reflect the url configured in the PreviewPart, rather than the standard Content Controller routes.

i.e. the view link being /blogpost/slug rather than Contents/ContentItems/4cqfernmc5qmvz689jnvyen6xh

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

Successfully merging a pull request may close this issue.

4 participants