Skip to main content

Questions tagged [draft]

0 votes
0 answers
52 views

Under certain circumstances, I would like to resave an entry as a draft. In an EVENT_AFTER_SAVE event I check if these circumstances are met. I found out that there is a method saveElementAsDraft and ...
obs's user avatar
  • 722
0 votes
1 answer
121 views

I'm trying to build a front end form which creates entries. So far, this works great when using actionInput('entries/save-entry'). I also want to provide the option to save the entry as a draft. I ...
obs's user avatar
  • 722
1 vote
0 answers
83 views

Since CRAFT_AUTOSAVE_DRAFTS=false was deprecated in Craft 4, and actually this method also affect some Craft functionality. i want to know if there another method or event that will run myfunction ...
Nixxian365's user avatar
1 vote
1 answer
249 views

I have an entry showing as draft but I would like it to go live. I have looked but can't work out what I'm doing wrong.
Liam's user avatar
  • 11
0 votes
0 answers
153 views

https://github.com/craftcms/cms/discussions/8912 I have a site with a large number of subsites, so it would be very useful for content editors to save revisions/drafts for each site instead of entry. ...
RomanAvr's user avatar
  • 732
2 votes
2 answers
166 views

I have an entry with a readonly json field (Jason plugin). This field is populate with data from an external api. So I have a button in my entry page that call a custom route which call the api and ...
Robin Gauthier's user avatar
1 vote
1 answer
203 views

Is it possible to allow selecting drafts in an entries field? Not drafts of an existing live entry, but drafts that aren't published yet. The only thing I found is an ElementCriteriaEvent triggered in ...
MoritzLost's user avatar
  • 12.4k
1 vote
1 answer
129 views

I have a remote app that enables preview based on your editor craft account. I want to retrieve draft entries that they are working on, but i cant find a way to do this. 'authorId' seems to always be ...
Spotd's user avatar
  • 123
0 votes
1 answer
229 views

I'm making extensive updates to our homepage. Before I dig in, I want to confirm the steps to create a draft without overwriting the existing page. Select the entry that requires changes Select "Save ...
Kara's user avatar
  • 3
1 vote
1 answer
137 views

I have a front-end form which sends a limited selection of the fields to the action entryRevisions/saveDraft (actually a custom plugin action, but in the it end up there). I expected it to take the ...
ctigelaar's user avatar
  • 137
1 vote
1 answer
409 views

I am creating a news item page for a future release but I can't figure out how to preview it in Live View without Enabling it. Is there a way to view a page in progress without publishing it live?
Steve's user avatar
  • 11
1 vote
1 answer
105 views

I'm trying to get the drafts for the entry on the front end to populate my plugin on the sidebar but cannot get the drafts returned with this code in a Twig template. entry is an EntryModel here. ...
Angelo's user avatar
  • 201
1 vote
1 answer
83 views

I'm not sure if this is a two part question yet. I need to enforce field limitations (specifically, character limits for plain text fields) when working with drafts. In the CP, I discovered that ...
Aaron Ransom's user avatar
3 votes
1 answer
671 views

I have a live entry with an 'eventTime' text field having the content '2pm'. I also have an unpublished draft saved for that same entry with the 'eventTime' field having the content '3pm'. I use the ...
user avatar
6 votes
1 answer
3k views

Is there a way to schedule a draft of a entry to go live?
Taylor's user avatar
  • 123

15 30 50 per page