category view - image on the right side

Phoca Gallery - image gallery extension
miheli
Phoca Member
Phoca Member
Posts: 12
Joined: 15 Aug 2010, 17:13

category view - image on the right side

Post 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
imperialWicket
Phoca Enthusiast
Phoca Enthusiast
Posts: 78
Joined: 28 Feb 2010, 15:39

Re: category view - image on the right side

Post 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.
miheli
Phoca Member
Phoca Member
Posts: 12
Joined: 15 Aug 2010, 17:13

Re: category view - image on the right side

Post 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?
imperialWicket
Phoca Enthusiast
Phoca Enthusiast
Posts: 78
Joined: 28 Feb 2010, 15:39

Re: category view - image on the right side

Post 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> ';
miheli
Phoca Member
Phoca Member
Posts: 12
Joined: 15 Aug 2010, 17:13

Re: category view - image on the right side

Post by miheli »

Thank you very much, that also worked great.
now im happy:)
Post Reply