6

We are looking to convert an EE site to a static site, but leaving two sections of the site in ExpressionEngine. For these two sections, we want to use EE control panel to publish content, but it would be great if on submission of the new entry, the content could also be exported as a flat file (preferably with markdown). Has anyone ever come across such an add-on that will allow for this?

4
  • Are you using MarkDown as your format on text field(s) in the CP already? What field types do you need to export - just textareas?
    – Tom Davies
    Nov 28, 2012 at 19:07
  • No, not currently using MarkDown as format on text fields. We need to export title, content, author, date, etc (text fields and text areas).
    – Kelly Cook
    Nov 28, 2012 at 19:13
  • And you want to trigger this action from within the CP, correct?
    – Tom Davies
    Nov 28, 2012 at 19:14
  • That is correct. When a new entry is submitted (or a current entry is edited and submitted), the content of the entry is exported as a MarkDown, HTML, or XML file (preferably MarkDown).
    – Kelly Cook
    Nov 28, 2012 at 19:21

2 Answers 2

5

I don't believe there's an add-on that does that but you could write a simple extension to do this using the "entry_submission_absolute_end" hook or a similar hook.

0
3

I haven't used it yet, but this looks like exactly what you need: http://devot-ee.com/add-ons/vl-file-generator

1
  • Hmmm, on second thought it looks like that generates a file per-channel rather than per-entry. Maybe could be easily modified to do what you need, though. Nov 28, 2012 at 20:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.