<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.creativecommons.org/index.php?action=history&amp;feed=atom&amp;title=Cchost%2Fdeveloper%2FCustom_Listings</id>
		<title>Cchost/developer/Custom Listings - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.creativecommons.org/index.php?action=history&amp;feed=atom&amp;title=Cchost%2Fdeveloper%2FCustom_Listings"/>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=Cchost/developer/Custom_Listings&amp;action=history"/>
		<updated>2026-06-01T00:44:50Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=Cchost/developer/Custom_Listings&amp;diff=19589&amp;oldid=prev</id>
		<title>Fourstones: New page: Category:ccHost Category:ccMixter Category:Developer Category:Software Category:Technology {{draft}} {{lowercase}} One of the first things that many sites want to custo...</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=Cchost/developer/Custom_Listings&amp;diff=19589&amp;oldid=prev"/>
				<updated>2008-11-04T12:29:07Z</updated>
		
		<summary type="html">&lt;p&gt;New page: &lt;a href=&quot;/wiki/Category:CcHost&quot; title=&quot;Category:CcHost&quot;&gt;Category:ccHost&lt;/a&gt; &lt;a href=&quot;/wiki/Category:CcMixter&quot; title=&quot;Category:CcMixter&quot;&gt;Category:ccMixter&lt;/a&gt; &lt;a href=&quot;/wiki/Category:Developer&quot; title=&quot;Category:Developer&quot;&gt;Category:Developer&lt;/a&gt; &lt;a href=&quot;/wiki/Category:Software&quot; title=&quot;Category:Software&quot;&gt;Category:Software&lt;/a&gt; &lt;a href=&quot;/wiki/Category:Technology&quot; title=&quot;Category:Technology&quot;&gt;Category:Technology&lt;/a&gt; {{draft}} {{lowercase}} One of the first things that many sites want to custo...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:ccHost]]&lt;br /&gt;
[[Category:ccMixter]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
{{draft}}&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
One of the first things that many sites want to customize is way that uploads listings and upload pages appear on the site. The typical scenario for the first 4 versions of ccHost goes something like this:&lt;br /&gt;
&lt;br /&gt;
*A developer does some gifted reverse engineering and finds the ccHost default listing page and hacks away directly at that template.&lt;br /&gt;
*A short time later that same developer is filled with regret.&lt;br /&gt;
&lt;br /&gt;
In ccHost 5 we tried to make it a less frustrating task with better results. The upload pages and upload listings are actually just query API templates. Therefore, before you get any further, we ''strongly'' recommend that do the [[Cchost/Custom_Query_Templates|query template walk through]]. This should take you about 20 minutes, but it will be well worth it and make the job of making your custom listings go much smoother.&lt;br /&gt;
=Upload Page=&lt;br /&gt;
The 'upload page' is the template that ccHost will use when someone has requested to see the details of upload using the '''files''' command. For example: &amp;lt;nowiki&amp;gt;http://ccmixter.org/&amp;lt;/nowiki&amp;gt;'''files'''&amp;lt;nowiki&amp;gt;/victor/1134&amp;lt;/nowiki&amp;gt;. This section explains how to create your own version of that and hook it up into the system.&lt;br /&gt;
==Step 1. Create a Template==&lt;br /&gt;
===Creating from scratch ===&lt;br /&gt;
Starting you own version from scratch may be more work up front, but you will have a lot more control over the output of your own site this way. If you are familiar with HTML/CSS it will be much better and easier than you may think. Just sayin.&lt;br /&gt;
&lt;br /&gt;
To start your own customized Upload Page, follow the instructions in the [[Cchost/Custom_Query_Templates|custom query template walk through]] to create a new template based on the 'details' template in the Hello World example.&lt;br /&gt;
&lt;br /&gt;
=== OR Hack the system Upload Page===&lt;br /&gt;
Even if you plan on hacking through this, we ''still'' highly recommend spending 20 minutes with the [[Cchost/Custom_Query_Templates|custom query template walk through]] to understand the architecture of how ccHost is displaying records.&lt;br /&gt;
&lt;br /&gt;
The absolute worst thing you can do is hack directly on one of the files under '''ccskins'''. That will never pay off. You have been warned.&lt;br /&gt;
&lt;br /&gt;
*Copy '''ccskins/shared/formats/upload_page_shared.tpl''' to '''&amp;lt;local_files&amp;gt;/skins/custom_upload_page.tpl'''&lt;br /&gt;
*Optionally copy the &amp;lt;'''style'''&amp;gt; block from '''ccskins/shared/formats/upload_page_wide.php''' (or the ''narrow'' version if that's what you prefer) and put that near the top of the file.&lt;br /&gt;
&lt;br /&gt;
==Step 2. Edit the meta header==&lt;br /&gt;
Make sure you have the following to the top of the page:&lt;br /&gt;
&lt;br /&gt;
    %%&lt;br /&gt;
     [meta]&lt;br /&gt;
        type = page&lt;br /&gt;
        desc = _('My custom upload page')&lt;br /&gt;
        dataview = upload_page&lt;br /&gt;
     [/meta]&lt;br /&gt;
    %%&lt;br /&gt;
&lt;br /&gt;
*'''type = page''' tells ccHost this template is available for use as the Upload Page (but doesn't select it, you'll do that later)&lt;br /&gt;
*The '''desc''' is strictly for your and the site admins' benefit so you can recognize this template.&lt;br /&gt;
*We select '''dataview = upload_page''' because there are many fields not in the '''default''' dataview that will be helpful when displaying all the details of the record&lt;br /&gt;
&lt;br /&gt;
==Step 3. Select your Upload Page template into the system==&lt;br /&gt;
You need to inform the ccHost configuration that you intend to use this page as the template when a user browses to a upload using the '''files''' command.&lt;br /&gt;
&lt;br /&gt;
*Browse to '''&amp;lt;your_installation_root&amp;gt;/admin/skins/settings''' &lt;br /&gt;
*At '''Upload Page Format''' select ''My custom upload page''&lt;br /&gt;
*Click on the '''Submit Basic Skin Settings''' button.&lt;br /&gt;
&lt;br /&gt;
==Step 4. Confirm your template is setup properly==&lt;br /&gt;
Browse to '''&amp;lt;your_installation_root&amp;gt;/files/&amp;lt;user_name&amp;gt;/&amp;lt;file_id&amp;gt;''' to make sure it's your template that is set to that command.&lt;br /&gt;
&lt;br /&gt;
HINT: Any files link will do, like in the Sidebar Extra 'Latest Uploads'.&lt;br /&gt;
&lt;br /&gt;
==Step 5. Fill out your template==&lt;br /&gt;
Using the '''%inspect(#R)%''' macro syntax you can see what variables are available for display&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	</feed>