• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content

Loading…

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

Like this presentation? Why not share!

Building a Sub-Folder Site in ExpressionEngine MSM

on

  • 5,402 views

 

Statistics

Views

Total Views
5,402
Views on SlideShare
5,402
Embed Views
0

Actions

Likes
1
Downloads
8
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Building a Sub-Folder Site in ExpressionEngine MSM Building a Sub-Folder Site in ExpressionEngine MSM Presentation Transcript

    • EE + EE = EEEE! A brief overview of the Multiple Site Manager (MSM) Chris Arnold · Limber Creative
    • Bird’s Eye View Limber Creative: Web Design, Development EE Nerdery jQuery framework (a relative n00b) Collaboratory (share our space) Design Litmus (chatter about the biz) http://letscollab.org http://designlitm.us
    • MS-What? “Multiple Site Manager” The ability to manage more than a single site from one ExpressionEngine control panel Adds a “Sites” tab to your control panel, gathering all sites into a single starting point
    • Benefits of MSM Site-wide member groups reducing redundancy, accompanied by MSM site-speci c preferences Modules remain site agnostic Ability to modify colors and per-site titles with CSS using the LG Add Sitename extension Extensions have per-site preferences (.htaccess, meta, etc.) to pinpoint site requirements
    • Regional Scenario Manage different sites over multiple regions with language, image, and content variations (my example) /mx .com /br /gb
    • Sub-Brand Scenario Manage sites from the same client that may have different purposes or requirements such as sub-brands under an overarching corporation (e.g. large law rm) Site 1a Site 1b Site 1c Site 1d Site 1e
    • Commerce Scenario Oversee a more robust marketing site alongside a large e-commerce presence; more initial investment but perhaps ultimately the best setup for client (e.g. Toms Shoes) Marketing Sales
    • MSM Installation Version 1.x (don’t fret, 2.x is very similar) 1. Backup Database (phpMyAdmin export) 2. Upload MSM Files (“Sites” directory) EE1 EE2 · core.sites.php · Sites.php · cp.sites.php · sites.php · lang.sites.php · lang.sites.php Reference official EE docs for directory upload locations
    • MSM Setup Version 1.x (don’t fret, 2.x is very similar) 3. Create New Site (Sites > Edit Sites > Create New Site)
    • MSM Setup Version 1.x (don’t fret, 2.x is very similar) 3. Create New Site (Sites > Edit Sites > Create New Site)
    • MSM Setup Version 1.x (don’t fret, 2.x is very similar) 3. Create New Site (Sites > Edit Sites > Create New Site) 4. Con gure Site Options (Label, Short Name, Description)
    • MSM Setup Version 1.x (don’t fret, 2.x is very similar) 3. Create New Site (Sites > Edit Sites > Create New Site) 4. Con gure Site Options (Label, Short Name, Description)
    • MSM Setup Version 1.x (don’t fret, 2.x is very similar) 3. Create New Site (Sites > Edit Sites > Create New Site) 4. Con gure Site Options (Label, Short Name, Description) 5. Set Import Options (Label, Short Name, Description) · Import: A --> B, whereas A is then empty · Duplicate: A = B, whereas a copy of A is created · Do Nothing: Starting new site from scratch
    • MSM Setup Version 1.x (don’t fret, 2.x is very similar) 3. Create New Site (Sites > Edit Sites > Create New Site) 4. Con gure Site Options (Label, Short Name, Description) 5. Set Import Options (Label, Short Name, Description) · Import: A --> B, whereas A is then empty · Duplicate: A = B, whereas a copy of A is created · Do Nothing: Starting new site from scratch
    • MSM Setup Version 1.x (don’t fret, 2.x is very similar) 3. Create New Site (Sites > Edit Sites > Create New Site) 4. Con gure Site Options (Label, Short Name, Description) 5. Set Import Options · Import: A > B, whereas A is then gone · Duplicate: A > A, whereas a copy of A is created · Do Nothing 6. Update System Prefs (URL path, set default template)
    • MSM URL Setup Version 1.x 1. Choose how to display site (sub-domain, root domain, sub-folder)
    • MSM URL Setup Version 1.x 1. Choose how to display site (sub-domain, root domain, sub-folder) The winner is sub-folder! Let’s call it mx for Mexico. The sub-folder structure is next. 2. Our folder, alongside the system folder, contains three les
    • MSM URL Setup Version 1.x 1. Choose how to display site (sub-domain, root domain, sub-folder) .htaccess The winner is sub-folder! Let’s call it mx for Mexico. index.php path.php The sub-folder structure is next. 2. Our folder, alongside the system folder, contains three les
    • MSM URL Setup Version 1.x 1. Choose how to display site (sub-domain, root domain, sub-folder) The winner is sub-folder! Let’s call it mx for Mexico. The sub-folder structure is next. 2. Our folder, alongside the system folder, contains three les 3. Copy les from the root folder (not your system folder)
    • MSM URL Setup Version 1.x 1. Choose how to display site (sub-domain, root domain, sub-folder) The winner is sub-folder! Let’s call it mx for Mexico. The sub-folder structure is next. 2. Our folder, alongside the system folder, contains three les 3. Copy les from the root folder (not your system folder) 4. Root folder now contains your mx folder
    • MSM URL Setup Version 1.x .htaccess admin 1. Choose how to display site (sub-domain, root domain, sub-folder) images index.php js The winner is sub-folder! Let’s call it mx for Mexico. mx The sub-folder structure is next. path.php styles themes ... 2. Our folder, alongside the system folder, contains three les 3. Copy les from the root folder (not your system folder) 4. Root folder now contains your mx folder
    • Modify Rules
    • Modify Rules Version 1.x (path.php) 1. Be sure $system_path is pointing correctly 2. Enable $site_name accordingly (new site short_name) 3. Adjust the $site_url to your new sub-folder
    • Modify Rules <?php // -------------------------------------------------- Version 1.x // DO NOT ALTER THIS FILE UNLESS YOU HAVE A REASON TO // -------------------------------------------------- // Path to the directory containing your backend files (path.php) $system_path = "../admin/"; // -------------------------------------------------- // MANUALLY CONFIGURABLE VARIABLES 1. Be sure $system_path is pointing correctly // See user guide for more information // -------------------------------------------------- 2. Enable $site_name accordingly (new site short_name) $site_name = 'mysite_mx'; 3. Adjust$template_group =to your new sub-folder the $site_url ""; $template = ""; $site_url = "http://mysite.com/mx/"; $site_index = ""; $site_404 = ""; $global_vars = array(); ?>
    • Modify Rules
    • Modify Rules Version 1.x 4. Check once more your URL path is correct in the CP (Admin > System Prefs > General Con guration > URL Root to Directory) 5. Address setup changes with LG .htaccess Generator · Server directory path · RewriteBase to reflect /mx/ · RewriteRule to reflect /mx/
    • Final Touches Version 1.x Visit your new MSM site in browser of choice. A few potential issues to keep an eye out for: · Incorrect path.php settings · URL to new site directory not set in CP · .htaccess deciding to throw a hissy* · double-check custom fields for extra characters · update any hard-coded entry_id instances
    • Is It Perfect? (A few drawbacks) Not all extensions and modules play well with MSM, so beware when choosing the best support systems Primary e-commerce tools are not EE2 ready as of yet; the CartThrob and FoxEE folks are working on it Client management curve—setting expectations
    • Is It Perfect? (Keep in mind) Inability to duplicate weblog / channel entries across multiple sites; hopefully soon, though Member Group management cumbersome when delegating permissions across more than one site
    • Full Circle (What it can do for you) Extends nicely with relatively few hiccups—1, 2, 3, ... sites Provides designers and developers another option when providing solutions to current or potential clients Affordable management tool when considering what it does for clients—$199 to manage 3 sites; $50 each additional site
    • Thank You! Chris Arnold · Limber Creative @limbercreative (check-in for a link to these slides) http://limbercreative.com http://designlitm.us http://letscollab.org
    • Thank You! Design Litmus MSM Article: http://DesignLitm.us/u/20 ExpressionEngine Documentation EE1-http://expressionengine.com/legacy_docs/cp/sites/index.html EE2-http://expressionengine.com/user_guide/cp/sites/index.html Chris Arnold · Limber Creative @limbercreative (check-in for a link to these slides) http://limbercreative.com http://designlitm.us http://letscollab.org