Layout Issue - Custom Lookup Field #9
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: joomla/Component-Builder#9
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I created some lookup fields, to pull information form other tables, using your example from demo content. My fields are City (from a cities view), State (from a states view), and Country (from a countries view). When I look at the view, lookup fields are right next to each other, rather than in separate rows. I have checked, and the fields are set to Left in Tab, and the order is set correctly. I have noticed that if I place a non-lookup field between the 2 lookups, then it lays out correctly.
hmm this sound weird, I have not had this issue....
Okay lets see you want them all lined up Left in Tab do me a favor, just check if you did not by accident selected Left of Tab for some? Since that has happed to me.. but if not, lets look at the code. Post the code from the edit.php file here if you don't mind.... then I can tell you what is happening.
They are all Left In Tab.
Below is the PHP from edit.php. Now, if I add something to right in tabs, then it positions everything fine.
Okay lets see, you have a few tabs here...
This is tab 1
So as you can see it only loads one layout called property.main_details_left
This should mean that all is being loaded to the left.....
Okay give me some time (few hours) I will try and duplicate this and see what I find, it may be a bug... and then I will fix it.
Okay So I tried to duplicate the issue but was not successful
It lines up correctly, so this means it is not a bug. What we now need to do is ask a few questions.
Okay those scripts are almost still in default...
Well I can't really help you if I can't see it, I realize you would not want to just give your work away. But for me to debug this I have to see it.
Honestly it must just be a simple glitch, I know because I have spend tons of hours fixing those kind of stuff.... lol
You can try going over the generated code. Look at the layouts, remove some of the code in the edit view, like some of the tabs... and just break it. You can easy rebuild it in the CBuilder, right?.. so open the code and fiddle with it until you see it work and then let me know if you find something.
Only thing I can still think is it may be a one div to many somewhere. Yet in counting the divs above all seems okay, I counted 40 divs and they all close again. You could review that again.
I can tell you that I have build many components so far and have not yet had this issue, so it would be great if we can solve this edge case 👍
Keep me posted!
My live version that I have been working on today (and yesterday) is using the left and right in tab.
I have this "test" version with everything in left uploaded to git. Once we see IF it's a bug, then this code will, eventually, be updated to the current live version I'm developing off of.
The sample code that I have been providing is for the property view.
https://github.com/mwweb/most-wanted-real-estate
Okay I see tones of errors.... you have many fields setup incorrectly in this view, do you have show errors turned on in your developers environment?
First off there is custom fields in this view that don't have the database table in place, so major error there
#__mostwantedrealestate_rental_frequency
Then price has a field called
showon
you have the wrong details in itshowon="show_price=0"
, please review documentation on the showon switch. It should beshowon="show_price:0"
I think there is a few more with this same error, you should go over all those where you are using showon.
About the field showing on the wrong side, it is a css problem. I am looking at a way to fix it, I am using the
input-append
css class to bind the little button to the selection field and it is causing issues when there is two fields below each other were both is having these nice buttons... so you were right :)Okay I will let you know soon as I have this resolved.
Please update to version 2.1.16 as this should resolve the layout issue. Let me know.
the rental_frequency view was just added yesterday, and is actually in my "live" build, that has fields laid out different than what I uploaded to GitHub.
There is still a long ways to go in the continued development/rewrite of that component I took over. There were a lot of settings that were "hardcoded" in the component Options that I think should be more customizable (rental_frequency is one example of this).
Sure.. I can see it has tones of values :)
Let me know one you have tested it with the new CB build.