cotonti.com : Question about draft articles https://www.cotonti.com Останні повідомлення в темі Cotonti en Sun, 01 Feb 2026 11:04:39 -0000 ez
This system (cat) thing I know (i use it in some off my coding), so I could use this.

I like things to be simple, so I do not need master_id and stuff.. One draft is enough.

If I could make this in a clean plugin with no core hacking, I will release it for SURE, then everybody can benefit :)

If someone has any more ideas... Let me know.. (I could use good ideas)

greetings,

Leo (ez)]]>
Сб, 30 Січ 2010 03:00:54 -0000
tensh
So you can make a plugin that will sign drafts as 'page_key' = 'draft'.
Additionally, create 2 additional page extra fields: 'page_masterid' (int) and 'page_hasdraft' (tinyint (1)), in which you'll fill in the id of a page on which the draft is based on, and you'll mark the page for which the draft was made.

This way one page can have multiple drafts which you'll call in plugin interface by page id.
1. Select pages that have page_hasdraft = 1
2. Foreach of the above, select pages that have 'page_key' = 'draft' and 'page_masterid' = 'id of the mother page'.

Hope that's clear... o_O

Added 4 minutes later:

Of course the logic behind drafts is more complex (like decide whether you can make drafts out of other drafts, or not), but I think it can be made as a plugin.]]>
Пт, 29 Січ 2010 20:58:21 -0000
ez
I will have a look at it, and see if I can think off something simple :)

Im my first opinion.. It is just a status field extra in the db (that means Draft)
And an adjusted filter for the validation queue (filter out drafts)
and for the lists also filter out drafts

My client wants this, so maybe i have to make it for him (customizing)

Well I will have a look at it... It is a very nice option if I can make this..

cu]]>
Thu, 28 Січ 2010 22:01:18 -0000
Trustmaster
Or it could be a nice addition to Wiki plugin, btw.]]>
Thu, 28 Січ 2010 21:27:47 -0000
pieter Thu, 28 Січ 2010 17:42:01 -0000 ez The users only have the "Put it in publish queue" option now.

In wordpress there is such an option (it saves a lot off drafts), but it would be VERY nice
If the users can save one draft item in cotonti.

So a draft version is NOT in the validation queue and it is not published.
I would be nice if the users can goto something like: "My drafts"

Is this possible, or is this an idea for development ????

Let me know please]]>
Thu, 28 Січ 2010 17:34:15 -0000