Difference between revisions of "Cchost/admin/Content Manager"

From Creative Commons
Jump to: navigation, search
m (Step 2. Create the page)
 
(3 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
[[Category:Software]]
 
[[Category:Software]]
 
[[Category:Technology]]
 
[[Category:Technology]]
{{draft}}
+
{{cchost_head}}
 
{{lowercase}}
 
{{lowercase}}
  
Go back to [[cchost/admin|ccHost Administrators' Documentation]]
+
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 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]"
+
=Step 1. 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:
  
# While logged in as admin account: Click on 'Global Settings' in the menu
+
#Log in as an admin (if not already)
# Click on 'Manage Page Content'
+
#Click on ''Global Settings'' then ''Manage Page Content'' (or browse to '''admin/content''')
# Click on 'Create New Content'
+
#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 (you can use the [[Cchost/concepts/Content#Topic_Format_Commands|topic formatting commands]])
# Click on 'Submit Content'
+
#Click on the ''Submit Content'' button.
  
Repeat these steps for addition topics except replace step (4):
+
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.
  
4. At 'Content Type' select 'my_page_content' from the drop down, leave 'New Content Type' blank
+
==Optionally add images==
 +
You can optionally add images when submitting content.
  
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:
+
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]
+
  [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:
+
You can also use the '''[left]''' or '''[right]''' blocks to float images:
  
   [left][img=/local_files/images/my_image.gif][/img][/left]
+
   [left][img=<local_files>images/my_image.gif][/img][/left]
  
 
Next create a new content page:
 
Next create a new content page:
  
# While logged in as admin account: Click on 'Global Settings' in the menu
+
==Optionally perform queries==
# Click on 'Manage Page Content'
+
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:
# 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:
+
  <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>
  
# While logged in as admin account: Click on 'Manage Site' in the menu
+
=Step 2. Create the page=
# Click on 'Navigator Tab Sets'
+
Your topic type is now ready to be merged with a page. Here is how you set up that page:
# 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
+
#Log in as an admin (if not already)  
prevent this in Step (6) enter "/viewfile/my-page" without the quotes and
+
#Click on ''Global Settings'' then ''Manage Page Content'' (or browse to '''admin/content''')
substituting my-page with the name of your page.
+
#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)
  
=Adding Static Content Pages=
+
=Step 3. Optionally Map a Page to a Navigation Tab=
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
+
To map your new page to a tab:
  |
 
  --- 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.
+
#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
  
  http://ccmixter.org/credits
+
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.

Latest revision as of 16:53, 8 May 2009


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.


Step 1. 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:

  1. Log in as an admin (if not already)
  2. Click on Global Settings then Manage Page Content (or browse to admin/content)
  3. Click on the Create new content link
  4. At New Content Type type in "my_page_content" (without the quotes)
  5. Enter a title and topic contents (you can use the topic formatting commands)
  6. 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]

Step 2. Create the page

Your topic type is now ready to be merged with a page. Here is how you set up that page:

  1. Log in as an admin (if not already)
  2. Click on Global Settings then Manage Page Content (or browse to admin/content)
  3. Click on the Create new page link
  4. At Content Type select "my_page_content"
  5. Enter a page title like "My Page" (without the quotes)
  6. Click on the Submit button - this should take you back to the 'Manage Page Content' screen
  7. Click on the view next to your new page to preview the page (Note the URL in your browser)

Step 3. Optionally Map a Page to a Navigation Tab

To map your new page to a tab:

  1. Log in as an admin (if not already)
  2. Click on Manage Site then Navigator Tab Sets (or browse to admin/tabs)
  3. Click on the edit tabs links
  4. Click on the Add tab button
  5. Under Function select 'Execute URL'
  6. Under Data enter the URL from the last step in the section above
  7. 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.