Publish Button - Blog, Page, etc

Jan 7, 2011 at 5:20 PM

Hi,

 

One fast question.

What requirements have to be met to show Publish button, yes the same as for Blog, Page when building Custom Module?
I am building News module and I've copied Blog Module, renamed all to News but weird thing is that when I want to Post new News I don't have Publish, only Save and Publish Later...

Where I can seek for issue? 

I hope that you had not hard-coded anything in Core for that, and yes I have already found your hard-coded integration with Main Menu in Core/Navigation for Blog...

 

Regards,
Daniel Skowroński 

Coordinator
Jan 7, 2011 at 7:56 PM

There's nothing hard-coded there :) Make your content type draftable (see SetupService for an example).

Jun 9, 2011 at 6:25 PM

I'm a little confused here. I can see from the code that the behavior is to display the publish now button if the content is draftable.

 

But why does draftable allow you to publish now?

The save button seems to save a draft.  If draftable means draft revisions are allowed, then shouldn't this flag behave in the opposite manner?

Coordinator
Jun 9, 2011 at 11:07 PM

If it's not draftable, saving is the same as publish.