-
Hello everyone.
Not sure what I have missed. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 12 replies
-
Updated to 1.7.2 does not fix an issue. |
Beta Was this translation helpful? Give feedback.
-
Importing your package worked for me with a site set up with the built-in Blog recipe with the latest |
Beta Was this translation helpful? Give feedback.
-
@Piedone thank you so much for the screenshot video. It is very helpful. Changes of blog post across ContentItemIndex and Document tables after importing an exported file.
From the action/result table above, here are what I found:
For those who import an exported file into another websites won't find this issue. Since deleting an content item only unpublish it, this can make a strange behavior for import/export tool. public class BlogPostContentHandler : ContentHandlerBase
{
private readonly ISession _session;
public BlogPostContentHandler(ISession session) => _session = session;
public override async Task RemovedAsync(RemoveContentContext context)
{
if (context.ContentItem.ContentType != "BlogPost")
{
return;
}
_session.Delete(context.ContentItem);
await _session.SaveChangesAsync();
}
} In services.AddScoped<IContentHandler, BlogPostContentHandler>(); |
Beta Was this translation helpful? Give feedback.
What exactly do you mean by it not working? I just tried with the least source, and it works, see below. So, if anything was broken, we fixed it in the meantime.
2024-05-02_20h14_35.mp4