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

WorldFallz’s picture

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?

sally_8212’s picture

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

<div class="block block-search block-form block-search-form odd block-without-title" id="block-search-form">
  <div class="block-inner clearfix">
                
    <div class="content clearfix">
      <form class="search-form" action="/testimonials" method="post" id="search-block-form" accept-charset="UTF-8"><div><div class="container-inline">
      <h2 class="element-invisible">Search form</h2>
    <div class="form-item form-type-textfield form-item-search-block-form">
  <input title="Enter the terms you wish to search for." class="custom-search-box form-text" placeholder="Search our site" type="text" id="edit-search-block-form--2" name="search_block_form" value="" size="15" maxlength="128" />
</div>
<div class="form-actions form-wrapper" id="edit-actions"><input alt="" class="custom-search-button form-submit" type="image" id="edit-submit" name="op" value="" src="sites/all/themes/custom/images/magnify.png" /></div><input type="hidden" name="form_build_id" value="form-HsEb88USH0QuQ8bEcwZMJBbB4YQQt2Onfpvf9GEvwRE" />
<input type="hidden" name="form_id" value="search_block_form" />
</div>
</div></form>    </div>
  </div>
</div>

And the Drupal Settings, which I used to figure out what modules needed to be installed.

jQuery.extend(Drupal.settings, {"basePath":"\/","pathPrefix":"","ajaxPageState":{"theme":"custom","theme_token":"ZzEcRB2KOwTupzrUKoSRMCSv_vBOyuBcYsXno8bF1L8","js":{"misc\/jquery.js":1,"misc\/jquery.once.js":1,"misc\/drupal.js":1,"misc\/jquery.cookie.js":1,"misc\/jquery.form.js":1,
"sites\/all\/modules\/nice_menus\/js\/jquery.bgiframe.js":1,
"sites\/all\/modules\/nice_menus\/js\/jquery.hoverIntent.js":1,
"sites\/all\/modules\/nice_menus\/js\/superfish.js":1,
"sites\/all\/modules\/nice_menus\/js\/nice_menus.js":1,
"misc\/ajax.js":1,"sites\/all\/modules\/css_browser_selector\/css_browser_selector.js":1,
"sites\/all\/modules\/panels\/js\/panels.js":1,"sites\/all\/modules\/custom_search\/js\/custom_search.js":1,
"sites\/all\/modules\/views\/js\/base.js":1,"misc\/progress.js":1,
"sites\/all\/modules\/views\/js\/ajax_view.js":1,"sites\/all\/modules\/google_analytics\/googleanalytics.js":1,"0":1,
"sites\/all\/themes\/omega\/omega\/js\/jquery.formalize.js":1,"sites\/all\/themes\/omega\/omega\/js\/omega-mediaqueries.js":1},"css":{"modules\/system\/system.base.css":1,"modules\/system\/system.menus.css":1,
"modules\/system\/system.messages.css":1,"modules\/system\/system.theme.css":1,
"sites\/all\/modules\/date\/date_api\/date.css":1,"modules\/field\/theme\/field.css":1,
"modules\/node\/node.css":1,"modules\/search\/search.css":1,
"modules\/user\/user.css":1,"sites\/all\/modules\/views\/css\/views.css":1,
"sites\/all\/modules\/ckeditor\/ckeditor.css":1,"sites\/all\/modules\/ctools\/css\/ctools.css":1,
"sites\/all\/modules\/panels\/css\/panels.css":1,"sites\/all\/modules\/custom_search\/custom_search.css":1,
"sites\/all\/modules\/nice_menus\/css\/nice_menus.css":1,"sites\/all\/modules\/nice_menus\/css\/nice_menus_default.css":1,
"sites\/all\/themes\/omega\/alpha\/css\/alpha-reset.css":1,"sites\/all\/themes\/omega\/alpha\/css\/alpha-mobile.css":1,"sites\/all\/themes\/omega\/alpha\/css\/alpha-alpha.css":1,"sites\/all\/themes\/omega\/omega\/css\/formalize.css":1,"sites\/all\/themes\/omega\/omega\/css\/omega-text.css":1,"sites\/all\/themes\/omega\/omega\/css\/omega-branding.css":1,"sites\/all\/themes\/omega\/omega\/css\/omega-menu.css":1,"sites\/all\/themes\/omega\/omega\/css\/omega-forms.css":1,"sites\/all\/themes\/omega\/omega\/css\/omega-visuals.css":1,"sites\/all\/themes\/custom\/css\/global.css":1,"ie::normal::sites\/all\/themes\/custom\/css\/custom-alpha-default.css":1,"ie::normal::sites\/all\/themes\/custom\/css\/custom-alpha-default-normal.css":1,"ie::normal::sites\/all\/themes\/omega\/alpha\/css\/grid\/alpha_default\/normal\/alpha-default-normal-12.css":1,"narrow::sites\/all\/themes\/custom\/css\/custom-alpha-default.css":1,"narrow::sites\/all\/themes\/custom\/css\/custom-alpha-default-narrow.css":1,"sites\/all\/themes\/omega\/alpha\/css\/grid\/alpha_default\/narrow\/alpha-default-narrow-12.css":1,"normal::sites\/all\/themes\/custom\/css\/custom-alpha-default.css":1,"normal::sites\/all\/themes\/custom\/css\/custom-alpha-default-normal.css":1,"sites\/all\/themes\/omega\/alpha\/css\/grid\/alpha_default\/normal\/alpha-default-normal-12.css":1,"wide::sites\/all\/themes\/custom\/css\/custom-alpha-default.css":1,"wide::sites\/all\/themes\/custom\/css\/custom-alpha-default-wide.css":1,"sites\/all\/themes\/omega\/alpha\/css\/grid\/alpha_default\/wide\/alpha-default-wide-12.css":1}},"custom_search":{"form_target":"_self","solr":0},"views":{"ajax_path":"\/views\/ajax","ajaxViews":{"views_dom_id:cad4ad1d3df3070310effc10131fab1f":{"view_name":"home_testimonials","view_display_id":"block_1","view_args":"","view_path":"node\/45","view_base_path":null,
"view_dom_id":"cad4ad1d3df3070310effc10131fab1f","pager_element":"0"}}},"nice_menus_options":{"delay":800,"speed":"slow"},"googleanalytics":{"trackOutbound":1,"trackMailto":1,"trackDownload":1,
"trackDownloadExtensions":"7z|aac|arc|arj|asf|asx|avi|bin|csv|doc|exe|flv|gif|gz|gzip|hqx|jar|jpe?g|js|mp(2|3|4|e?g)|mov(ie)?|msi|msp|pdf|phps|png|ppt|qtm?|ra(m|r)?|sea|sit|tar|tgz|torrent|txt|wav|wma|wmv|wpd|xls|xml|z|zip"},"omega":{"layouts":{"primary":"normal","order":["narrow","normal","wide"],"queries":{"narrow":"all and (min-width: 740px) and (min-device-width: 740px), (max-device-width: 800px) and (min-width: 740px) and (orientation:landscape)","normal":"all and (min-width: 980px) and (min-device-width: 980px), all and (max-device-width: 1024px) and (min-width: 1024px) and (orientation:landscape)","wide":"all and (min-width: 1220px)"}}}});

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.

<h2 class="element-invisible">Pages</h2>
<div class="item-list">
<ul class="pager clear fix">
<li class="pager-current first">1</li>
<li class="pager-item"><a title="Go to page 2" href="testimonials2679.html?page=1">2</a></li>
<li class="pager-item"><a title="Go to page 3" href="testimonials4658.html?page=2">3</a></li>
<li class="pager-item"><a title="Go to page 4" href="testimonials9ba9.html?page=3">4</a></li>
<li class="pager-next"><a title="Go to next page" href="testimonials2679.html?page=1">next ›</a></li>
<li class="pager-last last"><a title="Go to last page" href="testimonials9ba9.html?page=3">last »</a></li>
</ul></div>

So is there anyway to use this to recreate the drupal nodes, etc?

Thanks for your help,
Sally

WorldFallz’s picture

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 :-(.

sally_8212’s picture

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.

WorldFallz’s picture

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.

sally_8212’s picture

Thanks, I figured you would say something like that. ;-)