Thanks for your response.
I asked a few other people if my initial description provided enough Information and the answer was yes. I could have gone into more details but I have found that most people if it is more than a paragraph will not read it so I tried to keep it short and on point.
Sure I could go and write a custom component however that would be massively recreating the wheel when what I want is a single small part to something that Bricks can already do really well. The issue is constructing the query which Bricks excels at.
Additionally, while building custom components are easy for you, not everyone has your skill and probably do not have the time to learn this. I wish I did.
So, since you asked, here is a write-up with more information.
I have a component that I want to create. The idea is that I can have a query loop where my client can drag the component onto the canvas. When they then select the block/component they would see the filed to add their ids. eg. â1,2,3,4,5â.
I would then somehow access that information.
At this point, If I choose to use the bricks query builder, I have to bind the Article IDs field to a part of the query or it does not show when a person uses the block. I tried multiple times.
If I opt for using a custom PHP query (which I have a good understanding of), the field disappears and I am no longer binding it to a query attribute or property. I also need to know the means by which I can access the component fields. eg. $component[âfieldsâ][âarticle_idsâ] etc.
What is the syntax that Bricks uses? Also, if I have my label as Article IDâs, does it convert it to article_ids or does it leave it as is âArticle IDsâ ?
Hopefully that paints more visually what you asked for. I have tried for hours and hours and have no luck. In the past, I have had similar issues with Bricks and when I finally saw the answer, it was right there all along. Iâm more than happy to look like an idiot if I can find the answer to this and also help others in the process.
Personally, what I am hoping for is to learn how to access the field via. custom PHP query as I believe the answer is about half a dozen lines in the query rather than writing out an entire component (which as I said would be cool to know and I will probably try when/if I can get some spare time).
Thank you for your time and happy to accept any assistance if it is for offer.
Cheers.