Image displays on list view but NOT on detail view

puzzled

Member
Hi - I have a element with image path and name in that I have set to use the image plugin.

It displays as this on the LIST page (all images display fine):

HTML:
<li class="mydatabse_mytable___icons fabrik_element fabrik_list_76_group_76">
<span class="divlabel">icons:</span>
<span class="divelement">
 
  <ul class="fabrikRepeatData">
    <li>
      <img src="http://www.mysite.co.uk/mysubdir//images/Hotels/facilities/animal-activity-closeby.gif" alt="images/Hotels/facilities/animal-activity-closeby.gif">
    </li>
    <li>
      <img src="http://www.mysite.co.uk/mysubdir//images/Hotels/facilities/baby-equipment-available.gif" alt="images/Hotels/facilities/baby-equipment-available.gif">
    </li>
    <li>
      <img src="http://www.mysite.co.uk/mysubdir//images/Hotels/facilities/baby-monitor-service.gif" alt="images/Hotels/facilities/baby-monitor-service.gif">
    </li>
  </ul>
</span>
</li>

But on the DETAILS page it breaks and does this (images display as one broken image icon):

HTML:
<li style="clear:both;width:100%;" class="fabrikElementContainer image">
  <label for="mydatabase_com_mytable_details2___icons_ro" class="fabrikLabel ">icons</label>
  <span class="fabrikErrorMessage"></span> 
      <div class="fabrikElement">
        <div id="mydatabase_com_mytable_details2___icons_ro">
          <div class="fabrikSubElementContainer" id="mydatabase_com_mytable_details2___icons_ro">
                    <img src="http://www.mywebsite.co.uk/mysubdir//[" images\="" hotels\="" facilities\=""splash-pool.gif","images\="" shady-beach.gif","images\="" toys-for-babies.gif","images\=""toys-for-toddlers.gif"]"="" alt="[" style="float:left;" class="imagedisplayor">
                    <input type="hidden" name="baby72_com_property_details2___icons" value="["images\="" hotels\="" facilities\="" splash-pool.gif","images\="" shady-beach.gif","images\="" toys-for-babies.gif","images\="" toys-for-toddlers.gif"]"=""class="fabrikinput hiddenimagepath folderpath">
          </div>
      </div> 
    </div>
    <div class="fabrikErrorMessage">
                            </div>
    <div style="clear:both"></div>
</li>

If anyone has any ideas why it might be doing this I would be very grateful.
 
Are you running a recent GitHub update?
Image in repeated group is working on my site (list/form/details view).
 
I have updated now and all fabrik items in the Extensions Manager are now 3.0.8.

The problem is still there - any ideas?

Thanks ever so. :)
 
I don't seem to be able to replicate this either.

Can you post a screenshot of your image element settings?

Also ... from your original description, it sounds like you are pre-setting the data in the table, rather than having the user choose the image. Can you make sure that your image paths use / rather than \ for the folder separator?

-- hugh
 
Hi Hugh - Yes I am presetting the data in the table. I am definitely using / as shown in the list view code above that works fine.

http://www.mysite.co.uk/mysubdir//images/Hotels/facilities/baby-equipment-available.gif

The issue is that they DO display in the list view but NOT in the details view, however they are using the same data and settings are shown in the attached.
screen.jpg

I have included a shot of the actual database content for this element taken from phpMyAdmin.
database-content.jpg

The table was initially created using a component creator - screen shot also attached.
component-creator.jpg

Thanks
 
Hi Rob - have you managed to get in with the ftp details I logged with you?

I don't want to mess with this section now until you have had a look in case I disrupt you being able to find the issue.

The site needs to go live next week!

Thanks

Karen
 
Hi - Out of sheer desperation I have scrapped what I had and started again - I STILL get the same problem as detailed above.

This must be a bug or something - I have updated your ftp access as it is on a different server now.

Please, please... could someone take a look asap? - the site was meant to go live tomorrow and I am about to loose a valued client as I have put them off already because I just can't figure this out.

Anyway - enough of the sob story... you get the picture. ;)

Thanks in advance
 
Your database entry is looking totally different to mine.

You are using some sort of repeated images but
a repeat group has it's data in an additional table table_X_repeat (x=groupID), every "repeated" entry has one record id, parent_id, element1,....
This is displaying fine on my site in list and details view.

It seems to me you have no repeat group with an image element but putting multiple images into one element column ["image1","image2"]
which has been old "repeat" syntax in Fabrik2.
I think the list view is interpreting this string as you need it by chance but details view doesn't.

Workaround:
maybe change image element to calc element which is creating the <ul><li>... output in list and details view.

Backup before trying
 
Wow - thanks for hearing my plea - much appreciated.

Is the calc setting in the plugin drop down for my element, as I don't have that in the list of options.

Thanks
 
Yes, calculation element is in the plugin dropdown.
In the PHP code you have to do string handling to get your single images and compose something like this
<ul class="fabrikRepeatData">
<li>
<img src="http://www.mysite.co.uk/mysubdir//images/Hotels/facilities/animal-activity-closeby.gif" alt="images/Hotels/facilities/animal-activity-closeby.gif">
</li>
<li>
<img src="http://www.mysite.co.uk/mysubdir//images/Hotels/facilities/baby-equipment-available.gif" alt="images/Hotels/facilities/baby-equipment-available.gif">
</li>
<li>
<img src="http://www.mysite.co.uk/mysubdir//images/Hotels/facilities/baby-monitor-service.gif" alt="images/Hotels/facilities/baby-monitor-service.gif">
</li>
</ul>
 
Sorry but this is my plugin list and there is no calc...

Am I in the right place?
 

Attachments

  • plugin-list.png
    plugin-list.png
    8.5 KB · Views: 324
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top