Page 1 of 1
category view - image on the right side
Posted: 15 Aug 2010, 17:35
by miheli
hi there,
im new to this and i have a problem with the category list view. how can i change the one picture next to the category description from the left to the right side?
could u help me with that? I saw in firebug, that its float left, and the description had an inline style of margin-left: 138px, but i have no idea where i can edit the inline styles. this "preview" image should be float right.
Thanks already
Re: category view - image on the right side
Posted: 15 Aug 2010, 18:22
by imperialWicket
If you are using the default category view configuration (Display Categories Style: Categories, images and detail information), you should be good to edit the components/com_phocagallery/views/categories/tmpl/default.php file.
Line 157 - change "...float:left..." to "...float:right..."
Line 178 - change ..."margin-left..." to "margin-right"
Note that if you are using a different display style, the changes are extremely similar and will occur at different lines. The file is well commented, the default display style is "DETAIL LAYOUT 2 (with columns)" as noted in the file comments. If you are using a different style, just find the appropriate section of the code using the comments, and make the similar update. The line numbers are from the 2.7.4 release.
Good luck.
Re: category view - image on the right side
Posted: 18 Aug 2010, 08:45
by miheli
Thanks, that worked perfect.
Now i have another problem. I am using the LAYOUT 4 (with columns) (easy categories, images and description)
and i would like to give another style class to the gallerytitle. i found this in the default.php on line 382
.' <a href="'.$this->categories[$i]->link.'" class="category'.$this->params->get( 'pageclass_sfx' ).'">'.$this->categories[$i]->title_self.'</a> ';
but its not the right place. Do you know where i can change that?
Re: category view - image on the right side
Posted: 18 Aug 2010, 13:48
by imperialWicket
Try around 414 or so, the line looks very similar to the 382 reference.
Code: Select all
echo '<div style="padding-top:5px"><a href="'.$this->categories[$i]->link.'" class="category'.$this->params->get( 'pageclass_sfx' ).'">'.$this->categories[$i]->title_self.'</a> ';
Re: category view - image on the right side
Posted: 19 Aug 2010, 08:31
by miheli
Thank you very much, that also worked great.
now im happy:)