HansSchouten / Laravel-Pagebuilder

A drag and drop pagebuilder to manage pages in any Laravel project
https://www.phpagebuilder.com
MIT License
799 stars 184 forks source link

simple link list #75

Open Dontorpedo opened 3 years ago

Dontorpedo commented 3 years ago

hi,

i am trying to create a simple link list block and other standard blocks.. but it is not working very comfortably..

i created blocks with 1-4 columns where i put other blocks inside, after that i created a block for the list in my view.html

<ul phpb-blocks-container>

</ul>

and than another block for the li element

<li phpb-blocks-container>
<a href="">link1</a>
</li>

i tried different things.. but it is not working..

i can put the ul block inside my column, but the li block want go inside the ul block..

and than i can't edit the href inside the li..

do you have a better idea?

i think it would be very helpfull for many things if there would be some repeater field in the block settings..

HansSchouten commented 3 years ago

Hi, the li should not need the phpb-blocks-container attribute. Maybe that helps. Or can you try a div blocks container instead of a ul. If you click on the li doesn't it trigger the text editor so you can change the link text and url?

Dontorpedo commented 3 years ago

ok, div instead of ul works.. but thats not optimal..

no, i can change only the text, but the texteditor is not triggered.. so url can't be changed