PageRenderTime 49ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/fuel/modules/user_guide/views/general/configuration.php

http://github.com/daylightstudio/FUEL-CMS
PHP | 411 lines | 410 code | 1 blank | 0 comment | 3 complexity | c6fcb2ffaf56784542e965047de8f982 MD5 | raw file
Possible License(s): LGPL-2.1, MPL-2.0-no-copyleft-exception
  1. <h1>Configuring FUEL CMS</h1>
  2. <p>The following are the main configuration options that you can set for FUEL.
  3. They can be overwritten in the <dfn>application/config/MY_fuel.ph</dfn>p file:</p>
  4. <table border="0" cellspacing="1" cellpadding="0" class="tableborder">
  5. <tbody>
  6. <tr>
  7. <th>Preference</th>
  8. <th>Default Value</th>
  9. <th>Options</th>
  10. <th>Description</th>
  11. </tr>
  12. <tr>
  13. <td colspan="4" class="hdr"><h4>General Settings</h4></td>
  14. </tr>
  15. <tr>
  16. <td><strong>site_name</strong></td>
  17. <td>MyWebsite</td>
  18. <td>None</td>
  19. <td>The name of the site to be displayed at the top. Also used to generate your session key.</td>
  20. </tr>
  21. <tr>
  22. <td><strong>fuel_path</strong></td>
  23. <td>fuel/</td>
  24. <td>None</td>
  25. <td>Path to the fuel admin from the web base directory.</td>
  26. </tr>
  27. <tr>
  28. <td><strong>fuel_mode</strong></td>
  29. <td>views</td>
  30. <td>cms, views, auto</td>
  31. <td>The option <dfn>cms</dfn> pulls views and variables from the database,
  32. <dfn>views</dfn> mode pulls views from the views folder and variables from the _variables folder.
  33. The <dfn>auto</dfn> option will first check the database for a page and if it doesn't exist or is not published,
  34. it will then check for a corresponding view file.
  35. </td>
  36. </tr>
  37. <tr>
  38. <td><strong>login_redirect</strong></td>
  39. <td>fuel/dashboard</td>
  40. <td>None</td>
  41. <td>The page to redirect to AFTER logging in.</td>
  42. </tr>
  43. <tr>
  44. <td><strong>logout_redirect</strong></td>
  45. <td>:last</td>
  46. <td>None</td>
  47. <td>the page to redirect to AFTER logging out. Use the special value <strong>:last</strong> to redirect to the last page you were on.</td>
  48. </tr>
  49. <tr>
  50. <td><strong>domain</strong></td>
  51. <td>$_SERVER['SERVER_NAME']</td>
  52. <td>None</td>
  53. <td>Used for system emails. Can be overwritten by MY_fuel.php</td>
  54. </tr>
  55. <tr>
  56. <td><strong>from_email</strong></td>
  57. <td>'admin@'.$config['domain']</td>
  58. <td>None</td>
  59. <td>Used for system emails.</td>
  60. </tr>
  61. <tr>
  62. <td><strong>fuel_path</strong></td>
  63. <td>fuel/</td>
  64. <td>None</td>
  65. <td>Path to the fuel admin from the web base directory.</td>
  66. </tr>
  67. <tr>
  68. <td><strong>allow_forgotten_password</strong></td>
  69. <td>TRUE</td>
  70. <td>boolean TRUE/FALSE</td>
  71. <td>Allow for login link to allow forgotten passwords.</td>
  72. </tr>
  73. <tr>
  74. <td><strong>max_number_archived</strong></td>
  75. <td>5</td>
  76. <td>None</td>
  77. <td>Maximum number module items to archive.</td>
  78. </tr>
  79. <tr>
  80. <td><strong>warn_if_modified</strong></td>
  81. <td>TRUE</td>
  82. <td>boolean TRUE/FALSE</td>
  83. <td>Warn if a form field has changed before leaving page.</td>
  84. </tr>
  85. <tr>
  86. <td><strong>max_recent_pages</strong></td>
  87. <td>5</td>
  88. <td>None</td>
  89. <td>Max number of recent pages to display.</td>
  90. </tr>
  91. <tr>
  92. <td><strong>saved_page_state_max</strong></td>
  93. <td>5</td>
  94. <td>None</td>
  95. <td>The maximum number of pages that page state will be saved before dumping the last one saved. This is used on the list pages in the admin to save sorting and filtering. Used to save on space needed for session.</td>
  96. </tr>
  97. <tr>
  98. <td><strong>fuel_cookie_path</strong></td>
  99. <td>/</td>
  100. <td>None</td>
  101. <td>Provide a cookie path... different from the CI config if you need it (default is same as CI config).</td>
  102. </tr>
  103. <tr>
  104. <td><strong>xtra_css</strong></td>
  105. <td>None</td>
  106. <td>None</td>
  107. <td>External css file for additional styles possibly needed for 3rd party integration and customizing.
  108. must exist in the assets/css file and not the fuel/assets/css folder.</td>
  109. </tr>
  110. <tr>
  111. <td><strong>keyboard_shortcuts</strong></td>
  112. <td>
  113. <pre>
  114. array(
  115. 'toggle_view' => 'Ctrl+Shift+m',
  116. 'save' => 'Ctrl+Shift+s',
  117. 'view' => 'Ctrl+Shift+p'
  118. );
  119. </pre>
  120. </td>
  121. <td>None</td>
  122. <td>Keyboard shortcuts for the FUEL admin.</td>
  123. </tr>
  124. <tr>
  125. <td><strong>dashboards</strong></td>
  126. <td>
  127. <pre>
  128. array('fuel', 'backup');
  129. </pre>
  130. </td>
  131. <td>None</td>
  132. <td>Dashboard modules to include on FUEL dashboard page.</td>
  133. </tr>
  134. <tr>
  135. <td><strong>dashboard_rss</strong></td>
  136. <td>http://www.thedaylightstudio.com/the-whiteboard/categories/fuel-cms/feed/rss</td>
  137. <td>None</td>
  138. <td>Dashboard rss feed to pull news FUEL news items.</td>
  139. </tr>
  140. <tr>
  141. <td colspan="4" class="hdr"><h4>Asset settings</h4></td>
  142. </tr>
  143. <tr>
  144. <td><strong>fuel_assets_path</strong></td>
  145. <td>fuel/modules/{module}/assets/</td>
  146. <td>None</td>
  147. <td>Paths specific to FUEL... relative to the WEB_ROOT.</td>
  148. </tr>
  149. <tr>
  150. <td><strong>assets_excluded_dirs</strong></td>
  151. <td>
  152. <pre>
  153. array('js', 'css', 'cache', 'swf', 'captchas')
  154. </pre>
  155. </td>
  156. <td>None</td>
  157. <td>Excludes certain folders from being viewed.</td>
  158. </tr>
  159. <tr>
  160. <td><strong>assets_allow_subfolder_creation</strong></td>
  161. <td>TRUE</td>
  162. <td>boolean TRUE/FALSE</td>
  163. <td>Allow subfolders to be created in the assets folder if they don't exist'.</td>
  164. </tr>
  165. <tr>
  166. <td><strong>editable_asset_filetypes</strong></td>
  167. <td>
  168. <pre>
  169. array(
  170. 'images' => 'jpg|jpeg|jpe|gif|png',
  171. 'pdf' => 'pdf',
  172. 'media' => 'jpg|jpeg|jpe|png|gif|mov|mp3|aiff'
  173. );
  174. </pre>
  175. </td>
  176. <td>None</td>
  177. <td>Specifies what filetype extensions can be included in the folders.</td>
  178. </tr>
  179. <tr>
  180. <td><strong>assets_upload_max_size</strong></td>
  181. <td>1000</td>
  182. <td>None</td>
  183. <td>Max upload files size for assets.</td>
  184. </tr>
  185. <tr>
  186. <td><strong>assets_upload_max_width</strong></td>
  187. <td>1024</td>
  188. <td>None</td>
  189. <td>Max width for asset images beign uploaded.</td>
  190. </tr>
  191. <tr>
  192. <td><strong>assets_upload_max_height</strong></td>
  193. <td>768</td>
  194. <td>None</td>
  195. <td>Max height for asset images beign uploaded.</td>
  196. </tr>
  197. <tr>
  198. <td><strong>fuel_javascript</strong></td>
  199. <td>
  200. <pre>
  201. array(
  202. 'jquery/plugins/date',
  203. 'jquery/plugins/jquery.datePicker',
  204. 'jquery/plugins/jquery.fillin',
  205. 'jquery/plugins/jquery.markitup.pack',
  206. 'jquery/plugins/jquery.markitup.set',
  207. 'jquery/plugins/jquery.easing',
  208. 'jquery/plugins/jquery.bgiframe',
  209. 'jquery/plugins/jquery.tooltip',
  210. 'jquery/plugins/jquery.scrollTo-min',
  211. 'jquery/plugins/jqModal',
  212. 'jquery/plugins/jquery.checksave',
  213. 'jquery/plugins/jquery.form',
  214. 'jquery/plugins/jquery.treeview.min',
  215. 'jquery/plugins/jquery.hotkeys',
  216. 'jquery/plugins/jquery.cookie',
  217. 'jquery/plugins/jquery.fillin',
  218. 'jquery/plugins/jquery.selso',
  219. 'jquery/plugins/jquery-ui-1.8.4.custom.min',
  220. 'jquery/plugins/jquery.disable.text.select.pack',
  221. 'jquery/plugins/jquery.supercomboselect',
  222. 'jquery/plugins/jquery.MultiFile.pack'
  223. );
  224. </pre>
  225. </td>
  226. <td>None</td>
  227. <td>Javascript files (mostly jquery plugins) to be included other then the controller js files.</td>
  228. </tr>
  229. <tr>
  230. <td><strong>fuel_css</strong></td>
  231. <td>None</td>
  232. <td>None</td>
  233. <td>CSS other then the fuel.css file which automatically gets loaded.</td>
  234. </tr>
  235. <tr>
  236. <td><strong>fuel_assets_output</strong></td>
  237. <td>None</td>
  238. <td>TRUE, FALSE, inline, gzip, whitespace, or combine</td>
  239. <td>Allow for asset optimization. Requires that all module folders have a writable assets/cache folder.</td>
  240. </tr>
  241. <tr>
  242. <td colspan="4" class="hdr"><h4>Security settings </h4></td>
  243. </tr>
  244. <tr>
  245. <td><strong>default_pwd</strong></td>
  246. <td>admin</td>
  247. <td>None</td>
  248. <td>Default password to alert against.</td>
  249. </tr>
  250. <tr>
  251. <td><strong>admin_enabled</strong></td>
  252. <td>FALSE</td>
  253. <td>boolean TRUE/FALSE</td>
  254. <td>Enable the FUEL admin or not?</td>
  255. </tr>
  256. <tr>
  257. <td><strong>num_logins_before_lock</strong></td>
  258. <td>3</td>
  259. <td>None</td>
  260. <td>The number of times someone can attempt to login before they are locked out for 1 minute.</td>
  261. </tr>
  262. <tr>
  263. <td><strong>seconds_to_unlock</strong></td>
  264. <td>60</td>
  265. <td>None</td>
  266. <td>The number of seconds to lock out a person upon reaching the max number failed login attempts.</td>
  267. </tr>
  268. <tr>
  269. <td><strong>dev_password</strong></td>
  270. <td>None</td>
  271. <td>None</td>
  272. <td>If you set a dev password, the site will require a password to view.</td>
  273. </tr>
  274. <tr>
  275. <td><strong>auto_search_views</strong></td>
  276. <td>FALSE</td>
  277. <td>boolean TRUE/FALSE</td>
  278. <td>If the URI is about/history and the about/history view does not exist but about does, it will render the about page.</td>
  279. </tr>
  280. <tr>
  281. <td><strong>module_sanitize_funcs</strong></td>
  282. <td>TRUE</td>
  283. <td>boolean TRUE/FALSE, string of "xss", "php", "template" OR "entities", OR array for multiple values of array('xss', 'php', 'template', 'entities')</td>
  284. <td>Functions that can be used for the sanitize_input value on a basic module. The key of the array is what should be used when configuring your module</td>
  285. </tr>
  286. <tr>
  287. <td colspan="4" class="hdr"><h4>Module Settings</h4></td>
  288. </tr>
  289. <tr>
  290. <td><strong>modules_allowed</strong></td>
  291. <td>
  292. <pre>
  293. array('blog', 'tools')
  294. </pre>
  295. </td>
  296. <td>None</td>
  297. <td>Specifies which modules are allowed to be used in the fuel admin.</td>
  298. </tr>
  299. <tr>
  300. <td><strong>nav</strong></td>
  301. <td>
  302. <pre>
  303. // Dashboard will always be there
  304. $config['nav']['site'] = array(
  305. 'dashboard' => lang('nav_dashboard'),
  306. 'pages' => lang('nav_pages'),
  307. 'blocks' => lang('nav_blocks'),
  308. 'navigation' => lang('nav_navigation'),
  309. 'assets' => lang('nav_assets'),
  310. 'sitevariables' => lang('nav_sitevariables')
  311. );
  312. // if set to auto, then it will automatically include all in MY_fuel_modules.php
  313. $config['nav']['shop'] = array();
  314. // blog placeholder if it exists
  315. $config['nav']['blog'] = array();
  316. // if set to auto, then it will automatically include all in MY_fuel_modules.php
  317. $config['nav']['modules'] = 'AUTO';
  318. // tools
  319. $config['nav']['tools'] = array();
  320. // manage
  321. $config['nav']['manage'] = array(
  322. 'users' => lang('nav_users'),
  323. 'permissions' => lang('nav_permissions'),
  324. 'manage/cache' => lang('nav_manage/cache'),
  325. 'manage/activity' => lang('nav_manage/activity')
  326. );
  327. </pre>
  328. </td>
  329. <td>None</td>
  330. <td>Left navigation menu. Sub key menu items include <dfn>site</dfn>, <dfn>shop</dfn>, <dfn>blog</dfn>, <dfn>modules</dfn>, <dfn>tools</dfn> and <dfn>manage</dfn></td>
  331. </tr>
  332. <tr>
  333. <td colspan="4" class="hdr"><h4>Fuel Router Settings</h4></td>
  334. </tr>
  335. <tr>
  336. <td><strong>default_home_view</strong></td>
  337. <td>home</td>
  338. <td>None</td>
  339. <td>The default view for home.</td>
  340. </tr>
  341. <tr>
  342. <td><strong>use_page_cache</strong></td>
  343. <td>'cms'</td>
  344. <td>TRUE, FALSE 'cms', 'views'</td>
  345. <td>Turns on cache.</td>
  346. </tr>
  347. <tr>
  348. <td><strong>page_cache_ttl</strong></td>
  349. <td>0</td>
  350. <td>None</td>
  351. <td>How long to cache the page. A value of 0 means forever until the page or other modules have been updated.</td>
  352. </tr>
  353. <tr>
  354. <td><strong>page_cache_group</strong></td>
  355. <td>pages</td>
  356. <td>None</td>
  357. <td>The name of the group the cache is associated with (so you can just remove the group).</td>
  358. </tr>
  359. <tr>
  360. <td><strong>max_page_params</strong></td>
  361. <td>0</td>
  362. <td>None</td>
  363. <td>Maximum number of parameters that can be passed to the page. Used to cut down on queries to the db.</td>
  364. </tr>
  365. <tr>
  366. <td colspan="4" class="hdr"><h4>DB Table Settings</h4></td>
  367. </tr>
  368. <tr>
  369. <td><strong>tables</strong></td>
  370. <td>
  371. <pre>
  372. array(
  373. 'archives' => 'fuel_archives',
  374. 'logs' => 'fuel_logs',
  375. 'navigation' => 'fuel_navigation',
  376. 'navigation_groups' => 'fuel_navigation_groups',
  377. 'pagevars' => 'fuel_page_variables',
  378. 'pages' => 'fuel_pages',
  379. 'blocks' => 'fuel_blocks',
  380. 'permissions' => 'fuel_permissions',
  381. 'user_to_permissions' => 'fuel_user_to_permissions',
  382. 'users' => 'fuel_users'
  383. );
  384. </pre>
  385. </td>
  386. <td>None</td>
  387. <td>The FUEL specific database tables.</td>
  388. </tr>
  389. <tr>
  390. <td colspan="4" class="hdr"><h4>Page Settings</h4></td>
  391. </tr>
  392. <tr>
  393. <td><strong>auto_page_navigation_group_id</strong></td>
  394. <td>1</td>
  395. <td>None</td>
  396. <td>The group to associate with the auto-created navigation item.</td>
  397. </tr>
  398. <tr>
  399. <td><strong>page_uri_prefix</strong></td>
  400. <td>None</td>
  401. <td>None</td>
  402. <td>Automatically removes the following path from the location.</td>
  403. </tr>
  404. </tbody>
  405. </table>