Difference between revisions of "Cchost/admin/Content Manager"
Fourstones (talk | contribs) (Content Manager) |
Fourstones (talk | contribs) |
||
Line 1: | Line 1: | ||
{{draft}} | {{draft}} | ||
Go back to [[cchost/admin|ccHost Administrators' Documentation]] | Go back to [[cchost/admin|ccHost Administrators' Documentation]] | ||
+ | |||
+ | =Creating New Content Pages= | ||
+ | You can create pages in your system without any HTML/XML file editing whatsoever. Examples of pages created this way are the [http://ccmixter.org/ ccMixter home page] and "[http://ccmixter.org/view/media/remix/trackback As Seen on the Web]" | ||
+ | |||
+ | First create new content topics: | ||
+ | |||
+ | # While logged in as admin account: Click on 'Global Settings' in the menu | ||
+ | # Click on 'Manage Page Content' | ||
+ | # Click on 'Create New Content' | ||
+ | # At 'New Content Type' type in "my_page_content" (without the quotes) | ||
+ | # Enter a title and topic contents | ||
+ | # 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 '''local_files/images''' (replace local_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=/local_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=/local_files/images/my_image.gif][/img][/left] | ||
+ | |||
+ | Next create a new content page: | ||
+ | |||
+ | # While logged in as admin account: Click on 'Global Settings' in the menu | ||
+ | # Click on 'Manage Page Content' | ||
+ | # Click on 'Create a New Page' | ||
+ | # At 'Content Type' select "my_page_content" | ||
+ | # Enter a page title like "My Page" (without the quotes) | ||
+ | # Click on 'Submit' - this should take you back to the 'Manage Page Content' screen | ||
+ | # Click on 'view' next to your new page to preview the page (Note the URL in your browser) | ||
+ | |||
+ | ===Mapping a Page to a Navigation Tab=== | ||
+ | |||
+ | To map your new page to a tab: | ||
+ | |||
+ | # While logged in as admin account: Click on 'Manage Site' in the menu | ||
+ | # Click on 'Navigator Tab Sets' | ||
+ | # Click on '[edit tabs]' | ||
+ | # Click on 'Add tab' | ||
+ | # Under 'Function' select 'Execute URL' | ||
+ | # Under 'Data' enter the URL from Step (7) in the section above | ||
+ | # 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. | ||
+ | |||
+ | =Adding Static Content Pages= | ||
+ | The command for viewing documents is 'viewfile' (or alias 'docs'). The | ||
+ | parameter is the name of a PHP file in the 'docs Path' found in Global | ||
+ | Settings->Paths. So if you have directory structure like: | ||
+ | |||
+ | www-root | ||
+ | | | ||
+ | --- local_files | ||
+ | | | ||
+ | ---- pages | ||
+ | |||
+ | * Create a file '''local_files/pages/credits.php''' | ||
+ | * Make sure '''local_files/pages''' directory is in your 'docs Path' settings | ||
+ | * You can display that file via: | ||
+ | |||
+ | http://ccmixter.org/viewfile/credits OR | ||
+ | http://ccmixter.org/docs/credits | ||
+ | |||
+ | (Leave off the PHP from the URL command) | ||
+ | |||
+ | Since the viewfile (aka docs) command is the default command you don't even have to specify the command in the browser. | ||
+ | |||
+ | http://ccmixter.org/credits |
Revision as of 15:52, 9 October 2008
Go back to ccHost Administrators' Documentation
Creating New Content Pages
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"
First create new content topics:
- While logged in as admin account: Click on 'Global Settings' in the menu
- Click on 'Manage Page Content'
- Click on 'Create New Content'
- At 'New Content Type' type in "my_page_content" (without the quotes)
- Enter a title and topic contents
- 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 local_files/images (replace local_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=/local_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=/local_files/images/my_image.gif][/img][/left]
Next create a new content page:
- While logged in as admin account: Click on 'Global Settings' in the menu
- Click on 'Manage Page Content'
- Click on 'Create a New Page'
- At 'Content Type' select "my_page_content"
- Enter a page title like "My Page" (without the quotes)
- Click on 'Submit' - this should take you back to the 'Manage Page Content' screen
- 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:
- While logged in as admin account: Click on 'Manage Site' in the menu
- Click on 'Navigator Tab Sets'
- Click on '[edit tabs]'
- Click on 'Add tab'
- Under 'Function' select 'Execute URL'
- Under 'Data' enter the URL from Step (7) in the section above
- 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.
Adding Static Content Pages
The command for viewing documents is 'viewfile' (or alias 'docs'). The parameter is the name of a PHP file in the 'docs Path' found in Global Settings->Paths. So if you have directory structure like:
www-root | --- local_files | ---- pages
- Create a file local_files/pages/credits.php
- Make sure local_files/pages directory is in your 'docs Path' settings
- You can display that file via:
http://ccmixter.org/viewfile/credits OR http://ccmixter.org/docs/credits
(Leave off the PHP from the URL command)
Since the viewfile (aka docs) command is the default command you don't even have to specify the command in the browser.
http://ccmixter.org/credits