Ticket #283 (closed enhancement: fixed)

Opened 6 years ago

Last modified 6 years ago

Publishing a resource

Reported by: tarmo Assigned to: gbalazs
Priority: critical Milestone: 0.3 Louhi
Component: generic Version:
Keywords: Cc:
Time spent: 4.0h Time remaining: 0h
Time planned: 8h

Description

(story #265) After the user has submitted the metadata edit form (#280) and if the resource is still in Draft mode, the following form is displayed (if form about sharing (#282) also is shown, it is shown first):

  • text: "This resource is currently in draft mode. This means that your name is not yet shown to others and this resource is also less visible in search results. If you think this resource is now ready enough to be displayed to others, please publish it."
  • two buttons: "Keep as draft" and "Publish"

If the user clicks Publish, the state is changed to published. Otherwise nothing is changed.

Change History

04/11/06 11:50:17 changed by gbalazs

  • owner changed from anonymous to gbalazs.
  • status changed from new to assigned.
  • tt_remaining changed.
  • tt_spent changed.
  • tt_estimated set to 8h.

04/11/06 12:52:49 changed by gbalazs

I wondering about displaying this text under every content, if the status is draft. Now I created a macro what do this for me. And is necessary to display keep as draft button? Because there is no action if the user click on it.

04/11/06 13:14:23 changed by jukka

This page appears only after editing, as a part of some kind of a editing wizard. The idea is to offer few simple alternatives and you have to choose one to go on. This is like that 'Create new content'-wizard which offers three (soon only two) big choices.

The action in 'keep as draft' is to go on to the next step of the wizard, and as this seems to be the last step, would probably lead to view page.

04/11/06 15:07:20 changed by jukka

Correction to my comment: this is part of Create new content -wizard (step 5). There is no editing wizard.

04/11/06 15:45:30 changed by gbalazs

  • status changed from assigned to closed.
  • tt_spent set to 4.0h.
  • resolution set to fixed.
  • tt_remaining set to 0h.

(In [181]) closes #283, spent 4h I have created this step of the so-called add content wizard. Created a new page, tbox_ask_publish.pt, where i ask the user for publish or keep as draft his new content. Depends on the user choice, a method in SectionFolder?.py /askPublish(self, REQUEST)/ will publish or keep as draft the newly created content. tbox_ask_publish.pt needs the id of the new content, so when you redirect to this page, don't forget to add the id of the content like this: /tbox_ask_publish?id=123456

At the moment u can test this publishing wizard by adding a new content, because i redirected the confirmFile method in SectionFolder?.py to tbox_ask_publish.