Tell me more ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

I have an interesting assignment. The requirement is that the user can upload a folder,containing static html, css, js files. And a link is generated So, then I don't want to have any drupal styling whatsoever.

My initial idea: -to set a specific content type, allow multiple file upload -upload all the files to a specific directory via some kind of rules -access the page at for example

www.example.com/sites/default/files/MYFOLDER/index.html

Do you think this is feasible approach :)

Regards from Netherlands

Oleg

share|improve this question
add comment

1 Answer

File (Field) Paths allows you to specify path using node fields. Using it, you can have node's files in directories like sites/default/files/custom_pages/[nid]/[node_title]/ Just make sure to put .htaccess inside custom_pages folder, one that will allow direct html serving.

Then you can generate link using the very same tokens.

share|improve this answer
1  
Feel like this should come with a disclaimer - that module has a lot of bugs in it (currently 101). We used it a while back and it caused us no end of problems that didn't manifest until the site went into production. Unhappy times, be warned :) –  Clive May 17 at 10:11
 
I never used it in anything that can be called actual production - maybe that's why it's bugs never bothered me? Oleg: Sorry for providing risky answer, I didn't know the risk. @Clive: thanks, good to know. –  Mołot May 17 at 10:17
 
Hi Clive and Molot :) Thanks for taking time to answer me. There are going to be additional follow-up queestions in a a while ! –  Oleg Videnov May 17 at 12:26
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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