Updated 069 Join Fields in the admin list view with field relations (markdown)

Amigo 2019-10-02 14:46:22 +02:00
parent 8bddb26d20
commit 11b9f8dd52

@ -65,13 +65,13 @@ Let's do something even more interesting. Again we go and open Preacher area cli
[00:18:32](https://www.youtube.com/watch?v=hh4IIPmYIY8&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h18m32s)
I think best to demonstrate is, first used the Concatenation option which we can put a <br/> between the values. Save and close. Compile, install. We will refresh this area. We will see that 'Leonard Ravenhill' value is a link, but the other two is text. That's exactly what we wanted to achieve.
I think best to demonstrate is, first used the Concatenation option which we can put a br/ between the values. Save and close. Compile, install. We will refresh this area. We will see that 'Leonard Ravenhill' value is a link, but the other two is text. That's exactly what we wanted to achieve.
### Going To The Code(see video)
[00:19:07](https://www.youtube.com/watch?v=hh4IIPmYIY8&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h19m07s)
Going into the code, we open the body. You'll see the JCB added the <br/>. There is a <br/>, there's a <br/>. There's the portion '<?php echo $this->escape($item->email); ?>' of code that JCB build. It really build all of this. It's still built a link to the preacher. It's still built this as well. If this '<?php echo $this->escape($item->email); ?>' was going to be a link to another view, it will produce that code. Checking the permissions and everything. Which is really what makes [00:19:43](https://www.youtube.com/watch?v=hh4IIPmYIY8&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h19m43s) This areas implementation quite exciting. Because it still takes care of the hard work of producing the code needed to display the value. If you pick up any behaviors in this new feature that is unexpected, please give us a heads up on Github and open an issue. We will try and address it as quick as we can. This is the new feature of combining admin view values [00:20:19](https://www.youtube.com/watch?v=hh4IIPmYIY8&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h20m19s) in a very easy way. It could have been done previously with some custom scripting, but this helps you and I'm sure makes it easy for you to just select the field you want to target. You first need to add the fields that you are already going to show in the list view and then select the field you want to join to it. I expected that you will understand that, but I realize I must mention that separate.
Going into the code, we open the body. You'll see the JCB added the br/. There is a br/, there's a br/. There's the portion '<?php echo $this->escape($item->email); ?>' of code that JCB build. It really build all of this. It's still built a link to the preacher. It's still built this as well. If this '<?php echo $this->escape($item->email); ?>' was going to be a link to another view, it will produce that code. Checking the permissions and everything. Which is really what makes [00:19:43](https://www.youtube.com/watch?v=hh4IIPmYIY8&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h19m43s) This areas implementation quite exciting. Because it still takes care of the hard work of producing the code needed to display the value. If you pick up any behaviors in this new feature that is unexpected, please give us a heads up on Github and open an issue. We will try and address it as quick as we can. This is the new feature of combining admin view values [00:20:19](https://www.youtube.com/watch?v=hh4IIPmYIY8&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h20m19s) in a very easy way. It could have been done previously with some custom scripting, but this helps you and I'm sure makes it easy for you to just select the field you want to target. You first need to add the fields that you are already going to show in the list view and then select the field you want to join to it. I expected that you will understand that, but I realize I must mention that separate.
### Preacher Field - Two Field - Name And Description