From 5a52c0da9de28759ed0d2cd87273f12c33f4ee08 Mon Sep 17 00:00:00 2001 From: Amigo <49749100+aamigo@users.noreply.github.com> Date: Wed, 2 Oct 2019 18:48:42 +0200 Subject: [PATCH] Updated 069 Join Fields in the admin list view with field relations (markdown) --- 069-Join-Fields-in-the-admin-list-view-with-field-relations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/069-Join-Fields-in-the-admin-list-view-with-field-relations.md b/069-Join-Fields-in-the-admin-list-view-with-field-relations.md index 3bf9f00..2b60d92 100644 --- a/069-Join-Fields-in-the-admin-list-view-with-field-relations.md +++ b/069-Join-Fields-in-the-admin-list-view-with-field-relations.md @@ -59,7 +59,7 @@ Let's create one without an email address. We created one with no email address. [00:15:53](https://www.youtube.com/watch?v=hh4IIPmYIY8&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h15m53s) -Let's do something even more interesting. Again we go and open Preacher area clicking the icon underneath Preacher. This is a shortcut. Instead of targeting the model, we are going to target the View. This is where it really gets interesting. Because this little place holder called field=199 is a chunk of code as I explained initially in the beginning. Where we are saying [00:16:30](https://www.youtube.com/watch?v=hh4IIPmYIY8&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h16m30s) instead of targeting the actual value database value, you are targeting the produced code which JCB builds. The HTML block for that specific field. I would also encourage you removing the comment, this comment ' Name;[1222]=>Email(not required);[280]=>Website ->' that shows you the name, the email and the web address. [00:16:57](https://www.youtube.com/watch?v=hh4IIPmYIY8&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h16m57s) I would also encourage you to once you have seen it just remove it. We might at a later stage take the comment and added underneath the box that it is clearly nowhere in the way. It is for you to know that this portion is for the email and the website address. Again I want to add a little bit dynamic Script. I need to keep in mind that I'm in HTML. [00:17:31](https://www.youtube.com/watch?v=hh4IIPmYIY8&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h17m31s) If I wanted to add PHP I will need to do the correct PHP tags and all the rest of it. That means you can target the item value. You can remove this '[field=199]
[field=1222]
[field=280]' and work with the item value. But this [field=199] little placeholder will produce the whole [00:18:03](https://www.youtube.com/watch?v=hh4IIPmYIY8&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h18m03s) block of code. If it's going to be a dynamic link, or something like that. It'll produce all of that for you if it's a custom field which links to another View. Then all of that can still be produced in this dynamic placeholder [field=1222] . But you can remove all of this and you can have it echo out anything which you just have to code. +Let's do something even more interesting. Again we go and open Preacher area clicking the icon underneath Preacher. This is a shortcut. Instead of targeting the model, we are going to target the View. This is where it really gets interesting. Because this little place holder called field=199 is a chunk of code as I explained initially in the beginning. Where we are saying [00:16:30](https://www.youtube.com/watch?v=hh4IIPmYIY8&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h16m30s) instead of targeting the actual value database value, you are targeting the produced code which JCB builds. The HTML block for that specific field. I would also encourage you removing the comment, this comment ' Name;[1222]=>Email(not required);[280]=>Website ->' that shows you the name, the email and the web address. [00:16:57](https://www.youtube.com/watch?v=hh4IIPmYIY8&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h16m57s) I would also encourage you to once you have seen it just remove it. We might at a later stage take the comment and added underneath the box that it is clearly nowhere in the way. It is for you to know that this portion is for the email and the website address. Again I want to add a little bit dynamic Script. I need to keep in mind that I'm in HTML. [00:17:31](https://www.youtube.com/watch?v=hh4IIPmYIY8&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h17m31s) If I wanted to add PHP I will need to do the correct PHP tags and all the rest of it. That means you can target the item value. You can remove this '[field=199]br/[field=1222]br/[field=280]' and work with the item value. But this [field=199] little placeholder will produce the whole [00:18:03](https://www.youtube.com/watch?v=hh4IIPmYIY8&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h18m03s) block of code. If it's going to be a dynamic link, or something like that. It'll produce all of that for you if it's a custom field which links to another View. Then all of that can still be produced in this dynamic placeholder [field=1222] . But you can remove all of this and you can have it echo out anything which you just have to code. ### Demonstration