Shared Resources for New PHP-Based Websites: Difference between revisions
Jump to navigation
Jump to search
(Created page with "==Setup== *Remote Desktop to server *IIS Manager > website > right click > Add Virtual Directory **Alias: Same name as shared resource directory **Physical Path: Location shar...") |
No edit summary |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
==Setup== | <p class="alert alert-warning">The information in this article is deprecated.</p> | ||
*Remote Desktop to server | |||
*IIS Manager > website > right click > Add Virtual Directory | == Setup == | ||
**Alias: Same name as shared resource directory | |||
**Physical Path: Location shared resource directory (<code>d:/inetpub/develop/littledamien/common_lib</code>) | * Remote Desktop to server | ||
**Connect As: Specific user > Windows account | * IIS Manager > website > right click > Add Virtual Directory | ||
==Resources== | ** Alias: Same name as shared resource directory | ||
** Physical Path: Location shared resource directory (<code>d:/inetpub/develop/littledamien/common_lib</code>) | |||
** Connect As: Specific user > Windows account | |||
== Resources == | |||
In order to be able to integrate these files using virtual directories on dev, it’s necessary that they reside in directories with unique names. | In order to be able to integrate these files using virtual directories on dev, it’s necessary that they reside in directories with unique names. | ||
| Line 20: | Line 25: | ||
*utilities | *utilities | ||
===JavaScript=== | === JavaScript === | ||
Located in <code>[COMMON_LIB]/scripts/</code> | Located in <code>[COMMON_LIB]/scripts/</code> | ||
*Littled libraries | * Littled libraries | ||
*JQuery form data plugin (handles binary data) | * JQuery form data plugin (handles binary data) | ||
*JQuery scrolling plugin | * JQuery scrolling plugin | ||
* | * Twitter Bootstrap tooltips (CDN):<br />`<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet">`<br />`<script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script>` | ||
* TinyMCE libraries | |||
*TinyMCE libraries | |||
===AJAX scripts=== | === AJAX scripts === | ||
Located in <code>[COMMON_LIB]/_ajax/</code> | Located in <code>[COMMON_LIB]/_ajax/</code> | ||
*Image and album utilities (edit, delete, upload, etc.) | * Image and album utilities (edit, delete, upload, etc.) | ||
*General utilities | * General utilities | ||
**Inline edits of names, dates, access, etc | ** [[JQuery_Initialization_on_Listings_Pages#Inline_edits|Inline edits of names, dates, access, etc]] | ||
**Resorting listings | ** Resorting listings | ||
**Editing keywords inline | ** Editing keywords inline | ||
**Update cache | ** Update cache | ||
===PHP template files=== | ===PHP template files=== | ||
| Line 88: | Line 92: | ||
==Uploading to Production== | ==Uploading to Production== | ||
For each of the [[Shared Resources for New PHP-Based Websites#resources|resources]] listed above, upload files from //littledamienii/develop/littledamien/common_lib, integrating them into the website directories of on the production server. | For each of the [[Shared Resources for New PHP-Based Websites#resources|resources]] listed above, upload files from <code>//littledamienii/develop/littledamien/common_lib</code>, integrating them into the website directories of on the production server. | ||
[[Category: | |||
[[Category: | [[Category:Project Documentation]] [[Category:CMS Documentation]] [[Category:Git]] [[Category:Web Development]] | ||
Latest revision as of 11:21, 4 May 2018
The information in this article is deprecated.
Setup[edit]
- Remote Desktop to server
- IIS Manager > website > right click > Add Virtual Directory
- Alias: Same name as shared resource directory
- Physical Path: Location shared resource directory (
d:/inetpub/develop/littledamien/common_lib) - Connect As: Specific user > Windows account
Resources[edit]
In order to be able to integrate these files using virtual directories on dev, it’s necessary that they reside in directories with unique names.
So PHP base classes for site content are in the shared directory [COMMON_LIB]/_classes/content/ and derived classes representing site content are placed in [APP_BASE_DIR]/_classes/site_content/.
PHP classes[edit]
Located in [COMMON_LIB]/_classes/
- content
- database
- filters
- images
- keywords
- login
- navigation menu (?)
- utilities
JavaScript[edit]
Located in [COMMON_LIB]/scripts/
- Littled libraries
- JQuery form data plugin (handles binary data)
- JQuery scrolling plugin
- Twitter Bootstrap tooltips (CDN):
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet"><script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script> - TinyMCE libraries
AJAX scripts[edit]
Located in [COMMON_LIB]/_ajax/
- Image and album utilities (edit, delete, upload, etc.)
- General utilities
- Inline edits of names, dates, access, etc
- Resorting listings
- Editing keywords inline
- Update cache
PHP template files[edit]
Located in [COMMON_LIB]/_templates/
- Album and gallery listings, details, and pagination
- Image popup
- Keywords cell content
- Form elements for inline edits of discrete information (names, access, dates, keywords, etc.)
- Progress wheel
- Form elements for editing and deleting albums, galleries, and images
- Navigation elements
- Gallery page links
- Generalized listings page links
- CMS navigation
- Neighboring record links
- Page buttons (
single_listings_page_link.php)
CMS pages[edit]
Located in [COMMON_LIB]/hostmgr/
- Site content properties CMS
- Requirements
site_sectionsandsection_operationstables- “CMS Content Sections” record in
site_contenttable with id 27.
image directories[edit]
- Image destination specified through content properties.
site_section.image_dir
- Size variation locations:
[IMAGE_ROOT_DIR]/med/[IMAGE_ROOT_DIR]/mini/
images[edit]
/images/process-wheel.png/images/buttons/edit-image.png/images/buttons/delete.png
PHP Config Settings[edit]
APP_COMMON_DIR– Base directory for shared resources
(This will be a different location on dev and production.)COMMON_CLASS_DIR– Location of shared PHP classes:APP_COMMON_DIR + "_classes/"COMMON_TEMPLATE_DIR– Location of shred PHP template files:APP_COMMON_DIR + "_templates"- JavaScript can be accessed through virtual directories as if shared resources existed within the local web directory.
Uploading to Production[edit]
For each of the resources listed above, upload files from //littledamienii/develop/littledamien/common_lib, integrating them into the website directories of on the production server.