Difference between revisions of "Cchost/admin/Content Manager"
Fourstones (talk | contribs) |
Fourstones (talk | contribs) |
||
Line 4: | Line 4: | ||
[[Category:Software]] | [[Category:Software]] | ||
[[Category:Technology]] | [[Category:Technology]] | ||
− | {{ | + | {{cchost_head}} |
{{lowercase}} | {{lowercase}} | ||
− | + | 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]. Learn more about [[cchost/concepts/Content|how ccHost manages content]]. | |
− | =Creating | + | |
− | + | =Creating content for the pages= | |
+ | The actual content for the pages will entered as 'topics' (similar to reviews and forum posts). | ||
First create new content topics: | First create new content topics: | ||
− | # | + | #Log in as an admin (if not already) |
− | + | #Click on ''Global Settings'' then ''Manage Page Content'' (or browse to '''admin/content''') | |
− | # Click on 'Create | + | #Click on the ''Create new content'' link |
− | # At 'New Content Type' type in "my_page_content" (without the quotes) | + | #At ''New Content Type'' type in "my_page_content" (without the quotes) |
− | # Enter a title and topic contents | + | #Enter a title and topic contents |
− | # Click on 'Submit Content' | + | #Click on the ''Submit Content'' button. |
− | + | When you want to add more topics repeat the steps above but select "my_page_content" from the ''Content type'' drop down instead of entering it manually. | |
− | + | ==Optionally add images== | |
+ | You can optionally add images when submitting content. | ||
− | Images are uploaded to '''local_files/images''' | + | Images are uploaded to '''<local_files>/images''' To refer to those images use the '''[img]''' block in your topics. Example: |
− | [img= | + | [img=<local_files>/images/my_image.gif][/img] |
− | You can also use the | + | You can also use the '''[left]''' or '''[right]''' blocks to float images: |
− | [left][img= | + | [left][img=<local_files>images/my_image.gif][/img][/left] |
Next create a new content page: | Next create a new content page: | ||
− | + | ==Optionally perform queries== | |
− | + | One powerful feature of adding content this way is the ability to easily embed queries into your content topics. This is how the [http://ccmixter.org/featured-playlists Featured Playlists] feature at ccMixter is implemented: | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | <nowiki>[left][query=t=avatar&u=mcjackinthebox][/query][/left]</nowiki> | |
+ | <nowiki>[query=t=playlist_2_info&ids=2747][/query]</nowiki> | ||
+ | <nowiki>[query=t=yahoo_black&playlist=2747][/query]</nowiki> | ||
− | + | =Create the page= | |
− | + | Your topic type is now ready to be merged with a page. Here is how you set up that page: | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | #Log in as an admin (if not already) | |
− | + | #Click on ''Global Settings'' then ''Manage Page Content'' (or browse to '''admin/content''' | |
− | + | #Click on the ''Create new page''' link | |
+ | #At ''Content Type'' select "my_page_content" | ||
+ | #Enter a page title like "My Page" (without the quotes) | ||
+ | #Click on the ''Submit'' button - this should take you back to the 'Manage Page Content' screen | ||
+ | #Click on the ''view'' next to your new page to preview the page (Note the URL in your browser) | ||
− | = | + | =Optionally Map a Page to a Navigation Tab= |
− | |||
− | |||
− | |||
− | + | To map your new page to a tab: | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | #Log in as an admin (if not already) | |
+ | #Click on ''Manage Site'' then ''Navigator Tab Sets'' (or browse to '''admin/tabs''') | ||
+ | #Click on the ''edit tabs'' links | ||
+ | #Click on the ''Add tab'' button | ||
+ | #Under ''Function'' select 'Execute URL' | ||
+ | #Under ''Data'' enter the URL from the last step in the section above | ||
+ | #Click on the ''Submit'' button | ||
− | + | HINT: entering a full URL in a tab causes a re-direct (extra round trip to your server). To prevent this, enter '''/docs/<page_name>''' instead. |
Revision as of 22:15, 13 November 2008
Docs Home | Install | Upgrade | Troubleshoot | Customize | Admins | Devs | Content | Query | Templates | Commands | Skins |
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. Learn more about how ccHost manages content.
Contents
Creating content for the pages
The actual content for the pages will entered as 'topics' (similar to reviews and forum posts).
First create new content topics:
- Log in as an admin (if not already)
- Click on Global Settings then Manage Page Content (or browse to admin/content)
- Click on the Create new content link
- At New Content Type type in "my_page_content" (without the quotes)
- Enter a title and topic contents
- Click on the Submit Content button.
When you want to add more topics repeat the steps above but select "my_page_content" from the Content type drop down instead of entering it manually.
Optionally add images
You can optionally add images when submitting content.
Images are uploaded to <local_files>/images To refer to those images use the [img] block in your topics. Example:
[img=<local_files>/images/my_image.gif][/img]
You can also use the [left] or [right] blocks to float images:
[left][img=<local_files>images/my_image.gif][/img][/left]
Next create a new content page:
Optionally perform queries
One powerful feature of adding content this way is the ability to easily embed queries into your content topics. This is how the Featured Playlists feature at ccMixter is implemented:
[left][query=t=avatar&u=mcjackinthebox][/query][/left] [query=t=playlist_2_info&ids=2747][/query] [query=t=yahoo_black&playlist=2747][/query]
Create the page
Your topic type is now ready to be merged with a page. Here is how you set up that page:
- Log in as an admin (if not already)
- Click on Global Settings then Manage Page Content (or browse to admin/content
- Click on the Create new page' link
- At Content Type select "my_page_content"
- Enter a page title like "My Page" (without the quotes)
- Click on the Submit button - this should take you back to the 'Manage Page Content' screen
- Click on the view next to your new page to preview the page (Note the URL in your browser)
To map your new page to a tab:
- Log in as an admin (if not already)
- Click on Manage Site then Navigator Tab Sets (or browse to admin/tabs)
- Click on the edit tabs links
- Click on the Add tab button
- Under Function select 'Execute URL'
- Under Data enter the URL from the last step in the section above
- Click on the Submit button
HINT: entering a full URL in a tab causes a re-direct (extra round trip to your server). To prevent this, enter /docs/<page_name> instead.