Would it be possible to include a better link to archives in the next update than this icon:
Archives.png 6.24KB
0 downloads
Posted 16 June 2012 - 09:20 PM
Archives.png 6.24KB
0 downloads
Posted 18 June 2012 - 10:05 AM

Posted 19 June 2012 - 10:53 AM
Of course we could change it, but note that the templates in the ACP are fully editable as it is - you can go in and change it to text, or move the link, or use a different icon, just by editing the article templates in IP.Content.
Posted 19 June 2012 - 06:28 PM
<php>
// Modify the array so that categories are hierarchical
$this->_categories = array();
foreach( $records as $r ){
$this->_categories[ $r['category']['category_parent_id'] ][ $r['category']['category_id'] ] = $r['category'];
}
$this->_database_url = ( $records[0] ) ? $this->registry->ccsFunctions->returnDatabaseUrl( $records[0]['category']['category_database_id'] ) : false;
//print_r( $this->_database_url );
</php>
<div id='category_list' class='general_box clearfix'>
<h3>{$this->lang->words['ab__categories']} <a href='{$this->_database_url}?view=categories'>{$this->lang->words['ab__seealllink']}</a></h3>
<ul>
<if test="is_array( $this->_categories ) && count( $this->_categories )">
<foreach loop="$this->_categories[0] as $r">
<li>
<a href='{$this->registry->ccsFunctions->returnDatabaseUrl( $r['category_database_id'], $r['category_id'] )}'>{$r['category_name']} (<b>{$r['category_records']}</b>)</a>
<if test="count( $this->_categories[ $r['category_id'] ] )">
<ul>
<foreach loop="$this->_categories[ $r['category_id'] ] as $sub">
<li>
<a href='{$this->registry->ccsFunctions->returnDatabaseUrl( $sub['category_database_id'], $sub['category_id'] )}'>{$sub['category_name']} (<b>{$sub['category_records']}</b>)</a>
</li>
</foreach>
</ul>
</if>
</li>
</foreach>
</if>
</ul>
</div>
<br />
<if test="$this->_database_url">
<div class='general_box clearfix' id='article_search'>
<h3>{$this->lang->words['ab__searcharticles']}</h3>
<form method='post' action='{$this->_database_url}' class='ipsPad'>
<input type='hidden' name='do' value='search' />
<input type='text' name='search_value' class='input_text' />
<input type='submit' value='{$this->lang->words['ab__searchbutton']}' class='input_submit' />
</form>
</div>
<br />
</if>
Posted 19 June 2012 - 06:54 PM
<php>
// Modify the array so that categories are hierarchical
$this->_categories = array();
foreach( $records as $r ){
$this->_categories[ $r['category']['category_parent_id'] ][ $r['category']['category_id'] ] = $r['category'];
}
$this->_database_url = ( $records[0] ) ? $this->registry->ccsFunctions->returnDatabaseUrl( $records[0]['category']['category_database_id'] ) : false;
//print_r( $this->_database_url );
</php>
<div id='category_list' class='general_box clearfix'>
<h3>{$this->lang->words['ab__categories']} <a href='{$this->_database_url}?view=categories'>{$this->lang->words['ab__seealllink']}</a></h3>
<ul>
<if test="is_array( $this->_categories ) && count( $this->_categories )">
<foreach loop="$this->_categories[0] as $r">
<li>
<a href='{$this->registry->ccsFunctions->returnDatabaseUrl( $r['category_database_id'], $r['category_id'] )}?view=archive'>{$r['category_name']} (<b>{$r['category_records']}</b>)</a>
<if test="count( $this->_categories[ $r['category_id'] ] )">
<ul>
<foreach loop="$this->_categories[ $r['category_id'] ] as $sub">
<li>
<a href='{$this->registry->ccsFunctions->returnDatabaseUrl( $sub['category_database_id'], $sub['category_id'] )}?view=archive'>{$sub['category_name']} (<b>{$sub['category_records']}</b>)</a>
</li>
</foreach>
</ul>
</if>
</li>
</foreach>
</if>
</ul>
</div>
<br />
<if test="$this->_database_url">
<div class='general_box clearfix' id='article_search'>
<h3>{$this->lang->words['ab__searcharticles']}</h3>
<form method='post' action='{$this->_database_url}' class='ipsPad'>
<input type='hidden' name='do' value='search' />
<input type='text' name='search_value' class='input_text' />
<input type='submit' value='{$this->lang->words['ab__searchbutton']}' class='input_submit' />
</form>
</div>
<br />
</if>
0 members, 0 guests, 0 anonymous users