Changing Homepage Categories
Thu, 2007-06-14 23:02 — jony
Below is the html & css code to change the Categories. $category = amCategory::getById(39);
$file_row = array(
'files' => amFile::search(array('order' => FILES_ORDER_VIEWS, 'limit' => 5,
'types' => array($type), 'category' => $category)),
'title' => 'Top 5 Sport'
);
array_push($files, $file_row);
Theres two main parts you need to change that will influence what kind of information the categories will display. Can be substituted with either: Where you have amCategory::getById(39); Another part that you can modify is the title Another part that can be adjusted is: HTML Design elements that control the categories - templates/frontend/home/index.tpl <div class="content"> <?php foreach ($file_row['files'] as $file): ?> <?php echo $file->getShortPreviewHtml() ?> <?php endforeach; ?> </div> CSS Elements - css/style.css - line 111 #videos #top .content, #files #top .content, #images #top .content {style.css (line 111)
background-color:white;
float:left;
padding-bottom:5px;
width:750px;
}
|
