lundi 27 juin 2016

Custom Content creator?

I have an article news website. I want to create an article builder where users can create their own articles. I do not wish to have CMS's installed, as they will not solve my problem. The reason being is that I've already created a custom membership space. Where awards, payments, and extra details about the user are involved. Also, some users want to create multiple page articles, so they wish to link another page with their current article. This is why a CMS like Wordpress or Drupal cannot be of benefit for me.

What I want this article builder to do is be able to create a one page article or multiple pages. There will be two buttons, a back button and a forward button. The back button goes to the previous page of the article and the forward button goes to the next page. I've already created a template for the articles. The user will go to this article builder, which will have multiple forms like the title of the article, the text of the article, etc. The user will enter the details and that page will be created. The user then goes and does the next page of the article and so on. These pages will be stores in a new directory. After the user is done, they will publish the article to appear on the first page of the site.

I know I can do this using a database, but there will be so many entries for one article and I am limited on database space. Also, I don't want to use a database because text on those articles will appear to search engines as variables, so it's not SEO friendly. I've thought about creating a page creator page, where the user will enter the details and using Javascript's write methods they could create the page on client side, afterwards they can download that page. They will do this multiple times if they want multiple pages. After they're done, they could upload all their files to a form. That form will upload those files to that specific directory. One problem with this, is that I don't know how I am going to create a page creator page. How can I build a page that gives the user a .php page to download, with the template code and their texts included?

Is there any better way of doing this? Buzzfeed has an article creator, and it works really well. I just don't understand how it works. They use Javascript to show the client how it'll look like, but I don't know what they use to publish that article on the server. If there isn't any better way, could you explain to me how I can work on my solution?

I am fluent in HTML, CSS, PHP, SQL, and Javascript.

Aucun commentaire:

Enregistrer un commentaire