Created
January 31, 2012 12:24
-
-
Save robzor/1710263 to your computer and use it in GitHub Desktop.
Playa strangeness
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{exp:channel:entries channel="catentry" disable="member_data|pagination" url_title="{segment_3}"} | |
{if no_results}{redirect="404"}{/if} | |
<div id="detail_wrap" class="group"> | |
{if "{exp:playa:total_parents channel='sumpaper'}" > 0} | |
<div class="fbox fb_yellow lo_fi" id="view_summpaper_link"> | |
{exp:playa:parents limit="1" channel="sumpaper"}<a href="{site_url}summary-papers/{url_title}/">{/exp:playa:parents}View summary paper</a><span class="fb_more_info">This is a link to the summary paper</span> | |
</div> | |
{/if} | |
<h1>{title}</h1> | |
<div id="cat_detail_col1"> | |
<table cellpadding="0" cellspacing="0" class="cat_detail_table"> | |
<tbody> | |
<tr> | |
<th>Author</th> | |
<td>{cf_catentry_author}</td> | |
</tr> | |
<tr> | |
<th>Date</th> | |
<td>{cf_catentry_date}</td> | |
</tr> | |
<tr> | |
<th>Publishing details</th> | |
<td>{cf_catentry_pub_details}</td> | |
</tr> | |
{if "{cf_catentry_links:total_rows}" > 0} | |
<tr> | |
<th>Links</th> | |
<td> | |
<ul> | |
{cf_catentry_links} | |
<li><a href="{cf_catentry_links_url}{cf_catentry_links_file}" class="file-pdf">{cf_catentry_links}</a></li> | |
{/cf_catentry_links} | |
</ul> | |
</td> | |
</tr> | |
{/if} | |
<tr> | |
<th>Content type</th> | |
<td>{cf_catentry_content_type}</td> | |
</tr> | |
<tr> | |
<th>Abstract</th> | |
<td>{cf_catentry_abstract}</td> | |
</tr> | |
</tbody> | |
</table> | |
</div> | |
<div id="cat_detail_col2"> | |
<div class="fbox fb_blue" id="cat_detail_topics"> | |
<h3>Topics</h3> | |
<ul> | |
{exp:gwcode_categories entry_id="{entry_id}" style="linear"} | |
<li><a href="{site_url}browse/{cat_url_title}/">{cat_name}</a></li> | |
{/exp:gwcode_categories} | |
</ul> | |
</div> | |
{if "{exp:playa:total_children channel='catentry'}" > 0} | |
<div class="fbox fb_yellow" id="cat_detail_rels"> | |
<h3>Related entries</h3> | |
<ul> | |
{cf_catentry_rel_entries} | |
<li><a href="{site_url}browse/entry/{url_title}/">{title}</a></li> | |
{/cf_catentry_rel_entries} | |
</ul> | |
</div> | |
{/if} | |
</div> | |
</div> | |
{/exp:channel:entries} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment