Difference between revisions of "CcHost5Documentation/Content Manager"

From Creative Commons
Jump to: navigation, search
(Topic Format Commands)
Line 100: Line 100:
 
|-
 
|-
 
| <code><nowiki>[right][b]floated right markup, img tag works here too[/b][/right]Normal markup that wraps around the right text</nowiki></code>
 
| <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">floated right markup</b></div>Normal markup that wraps around the right text
+
| <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>
 
| <code><nowiki>[color=red]Red Text[/color]</nowiki></code><br /><small> (also blue or green)</small>
 
|<font color="#FF0000">Red Text</font>
 
|<font color="#FF0000">Red Text</font>
 
|}
 
|}

Revision as of 06:58, 29 July 2008

Howto: Content Manager

In ccHost 5 you can create pages in your system without any HTML/XML file editing whatsoever. Examples of pages created this way are the ccMixter home page and "As Seen on the Web"

The second example is mapped to a navigation tab. The creation of a page like this and mapping to a tab are explained here:

First create new content topics:

1. While logged in as admin account: Click on 'Global Settings' in the menu 2. Click on 'Manage Page Content' 3. Click on 'Create New Content' 4. At 'New Content Type' type in "my_page_content" (without the quotes) 5. Enter a title and topic contents 6. Click on 'Submit Content'

Repeat these steps for addition topics except replace step (4):

4. At 'Content Type' select 'my_page_content' from the drop down,

  leave 'New Content Type' blank

Images are uploaded to cchost_files/images (replace cchost_files with the name of the files directory you supplied during install). To refer to those images use the new 'img' block in your topics. Example:

[img=/cchost_files/images/my_image.gif][/img]

You can also use the new 'left' or 'right' blocks to float images or blocks of text:

[left][img=/cchost_files/images/my_image.gif][/img][/left]

Next create a new content page:

  1. While logged in as admin account: Click on 'Global Settings' in the menu
  2. Click on 'Manage Page Content'
  3. Click on 'Create a New Page'
  4. At 'Content Type' select "my_page_content"
  5. Enter a page title like "My Page" (without the quotes)
  6. Click on 'Submit' - this should take you back to the 'Manage Page Content' screen
  7. Click on 'view' next to your new page to preview the page (Note the URL in your browser)

To map your new page to a tab:

  1. While logged in as admin account: Click on 'Manage Site' in the menu
  2. Click on 'Navigator Tab Sets'
  3. Click on '[edit tabs]'
  4. Click on 'Add tab'
  5. Under 'Function' select 'Execute URL'
  6. Under 'Data' enter the URL from Step (7) in the section above
  7. Click on 'Submit'

HINT: entering a full URL in a tab causes a re-direct (extra round trip to your server). To prevent this in Step (6) enter "/viewfile/my-page" without the quotes and substituting my-page with the name of your page.

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]

quoted text

[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