I tried the following myself but have to admit that joomla 1.6 component development is
pretty new to me. And I could not yet figure out how to add new fields to a backend view.
I would like to have the following features/informations in category view in frontend in ...
- description
- image
Steps I took where
I edited in /components/com_phocadownload/views/category/tmpl/default.php around line 62
Code: Select all
// - - - - -
// CATEGORIES
// - - - - -
if (!empty($this->subcategories)) {
foreach ($this->subcategories as $valueSubCat) {
echo '<div class="pd-subcategory">';
echo '<a href="'. JRoute::_(PhocaDownloadHelperRoute::getCategoryRoute($valueSubCat->id, $valueSubCat->alias))
.'">'. $valueSubCat->title.'</a>';
echo ' <small>('.$valueSubCat->numdoc.')</small>';
if ($valueSubCat->description) echo '<div class="pd-cat-desc">'.$valueSubCat->description.'</div>';
echo '</div>' . "\n";
$subcategory = 1;
}
echo '<div class="phoca-dl-hr" style="clear:both"> </div>';
}Also in /components/com_phocadownload/views/categorie/tmpl/default.php around line 37
Code: Select all
$catOutput .= '<a href="'. JRoute::_(PhocaDownloadHelperRoute::getCategoryRoute($valueCat->id, $valueCat->alias))
.'">'. $valueCat->title.'</a>';
if ($valueSubCat->description) $catoutput .= '<div class="pd-cat-desc">'.$valueSubCat->description.'</div>';In /components/com_phocadownload/models/category.php on line 185 and 193 I edited
Code: Select all
cc.aliasCode: Select all
cc.alias, cc.description,Not so hard so far ...
But I could not figure out how to add switches in the backend to decide if the description shall be displayed.
And same thing for an image.
The result should be that description and an category image can be entered/picked and swith the display via
simple radio buttons (desc. display: yes|no; image display: yes|no; image position: left|right).
I would really appreciate If you could help with this and think about adding this features to a future version.
Would also consider to pay for this features, may just tell me a price and I can consider if it is worth it
greetings.



