Page 1 of 3

Hello,first ov

Posted: 02 Mar 2008, 14:47
by ostseefoto
Hello,
first ov all many thanks for this great component. This gallery is the best gallery I found for Joomla.
But I have 2 problems with the configuration.
On my side www.creativ-foto-rostock.de I like to show few categories. Until now it shows in column. I like the view in a row. How to do that?

Second problem: when it shows the category there is no "back"-button or link. How to implement this?

It would be very nice if somebody can help me to solve this probs.

Kind Regards
Roland

Hi there is no row v

Posted: 02 Mar 2008, 21:02
by Jan
Hi there is no row view yet, but you can change the html code in:
components\com_phocagallery\views\categories\tmpl\default.php
row 23 +

Hello Jan,

Posted: 04 Mar 2008, 09:54
by ostseefoto
Hello Jan,

well I have checked the file but I'm not so perfect in php. So I don't now, where I have to change the things.
It would be nice if you help me.

Best regards
Roland

The back button is m

Posted: 04 Mar 2008, 10:44
by Jan
The back button is missed if it is the first level (becuse we don't know from where user is comming - categories or category), you can use the breadcrumbs...

Column <--> Row:
FROM:

echo '<table border="0">';
foreach ( $this->categories as $category )
{
echo '<tr>';
echo '<td align="center" valign="middle" style="'.$this->imagebackground.'"><a hr
e
f="'.$category->link.'">'.JHTML::_( 'image.site', $category->linkthumbnailpath, '',
'
', '', $category->link, 'style="border:0"' ).'</a></td>';
echo '<td><a href="'.$category->link.'" class="category'.$this->params->get( 'pag
e
class_sfx' ).'">'.$category->title.'</a> ';

if ($category->numlinks > 0) {echo '<span class="small">('.$category->numlinks.')
<
/span>';}

echo '</td>';
echo '</tr>';
}
echo '</table>';



e.g. TO:

foreach ( $this->categories as $category )
{
echo '<span style="'.$this->imagebackground.'"><a href="'.$category->link.'">'.JH
T
ML::_( 'image.site', $category->linkthumbnailpath, '', '', '', $category->link, 'sty
l
e="border:0"' ).'</a></span>';
echo '<span><a href="'.$category->link.'" class="category'.$this->params->get( 'p
a
geclass_sfx' ).'">'.$category->title.'</a> ';
if ($category->numlinks > 0) {echo '<small class="small">('.$category->numlinks.'
)
</small>';}
echo '</span> ';

}

I'm sorry, I ha

Posted: 05 Mar 2008, 16:35
by ostseefoto
I'm sorry, I havn't found this part. Here is my complete code from the default.php as you describe. On which place I have to change the code? I have no idea, sorry.

You have paste the C

Posted: 05 Mar 2008, 16:41
by Jan
You have paste the CATEGORY default.php but you must edit the CATEGORIES default.php

com_phocagallery/views/categories/tmpl/default.php

Jan

Hi Jan,y

Posted: 05 Mar 2008, 17:08
by ostseefoto
Hi Jan,

yes, your'e right. I found the right default.php. But If I change the code acc. your instruction, the categories and the rest of the website will not be shown. Then I have a blank browser window. What for hell I make wrong?

Roland

maybe there is an er

Posted: 05 Mar 2008, 18:27
by Jan
maybe there is an error. Do you have enabled error reporting?

Hi Jan,h

Posted: 06 Mar 2008, 10:49
by ostseefoto
Hi Jan,

here I have the changed default.php from the correct folders:
But it is not working.

<?php
// no direct access
defined('_JEXEC') or die('Restricted access'); ?>
<?php if ( $this->params->def( 'show_page_title', 1 ) ) : ?>
<div class="componentheading<?php
echo
$this->params->get( 'pageclass_sfx' ); ?>">
<?php echo
$this->params->get('page_title'); ?>
</div>
<?php endif; ?>



<div class="contentpane<?php
echo $this->params->get( 'pageclass_sfx' ); ?>">
<?php if ( ($this->params->def('image', -1) != -1) ||
$this->params->def('show_comp_
description', 1) ) : ?>
<div class="contentdescription<?php
echo $this->params->get( 'pageclass_sfx' ); ?>"
>
<?php
if ( isset($this->image) ) :
echo $this->image .
'<div style="clear:both"></div>'
; endif;
echo
$this->params->get('comp_description');
?>
</div>
<?php endif; ?>
</div>

<?php if ($this->displayimagecategories == 1)
{
foreach ( $this->categories as $category )
{
echo '<span
style="'.$this->imagebackground.'"><a href="'.$category->link.'">'.JH
TML::_( 'image.site',
$category->linkthumbnailpath, '', '', '',
$category->link, 'st
y
le="border:0"' ).'</a></span>';
echo '<span>
<a href="'.
$category->link.'" class="category'.
$this->params->get( 'p
ageclass_sfx' ).'">'.$category->title.'</a> ';
if ($category->numlinks > 0) {
echo '<small class="small">('.
$category->numlinks.'
)
</small>';}
echo '</span> ';

}
else
{
?>
<ul>
<?php foreach ( $this->categories as $category ) : ?>
<li>
<a href="<?php echo
$category->link; ?>"
class="category<?php echo
$this->params-
>get( 'pageclass_sfx' ); ?>">
<?php echo
$category->title;?>
</a>

<span class="small">
<?php if ($category->numlinks > 0) {
echo '(' . $category->numlinks . ')';} ?>
</span>
</li>
<?php endforeach; ?>
</ul>
<?php
}
?>

Because }

Posted: 06 Mar 2008, 14:38
by Jan
Because } is missed in your foreach. Please enable error reporting and your php displays the errors which you have in your code