• Resolved supernova42

    (@supernova42)


    I want to give my members the option to sell a few items through the website. At present I’ve restricted this to 3 items per member on account of the PDB file structure.

    I’ve created 3 groups within PDB. Within group 1 I have the fields photo_1, details_1, price_1 within group 2 I have photo_2, details_2, price_2 and so on.

    Everything works great, I have the flexbox template working for me and I have created links by passing parameters through the URL, but I have one small problem.

    I list out my items using
    [pdb_list template=”flexbox” fields=”photo_1,summary_1,price_1,photo_2,summary_2,price_2,photo+3,summary_3,price_3″]

    When it lists the items it lists all the empty fields too and I get the ‘No Image’ logo for the empty fields. Of course if I restricted this to 1 item per person it would be easy, but I thought 3 items would be a better option if I can get it to work.Other than the problem I describe, everything works fine.

    I’ve played around with the filters but haven’t found one that works. Basically how can I stop the empty fields being displayed?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author xnau webdesign

    (@xnau)

    This gets covered here from time to time, but the answer is there is a classname on empty field displays that you can use to hide it.

    For example, on the single record display, you can use:

    .pdb-single .blank-field {
       display:none;
    }

    For other display, you can look at the HTML to see how you can do something similar.

    If you don’t want to see the default image for image fields that have nothing uploaded, you can do that also with CSS or you can blank out the “default image path” setting so no default image is used at all.

    Thread Starter supernova42

    (@supernova42)

    I added the code you suggested to my theme css but it made no difference.I am using the shortcode pdb_list with the template=”flexbox”

    This is a link so you can see what I’m talking about https://boatsrus.co/market/view-all-adverts/

    I’ve used web inspector but I can’t see anything to hook it on to so I’m stuck at the moment.

    Thank you

    Plugin Author xnau webdesign

    (@xnau)

    The flexbox template does not normally show fields that don’t have a value, so you should not need to try to hide them in that case. Something else is going on…have you checked the HTML to see if the field is really empty?

    Thread Starter supernova42

    (@supernova42)

    I’ve gone back to providing just 1 sale item for each member which overcomes the problem I’ve highlighted.

    Thanks for help

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Problems with multiple fields being displayed’ is closed to new replies.