PDA

View Full Version : Show the image in the table view not working


DannyS2
07-02-2007, 01:33 PM
Hello

I am using version 1.0.4

First, I would like to have displayed a small airline logo next to the airline name in a table. I have checked both "Show the image in the table" to yes and the Tabkle Settings "Show in table view " in the element which is of the type image, but I am still getting just the path showing. In a form view it is displayed when choosing the correct logo.

Second, I have set up the sub-directory under images/stories to hold the logos but when i enter them via a form there is an extra "/" between the sub-directory and the image name, airline_logos//emirates.png

Third, the form looks messy as it shows a "select folder" dropdown box which is empty as we have already set our sub-directory in the element. Also there are two image missing images one above and below the dropdown boxes. I don't know what the lower should be showing but the top one doesn't have a full path to an image even when I set a default value in the element. Once I selct one of the image it will then show although it is stored witrh the double "//"

Last, I can see other people of have already asked these questions but I can't find the answers. Should I be using a later SVN and if so how do I find it? I don't wnat to start changing code if you guys have already done it.

Thanks
Danny

DannyS2
07-03-2007, 01:00 AM
Found the SVN :)

Was the image display working in 1.0.3?

Danny

DannyS2
07-03-2007, 12:59 PM
Apologies if I'm not making it clear but what is not getting stored even with the correct settings in elements is the "<img src="">" data. Part of the path, a double "//"" and the image file name are getting saved.

Danny

DannyS2
07-03-2007, 01:04 PM
Oh and I am using Fabrik 1.0.4b, Joomla 1.0.12 and php 4.4.4

Danny

DannyS2
07-05-2007, 11:10 AM
OK, had a chance to look a little. In fabrik_table.class.php there is whole section of code commented out around line 699. It starts:

}else{
/*$attribs =& new mosParameters( $oElement->attribs );

If we take out the comment tags we can get images displayed in the table view again. There is an extra "/" coming in front of the stories sub-directory but we can get rid of this by changing the line

$file = $mosConfig_live_site. '/images/stories/' . $elData;
to
$file = $mosConfig_live_site. '/images/stories' . $elData;

There is still an extra "/" in front of the image file name but that doesn't seem to be coming from this section of code.

Any downside to removing the comment tags??

Danny