Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By sally_8212 on
Hi,
I am new to drupal, and I inherited a site that was working fine. Yesterday I lost my database (disk crash and no backups) so I had to rebuild it.
How do I add all the content that is sitting in the website file structure such as index.html, and all the node.html files? I have added back the Modules, but don't have anything defined in the Structure area either.
The website works for the most part except for Search, forms, pager function, logins that allow access to a couple of pages.
Thanks,
Sally
Comments
_
Drupal is a db based CMS and as such, all the content and usually the config is stored in the db so in general, a copy of the db is required for a restore. Unless the site builder did something nonstandard, there shouldn't even be an index.html file. Are you just asking in general, or is there an actual index.html file which contains the info you need?
The pages are available in HTML here are some snippets of code
All of the pages are available in HTML, they have drupal references in it such as this for the Site Search block, you can enter something to search for and it takes you to a Drupal default Page Not Found page
And the Drupal Settings, which I used to figure out what modules needed to be installed.
This is the code snippet for paging through the testimonials, the buttons show up. When you click on them you get a little spinning clock next to the button, but nothing happens.
So is there anyway to use this to recreate the drupal nodes, etc?
Thanks for your help,
Sally
_
without knowing the file names you linked above, i'm just guessing, but i would think you're just looking at the template files. The content itself would be in the db so no, there's no way to retrieve that from the file system :-(.
These snippets are from the
These snippets are from the testimonials.html file, the complete testimonials.html file contains all the content for the page renders perfectly, and I can navigate through the menus to all of the pages. It's just things like search that aren't working. These files are located in the BASE directory, there is another directory in the BASE directory called node that has a duplicate of each page but are named 1.html, 2.html, etc.
_
That's not drupal and completely non-standard, so I have no clue how or why it was done, or what to recommend going forward. You can however, take the content of those files (between the body tags) and paste it into drupal nodes if you want. Other than that, I would recommend trying to contact the previous developer as no 'real' drupal developer would do things that way.
Thanks, I figured you would
Thanks, I figured you would say something like that. ;-)