If I have a custom module, how I can use schedule publish for it? or do we have a custom function for it?
Environment
Xperience by Kentico version: [31.0.0
.NET version: 8
You have no notifications.
If I have a custom module, how I can use schedule publish for it? or do we have a custom function for it?
Environment
Xperience by Kentico version: [31.0.0
.NET version: 8
Hieuden0,
When you say "A custom Module" do you mean an actual Custom Module Class? If so, those do not inherently have a "Publish" feature like the content hub does (they also don't have localization or other features).
You can create a boolean "Enabled" column (and define that as the Enable column in the TypeInfo), but that still is only a toggle and only does whatever you program it to do (so you have to make sure to check if it's true in queries and such).
That's normally what you would do on a Custom Module Class, is have an _____Enabled bool class, and in your queries only retrieve those enabled.
If you want features like publishing workflows, consider treating the data as content and create a content type for it.
To response this discussion, you have to login first.