Hi folks!!

I've added first step for new aiki multisite using url. for example
www.myshop.com, www.myshop.com/retailers ( other site)
This system can be combined with languages, but order must be
URL/site/language/...rest of route..:

Examples:
www.myshop.com
www.myshop.com/retailers
www.myshop.com/de
www.myshop.com/retailers/de

I want refine the code...but the idea works. Perhaps, the next step would
be  multiview: www.openclipart/ipad ..or www.openclipart/phone..


Instructions:
---------------------
1) pull changes

2) insert new field in aiki_site
`site_prefix` varchar(80) NOT NULL DEFAULT '',

3) Test
Execute the two SQL i'have attached. it's create other site called
betadmin...See it in action with www.yoursite.com/betadmin

Some ideas
--------------------
-  with step 3, we have a way to install easily site and a new approach for
admin.
- difference between apps and sites? is betadmin a application or a site?
Application must work in all site and with site widget (for example a upload
utility, a WYSWYG editor,
a, payment gateway...Sites work independently.
- aiki already had a system for multisite using parameters in ulr:
www.myshop.com?site=retailers. But this is a improvment.
- next step: config for every site.
- in shops, multi-site is very important: ww.myshop.com/france is not only
my shop in french..is my shop with french taxes, shipment..
Language can be useful for example: www.myshop.com/canada and
www.myshop.com/canada/fr, www.myshop.com/canada/en, or
www.openclipart/over18/en

roger
--
-- betadmin site (version 0.001 or pre-pre-pre-alpha)
--


INSERT INTO `aiki_sites` (`site_name`, `site_shortcut`, `is_active`, `if_closed_output`, `site_default_language`, `site_languages`, `widget_language`, `site_prefix`) VALUES
('betadmin', 'betadmin', 1, '', 'en', '', '', 'betadmin')


--
-- betadmin widgets 
--

INSERT INTO `aiki_widgets` (`app_id`, `widget_name`, `widget_site`, `widget_target`, `widget_type`, `display_order`, `style_id`, `is_father`, `father_widget`, `display_urls`, `kill_urls`, `normal_select`, `authorized_select`, `if_no_results`, `widget`, `css`, `nogui_widget`, `display_in_row_of`, `records_in_page`, `link_example`, `pagetitle`, `is_admin`, `if_authorized`, `permissions`, `remove_container`, `widget_cache_timeout`, `custom_output`, `custom_header`, `is_active`, `widget_owner`, `widget_privilege`) VALUES
(0, 'adminTerminal', 'betadmin', 'body', 'div', 0, '', '0', 1030, 'terminal', '', '', '', '', '<form method="post" action="[root]/admin2/terminal">\r\n<p>Sql Command: <br><input id="sql_query" name="sql_query" class="large" type="text" value="[POST[sql_query]]"><input id="submit_query" name="submit_query" value="Run" type="button"></p>\r\n</form>\r\n\r\n<h2>Results of <br>[POST[sql_query]]</h2>\r\n<php sql_rows([POST[sql_query]]); php>', '#adminTerminal table {\r\nborder-collapse: collapse;}\r\n\r\n#adminTerminal table tr.even {\r\nbackground-color: #f0f0f0;}\r\n\r\n#adminTerminal table th,\r\n#adminTerminal table td {\r\npadding: 2px 4px;}\r\n\r\n#adminTerminal table th {\r\nmargin:1px;\r\nbackground-color: #d0d0d0;}\r\n\r\n\r\n#adminTerminal input {\r\nborder:1px solid #666;}\r\n\r\ninput.large {width:80%}\r\n\r\n\r\n', '', 0, 0, '', '', 0, '', '', 0, 0, 0, '', 1, '', ''),
(0, 'adminWrapper', 'betadmin', 'body', 'div', 1, '', '1', 0, 'homepage|system|users|terminal|about', '', '\r\n', '', '', '<div id="header">\r\n<ul id="main-menu">\r\n    <li><a href="[route]/system">Sytem</a></li>\r\n    <li><a href="[route]/users">Users</a></li>\r\n    <li><a href="[route]/terminal">Terminal</a></li>\r\n<li><a href="[route]/about">about</a></li>\r\n</ul>\r\n\r\n</div>\r\n\r\n<div id="content">\r\n    \r\n\r\n', '\r\n#adminWrapper {\r\n  width:960px;\r\n  padding: 5px 10px;\r\n  margin:0 auto;\r\n  background-color: #fff;\r\n}  \r\n\r\nbody {\r\n background-color: #333;\r\n font-family:sans-serif;\r\n font-size: 12px;}\r\n\r\n#header {\r\n  height: 89px;\r\n  position:relative;\r\n  border-bottom: 1px solid #666}\r\n\r\n#header ul {\r\n  padding:0;\r\n  margin:0;\r\n  position: absolute;\r\n  height:1.2em;\r\n  bottom:15px;\r\n  left:0px;}\r\n\r\n#header li {\r\n  display: inline-block;\r\n  width:85px;\r\n  padding: 2px 0px 2px 0px;\r\n  margin-right:5px;}\r\n\r\n#header a { text-decoration:none;color:#777}\r\n#header a:hover {color:orange}\r\n\r\n\r\n#content {\r\nmin-height: 360px;}\r\n', '', 0, 0, '', '', 0, '', '', 0, 0, 0, '', 1, '', ''),
(0, 'adminAboutAiki', 'betadmin', 'body', 'div', 0, '', '0', 1030, 'about', '', '', '', '', '\r\n<h2>aiki framework<em> [version][revision]</em></h2>\r\n\r\n<p>http://www.aikiframework.org</p>\r\n\r\n<h3>Credits:</h3>\r\n<ul>\r\n<li>Bassel Safadi</li>\r\n<li>Jon Phillips</li>\r\n<li>Michi Krnac</li>\r\n<li>Ronaldo Barbachano</li>\r\n<li>Steven Garcia</li>\r\n<li>Roger Martín</li>\r\n<li>Vera Lobatcheva</li>\r\n</ul>', '#adminAboutAiki {\r\nmargin:30px 0px 30px 240px;\r\nwidth:480px;}\r\n\r\n#adminAboutAiki h2 em {\r\ndisplay:block;\r\nfont-size:0.5em}\r\n\r\n#adminAboutAiki li {\r\ndisplay:block;\r\ntext-align:center}', '', 0, 0, '', '', 0, '', '', 0, 0, 0, '', 1, '', ''),
(0, 'adminFooter', 'betadmin', 'body', 'div', 999, '', '1', 0, 'homepage|about|terminal', '', '', '', '', '<ul>\r\n<li>aiki</li>\r\n<li>froga</li>\r\n<li>...</il>\r\n</ul>', '#adminFooter {\r\nfont-size: 0.8em;\r\ntext-align:center;\r\nmargin: 14px 15px 5px 15px;\r\nborder-top: 1px solid #333;}\r\n\r\n#adminFooter li {\r\ndisplay:inline }\r\n', '', 0, 0, '', '', 0, '', '', 0, 0, 0, '', 1, '', ''),
(0, 'adminSystem', 'betadmin', 'body', 'div', 0, '', '', 1030, 'system', '', '', '', '', 'With hard work that would be a page (with a lot of information about aiki', '', '', 0, 0, '', '', 0, '', '', 0, 0, 0, '', 1, '', ''),
(0, 'adminUsers', 'betadmin', 'body', 'div', 0, '', '0', 1030, 'users', '', '', '', 'a list of users?', 'a list of users', '', '', 0, 0, '', '', 0, '', '', 0, 0, 0, '', 1, '', '');
_______________________________________________
Mailing list: https://launchpad.net/~aikiframework-devel
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help   : https://help.launchpad.net/ListHelp

Reply via email to