issues with copying site to local wamp server
Permalinkconfigure(); return $result; } public function install() { $pkg = parent::install(); $this->configure(); } public function configure() { $pkg = Package::getByHandle('tony_multi_file_attribute'); Loader::model('collection_types'); Loader::model('collection_attributes'); $db = Loader::db(); //install new multiple files attribute type $multiFileAttrType = AttributeType::getByHandle('multiple_files'); if(!is_object($multiFileAttrType) || !intval($multiFileAttrType->getAttributeTypeID()) ) { $multiFileAttrType = AttributeType::add('multiple_files', t('Multiple Files'), $pkg); } //check that the multi-files attribute type is associate with pages $collectionAttrCategory = AttributeKeyCategory::getByHandle('collection'); $catTypeExists = $db->getOne('SELECT count(*) FROM AttributeTypeCategories WHERE atID=? AND akCategoryID=?', array( $multiFileAttrType->getAttributeTypeID(), $collectionAttrCategory->getAttributeKeyCategoryID() )); if(!$catTypeExists) $collectionAttrCategory->associateAttributeKeyType($multiFileAttrType); $multiFileAttrKey=CollectionAttributeKey::getByHandle('files'); if( !$multiFileAttrKey || !intval($multiFileAttrKey->getAttributeKeyID()) ) $multiFileAttrKey = CollectionAttributeKey::add( $multiFileAttrType, array('akName'=>t("Images/Files"),'akHandle'=>'files','akIsSearchable'=>0), $pkg) ;//null, 'MULTIPLE_FILES'); } } ?>
I have managed to log in, and now that stuff is sitting between the edit mode bar and my site content, and the edit mode bar is blank.
The reason I'm copying to local, is I'm doing a substantial site redesign and need the site to stay as it is until the redesign is done. Is this the best way to do that, or should I just copy everything to a subdirectory on the host and copy the database for the redesign?
Any ideas what's going on locally?
Richard
