Open queengab opened 8 years ago
Hi @queengab , I think you have to take a deep look at how pages are generated in OctoberCMS.
The process i would follow would be something like that:
This plugin in not considered as working, so you can take a look at the code but not use it "as well". You should also take a look at the packages I've used in this plugin, as it would probably help you on the parsing step.
Let me know if this helps you, or if I can help in another way.
Hi tiipiik,
Thanks very much for the contact! So, First of all, i thinked exactly in the same way. I could use a library to parae RTF files, create for each chapter a folder and create paragraph divided. I think is the best solution for the end user. I m not worried about parse the RTF files (even though i d like to create control directly in the october backend, and i don t know how... :) ).
The thing thqt stress me is: I m october and laravel newbie, so i cant immagine how to use import api of the cms, creating folders in the content section and divide paragraphs for each chapter. I wonder my model should take my rtf, forum each papragraph fill the yaml forms and import directly as contento (important not as page), beacuse i create then a page for each chapters and call the paragraphs via the yaml shortcut. Can you how to import in the content section of octber? Ypur plugin was figured out to work with pages no?
Thanks very much i hope will be news soon.
Bye Gabriele
In fact, you have two solutions for that:
For what you describe, as the enduser has no control on what he import (am I wrong ?), the only thing you have to provide to him is the upload file input. Next you will use your own system to extract and create the pages.
Once you've parsed your file, take a look at the Static Page and Static Content files generated when you create a page or a content from the admin. you will see the datas you need to add at the top of your file (like layout, components, etc.), and where you will have to write them on your folders. After that it's only writing to file, like you would do in any PHP application.
If you have a concrete work on that maybe I could help you a little bit more thant theoreticaly.
Hi,
and thanks for your effort in this project. I think, maybe, the first option should be better.
So i wonder the end user, load for the first time the rtf file. The plugin read from rtf and convert directly to html with this library (https://github.com/henck/rtf-html-php), i don't if exists some better library. In the process, i would like to split each paragraph to create a content, and for each chapter a page in batch process To manage contents i think will use che cms tab (with pages and content) or better the plugin pages, but i don't know if something could change. Plus, a button update, that update chapter and paragraph formatted in the same way.
I have a concrete work, this the cause i contact you. I have a little knowledge of laravel and october back-end side. I think i know what i would like to create but can't say in which way.
We can start from your plugin? How?
Thanks very much, your hel is very appriciated. I tihnk if october become a cms used in large scale we will work for some years :)
Bye!
Ps: i accidentally closed this issue....
Some news about???
Oh, sorry. I only notice you closed this issue, so I wondering you don't need help anymore.
In order to help you the best way wound be to have an OctoberCMS install somewhere where we could work on the plugin together. Can you make this install and give me access ? Use my website to send me access or private datas.
I sent you an email via your website form.
Thanks!
Hi,
i am founding solutions to develop an import procedure to October. I have to import text from 17 chapters,. I want to take advantage of october cms structure. The idea is to create 17 pages and create for each paragraph a content contained in different folders.
Pages
chapter 1 chapter 2 chapter 3 eccc...
In Content area
chapter1
chapter2
Now how can we create a procedure that parses a doc, or pdf, or html file, creating in october each pages (chapter) and contents (paragraph) and fill all? Is there a batch procedure that creating pages and contents that can we use with this hypotethycal procedure?
Can we get your work, but i approch now to october cms so i don't understanding the use of apis
Thansk very much Gabriele