I’m have about 20 projects to showcase and want to use one dynamic page. However, because they all have differing amounts of images for each project, some of the projects have masses amounts of spare space at the bottom before the footer. Is there a way the dynamic page can to resize according to how much content is in each project?
Many thanks in advance!!
1 Like
I’m having the same issue! Have you managed to get it resolved yet…?
What’s your setup? Screenshots would help.
@skmedia The wireframe for my pages looks something like the following. Both pages following the same format (hence a dynamic page from a pre-built database), but different pages have differing number of sections and content. So in page 1, you should only see 2 section buttons at the page header, and only two sections should appear. the length of the page should also be shorter. In Page 2 (second image), there are 3 sections, so 3 section buttons should appear, and the length of the page would be longer to accomodate the third section below. Would you know how to get the dynamic page to adjust dynamically in length/elements shown) accordingly to the database?
Thanks in advance!
@hilarychanhl My guess is you’re using column strips instead of repeaters. Column strips do not collapse fully, they leave a blank space. I would either switch to container boxes or a repeater.
@skmedia Using a repeater means that the content is no longer dynamic - e.g, all headings can only be linked to one element in my dataset it seems…? Because it is simply ‘repeated’?
@hilarychanhl It might just be me but your comment is reading like word soup
Can you try and reword it please? What do you mean by headings? The buttons in header? Or are they not in the header?
@skmedia oops sorry about that. Okay, so I took your previous comment to mean that I should try to use a repeater to house the elements on my pages. Presumably this means that each section (in the wireframes above) is an ‘item’ in the repeater. However, it seems like I can only link each element in a repeater to one field in my database. So for example, the Section 1 heading will get simply be repeated 3 times across the three ‘items’ within the repeater. So a repeater does not seem like a plausible option if I want to keep my content dynamic…?
I need an option which allows me to hide certain elements in my set of dynamic pages if that field in the database is empty. This ‘hiding’ mechanism should also extend to the length of the page, which should adjust accordingly - if a section 3 is not present on one of the pages within the set, the page should be shorter.
@hilarychanhl This is not how repeaters work in Wix. If you connect your repeater to your database it will display each row only once. If there is an empty field in one of your rows and you want it to display something instead, use
let thisField = $w(‘#dataset’).getCurrentItem().field;
if (thisField === undefined || thisField === ‘’) {//code here}
Don’t bother populating repeater items manually in this case, just delete all but the first item
@skmedia Got it, thanks so much for your help!
I’ve got the same dilemma however I’m using container boxes. Has there been any solution came to yet? I’ve also got container boxes inserted to create the space between drop-down menus.
Any help is appreciated!
Hi, have you tried using “sections/strip”?
Sometimes the system dont know they have to adjust the space for you. So I think one dropbox one strip helps
Hello! Unfortunately I did have strips creating the spacing between buttons before but had the same result… can you clarify what you mean my “one dropbox one strip” though please? I’m not sure I understand
I am also having issues in creating adequate space between different elements within wix dynamic pages, I am also using white container boxes to create the appropriate spacing for the design of the page.
Is there a more efficient solution for adding spacing between elements in a dynamic page?
Thanks
Michael