[Solved] Thumbnail problem in Company Directory module
Posted: Mon Dec 24, 2007 2:20 pm
Hi,
I am using CompanyDirectory module v. 1.1.1
http://www.epsilonconcepts.com/projects ... ut-us (list on the right)
I have a problem, cant display thumbnail in summary listing.
Image appears normally on details page included with this default code:
{if $entry->picture_location ne ''}
picture_path}" />
{/if}
but when I use same code on summary listing page, iimages have error in the url...
uploads/companydirectory/id2/Brookfield-Zoo-2.jpg"
(it should be id3,
it puts in image path id number of the the category, and it should be id number of the article
how come this same variable {$entry->picture_path} outputs a good path on detais, but outputs a different one on summary listing?
I found this line in one of the config files of the module
$onerow->picture_path = $config['root_url'] . '/uploads/companydirectory/id' . $row['id'] . '/' . $row['picture_location'];
and I think the problem is that $row['id'] has different number value - in summary listing its category ID, and in detailed page its company ID. So maybe I should make replacement to this line of code, or is there a way to add new line so that I have a different variable to use for the summary listing picutres ?
forgive my punny knowlidge of programing, I am just a designer.
This is why I love CMSMS !
please help,
Thanks Cisco
I am using CompanyDirectory module v. 1.1.1
http://www.epsilonconcepts.com/projects ... ut-us (list on the right)
I have a problem, cant display thumbnail in summary listing.
Image appears normally on details page included with this default code:
{if $entry->picture_location ne ''}
picture_path}" />
{/if}
but when I use same code on summary listing page, iimages have error in the url...
uploads/companydirectory/id2/Brookfield-Zoo-2.jpg"
(it should be id3,
it puts in image path id number of the the category, and it should be id number of the article
how come this same variable {$entry->picture_path} outputs a good path on detais, but outputs a different one on summary listing?
I found this line in one of the config files of the module
$onerow->picture_path = $config['root_url'] . '/uploads/companydirectory/id' . $row['id'] . '/' . $row['picture_location'];
and I think the problem is that $row['id'] has different number value - in summary listing its category ID, and in detailed page its company ID. So maybe I should make replacement to this line of code, or is there a way to add new line so that I have a different variable to use for the summary listing picutres ?
forgive my punny knowlidge of programing, I am just a designer.
This is why I love CMSMS !
please help,
Thanks Cisco