Wouldn't it be great if...

Use GitHub to post feature requests for phpwcms.
Locked
DrubusCulubus
Posts: 47
Joined: Sat 10. Apr 2004, 12:53
Location: NL

Wouldn't it be great if...

Post by DrubusCulubus »

Hi there,

I just wonder, isn't it a great idea to have a possibility to generate a file throught the PHPWCMS? I mean a content-part: 'Create File'

When you click on it you can enter HTML or what ever. The PHPWCMS would generate a file in the locatoin that you desire with the file name passed from the title of the HTML document. Like in 'Title: Test Document' and the file generated would be 'yourpath/test_document.shtml'.

Any thoughts / ideas?

Cheers! :D
http://qoala.nl - Nieuws om op te reageren!
Jérôme
Posts: 481
Joined: Tue 16. Mar 2004, 10:33
Location: Cologne, Germany
Contact:

Post by Jérôme »

What would be a reason to do something like that? Can you give us an example for what you would use this?

- Jérôme
Ben
Posts: 558
Joined: Wed 14. Jan 2004, 08:05
Location: Atlanta
Contact:

here's an example

Post by Ben »

I run some sites using http://www.litecommerce.com and they give you the ability to edit all files in a 'template' directory tree. It's simply a text box that the file is loaded into. You can also create new files and folders. If you are like me, you could have more time to drink beer if you could edit some files in a browser instead of having to do it in Dreamweaver or a text editor and then upload the file via ftp. This would also make it easier to make changes from anywhere.

I think that implementing QuiXplorer - http://quixplorer.sourceforge.net/ - would be a perfect solution. Just include the phpwcms authentication so outsiders don't have full access to manage (read: "destroy") all of your files.
Jérôme
Posts: 481
Joined: Tue 16. Mar 2004, 10:33
Location: Cologne, Germany
Contact:

Post by Jérôme »

Okay, I see your point, but what would be the use of this function? So you can create, edit and delete text-files in a special "template"-directory, but then? What would you do with these text files? Will they have html/php code in it? Do you want to use them in phpwcms? What do you especially want to do?

I don't think Oliver will include a function that can endanger the stability of phpwcms and this is always given when you edit files that the system is concerned with. We had a similar issue with MODs that should automatically be included to the system some weeks ago.
Ben
Posts: 558
Joined: Wed 14. Jan 2004, 08:05
Location: Atlanta
Contact:

So let's focus on the css editor ...

Post by Ben »

Jerome,

You are right regarding potential security issues. I was talking about being able to edit / create any type of file - not just txt. I really think that this thread discusses a much more usable feature: http://www.phpwcms.de/forum/viewtopic.php?t=2642. The feature being the ability to edit more than one css, not just frontend.css. It seems like the functionality has already been built and is in use for page layouts and templates. Now, it just needs to be extended to css's.
Locked