Difference between revisions of "Cchost/concepts/Content"
Fourstones (talk | contribs) (New page: Category:ccHost Category:ccMixter Category:Developer Category:Software Category:Technology {{cchost_head}} {{lowercase}} The term ''content'' can refer to several area...) |
Fourstones (talk | contribs) (→User generated topics) |
||
Line 28: | Line 28: | ||
All topic content in the system is displayed using the Query API. Admins and developers can extend the system using the query and template system as explained in [[Cchost/Custom_Query_Templates|Custom Query Templates]]. | All topic content in the system is displayed using the Query API. Admins and developers can extend the system using the query and template system as explained in [[Cchost/Custom_Query_Templates|Custom Query Templates]]. | ||
+ | |||
+ | ==Topic Format Commands== | ||
+ | When entering a topic you have the option to use ccHost formatting short cuts based on a variation of [http://en.wikipedia.org/wiki/Bbcode BBCode] tags. | ||
+ | |||
+ | {| class="wikitable" | ||
+ | | style="text-align: center" | '''Code''' | ||
+ | | style="text-align: center" | '''Effect''' | ||
+ | |- | ||
+ | | <code><nowiki>[b]bolded text[/b]</nowiki></code> | ||
+ | | '''bolded text''' | ||
+ | |- | ||
+ | | <code><nowiki>[i]italicized text[/i]</nowiki></code> | ||
+ | | ''italicized text'' | ||
+ | |- | ||
+ | | <code><nowiki>[u]underlined text[/u]</nowiki></code> | ||
+ | | <span style="text-decoration:underline;">underlined text</span> | ||
+ | |- | ||
+ | | <code><nowiki>[url]http://example.org[/url]</nowiki></code> | ||
+ | | <span class="plainlinks">[http://example.org http://example.org]</span> | ||
+ | |- | ||
+ | | <code><nowiki>[url=http://example.com]Example[/url]</nowiki></code> | ||
+ | | <span class="plainlinks">[http://example.com Example]</span> | ||
+ | |- | ||
+ | | <code><nowiki>[img=http://mirrors.creativecommons.org/presskit/icons/nc-jp.png][/img]</nowiki></code> | ||
+ | | http://mirrors.creativecommons.org/presskit/icons/nc-jp.png | ||
+ | |- | ||
+ | | <code><nowiki>[quote]quoted text[/quote]</nowiki></code> | ||
+ | | <blockquote><p>quoted text</p></blockquote> | ||
+ | |- | ||
+ | | <code><nowiki>[quote=fourstones]attributed quoted text[/quote]</nowiki></code> | ||
+ | | <i><p><b>fourstones says:</b></p><p>attributed quoted text</p></i> | ||
+ | |- | ||
+ | | <code><nowiki>[big]Large Text[/big]</nowiki></code> | ||
+ | | <font size="6">Large Text</font> | ||
+ | |- | ||
+ | | <code><nowiki>[small]Small Text[/small]</nowiki></code> | ||
+ | | <font size="-2">Small Text</font> | ||
+ | |- | ||
+ | | <code><nowiki>[up][/up]</nowiki></code> | ||
+ | | http://ccmixter.org/ccskins/shared/images/thumbs_up_tiny.gif | ||
+ | |- | ||
+ | | <code><nowiki>[right][b]floated right markup, img tag works here too[/b][/right]Normal markup that wraps around the right text</nowiki></code> | ||
+ | | <div style="float:right"><b>floated right markup, img tag works here too</b></div>Normal markup that wraps around the right text | ||
+ | |- | ||
+ | | <code><nowiki>[query=t=links&tags=hip_hop][/query]</nowiki></code> | ||
+ | | <i>(produces query results)</i> | ||
+ | |- | ||
+ | | <code><nowiki>[color=red]Red Text[/color]</nowiki></code><br /><small> (also blue or green)</small> | ||
+ | |<font color="#FF0000">Red Text</font> | ||
+ | |} | ||
=Admin Generated Content= | =Admin Generated Content= |
Latest revision as of 22:18, 13 November 2008
Docs Home | Install | Upgrade | Troubleshoot | Customize | Admins | Devs | Content | Query | Templates | Commands | Skins |
The term content can refer to several areas of ccHost. The graphic below shows a high level overview of the some of the inputs, processes and methods of rendering.
Contents
User Uploaded Content
User uploaded content refers to the content that your users upload to ccHost. This might be music files, images, font, lesson plans, whatever the administrator has chosen as valid system input.
User content is placed under the <content_directory>/<user_name> directory, where <content_directory> is administered at admin/paths and <user_name> is the log in name of user associated with the content.
Upload vs. File
Upload records represent one or more physical files. There is meta data for the overall upload record and also for each individual file that upload record represents.
In ccHost, users 'Submit an upload' which takes an initial file. That creates an upload record with a single physical file record. User's have the option to 'add', 'replace' or 'delete' physical files in that upload record, or delete the entire upload record which deletes all the physical files and their meta-data records.
All uploaded user content in the system is displayed using the Query API. This is explained in detail in How User Content is Displayed. Admins and developers can extend the system using the query and template system as explained in Custom Query Templates.
User generated topics
User generated reviews and forum posts are stored in the topics database.
All topic content in the system is displayed using the Query API. Admins and developers can extend the system using the query and template system as explained in Custom Query Templates.
Topic Format Commands
When entering a topic you have the option to use ccHost formatting short cuts based on a variation of BBCode tags.
Code | Effect |
[b]bolded text[/b] |
bolded text |
[i]italicized text[/i] |
italicized text |
[u]underlined text[/u] |
underlined text |
[url]http://example.org[/url] |
http://example.org |
[url=http://example.com]Example[/url] |
Example |
[img=http://mirrors.creativecommons.org/presskit/icons/nc-jp.png][/img] |
http://mirrors.creativecommons.org/presskit/icons/nc-jp.png |
[quote]quoted text[/quote] |
|
[quote=fourstones]attributed quoted text[/quote] |
fourstones says: attributed quoted text |
[big]Large Text[/big] |
Large Text |
[small]Small Text[/small] |
Small Text |
[up][/up] |
http://ccmixter.org/ccskins/shared/images/thumbs_up_tiny.gif |
[right][b]floated right markup, img tag works here too[/b][/right]Normal markup that wraps around the right text |
floated right markup, img tag works here too
Normal markup that wraps around the right text |
[query=t=links&tags=hip_hop][/query] |
(produces query results) |
[color=red]Red Text[/color] (also blue or green) |
Red Text |
Admin Generated Content
Admin generated content refers to pages authored for the site, generally text and images. Examples might be a credits page, terms of use, the home page, etc.
Pages Authored with Content Manager
As of ccHost 5 admins can use the Content Manager to create pages without having to worry about HTML markup or page file management. Read more about the Content Manager.
Pages Authored Outside ccHost
Administrators can put HTML (PHP) files that they edit outside of ccHost and directly into the system. Read more about pages authored outside of ccHost.