OpenEdit Developer ForumWelcome to the OpenEdit User Forum. You must be registered and logged in to post a new comment or topic. This forum is only for developers who want to discuss the technical aspects of the OpenEdit Framework. For end user technical support please visit the EnterMedia web site. Multiple Main SitesI stumbled upon OE today and it looks great.. For my needs, I would like the sub directories to define the main site look and feel having the pages in the base dir to be like subcomponents. I made an e-commerce, then copied the top level _site.conf, index.html and links.xml to the my site subdir, now that site seems to be a bit messed up. Can OpenEdit handle this ??
What's the Unlocker code in the bin directory ?? Thank You John Gentilin
Posted by John Gentilin Sun, Mar 14 2010 5:29 AM
|
Most Recent Posts
Slamdance
(5 comments)
Help upgrading jars on starter war
(4 comments)
Help, Velocity Generator not initializing
(3 comments)
Multiple Main Sites
(4 comments)
Search filtering by theme
(1 comments)
xml version "s1.0" error
(4 comments)
How can i localization the openedit?
(2 comments)
Problem with the interface
(4 comments)
latest openedit-editor build
(2 comments) Archive
Log in
Syndicate:
|
Copyright 2008 OpenEdit Inc. All rights reserved. last modified: Mar 14 2010

Hi John,
That's exactly the way it's designed to work - an e-commerce setup would "live" inside the subfolder and inherit the site look and feel. The templating system is extremely flexible - it support layout in layout re-use and complete control over what template each area uses.
You don't need to make a copy of those top level files - they will automatically be inherited by child folders as required. You'd create a seperate /store/_site.xconf if you needed to override, change or add any properties or behaviour to the e-commerce area only.
Unlocker is just a little windows only utility that unlocks files that are locked by the OS. As windows locks JAR files (And things like Lucene indexes) our upgrade tools and site - site synchonrization tools are unable to delete them. We occasionally use this util to unlock them so the files can be deleted by the java code.
Ian,
Thank you for the quick reply. The design patterns of OE are becoming clearer to me as I work through some of the code. I am trying somewhat break the inheriting of the site, at least separate the main site from the sub sites (folders) The basic flow would have the main site say "sign up for your own site", then the subdir created would be a completely separate site, that can have its own theme, banner logo, the works and if they needed the ecommerce module, it could be added to that subfolder.
I had a bit of a breakthrough by looking through the source code, the top level _site.conf defines a <layout> tag... I added this tag to the _site.conf in my sub site (folder) along with the layout.html/xconf, then pointed my <inner-layout> to a different theme from the theme defined in the top level _site.xconf. It seemed to work the way I expected to, my site1 (folder) was themed differently and had a completely different layout than the root URL.
Do you have any helpful pointers on where to start diving into the core code ?
It seems that most everything originates or has an entry point through OpenEditFilter:doFilter
John Gentilin
Hey John,
Sorry about the slow response - haven't been here in a couple weeks. I'd ignore the filter - that's pretty low level and should just "work" - the layout/template engine can easily handle what you're describing and the plugins are already designed to support multiple instances in the same webapp. I'd look at some of the plugins (like cart) to really get a feel for the layouts. Got specific questions, let me know, I'm happy to help.
For just a year, the Five Finger Shoes has become one of the most popular models for men. Featuring a thin, abrasion-resistant stretch nylon and breathable mesh upper that wraps your entire forefoot to "Keep Stuff Out." A single hook-and-loop closure helps secure the fit. A non-marking 3.5mm Vibram TC1 performance rubber sole is razor-siped for a sure grip, and a 2mm EVA midsole enhances plating protection and comfort.Best Five Finger Shoes sale here!