Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,450 --> 00:00:06,840
Hello, guys in Dallas Electro, we have initialized around a plug in in this lecture a be improving
2
00:00:06,840 --> 00:00:07,920
our pages.
3
00:00:08,550 --> 00:00:09,210
Let's begin.
4
00:00:09,210 --> 00:00:14,040
And the first problem is when we go to some particular page, you can also click here on the link together
5
00:00:14,040 --> 00:00:15,870
to link to the correct correct page.
6
00:00:15,870 --> 00:00:17,880
So about, for example, I'm about page.
7
00:00:18,150 --> 00:00:19,040
They are not display here.
8
00:00:19,050 --> 00:00:19,680
No.
9
00:00:19,950 --> 00:00:23,010
So some functionality needs to be shared amongst the pages.
10
00:00:24,590 --> 00:00:25,340
Let's take a look.
11
00:00:25,490 --> 00:00:31,040
Two are able to you, and you can see that our view is this playing the specific component specific
12
00:00:31,040 --> 00:00:33,230
page depending on the path in the URL.
13
00:00:34,040 --> 00:00:39,040
So if you are if I am in the home, you can imagine everything from the home here.
14
00:00:39,050 --> 00:00:42,530
How view this enter template here?
15
00:00:43,430 --> 00:00:46,160
Basically, we are going to look at eight thousand eighty.
16
00:00:46,400 --> 00:00:47,360
This will get here.
17
00:00:48,440 --> 00:00:48,770
OK.
18
00:00:50,120 --> 00:00:55,040
And it's the same way that all of the other pages of a name on a fake you'd rather have, you will be
19
00:00:55,040 --> 00:00:55,700
just this.
20
00:00:55,970 --> 00:00:59,810
You can see this part doesn't contain the stuff about all of these things.
21
00:01:01,080 --> 00:01:07,080
So what do they need to do in their view is I simply provide the shirt functionality in our view and
22
00:01:07,080 --> 00:01:09,660
their out, their view will be the content of the page.
23
00:01:10,590 --> 00:01:11,430
So for example.
24
00:01:12,910 --> 00:01:17,980
Let's go to one viewer, and we'd like to share the exchange here, an exchange now, let's say.
25
00:01:19,040 --> 00:01:24,680
So I will simply get these components grovel, copy them, and I will remove them from here.
26
00:01:25,670 --> 00:01:30,050
So part of my home page will be on the exchanges and exchange pagination.
27
00:01:31,340 --> 00:01:35,270
And in Abdo view, I will define exchange not about an exchange here.
28
00:01:36,170 --> 00:01:41,240
OK, now we'll get you a couple of issues because in the Hamdard view, we don't have no exchange now,
29
00:01:41,250 --> 00:01:43,190
but I exchanged Procellarum of it from here.
30
00:01:45,080 --> 00:01:48,860
I will copy these two lines of a lot of them copy them only.
31
00:01:49,520 --> 00:01:50,510
How will you move them now?
32
00:01:52,400 --> 00:01:57,320
I go to ablative, you and I will import two components I have just removed exchange number.
33
00:01:57,980 --> 00:02:02,540
OK, but a it is not correct to them because now we are in Abu Dhabi, also failing to provide a dot
34
00:02:03,290 --> 00:02:07,820
slush components and that special component because we are not same the same folder as the components
35
00:02:07,820 --> 00:02:08,300
folder.
36
00:02:09,080 --> 00:02:19,250
And there are components and there is two components extension of an exchange here and as we had them
37
00:02:19,250 --> 00:02:22,160
before here, the other you have, I have it here.
38
00:02:22,950 --> 00:02:25,740
OK, we can pass this data.
39
00:02:25,760 --> 00:02:27,610
OK, now we don't have here the brand names.
40
00:02:27,680 --> 00:02:28,730
We don't have the menu item.
41
00:02:28,740 --> 00:02:29,810
So that's another problem.
42
00:02:29,990 --> 00:02:32,060
Currently, we now have this.
43
00:02:32,420 --> 00:02:41,090
So go place to your home view and now you can extract the entire, not the entire data, but as the
44
00:02:41,090 --> 00:02:42,650
menu items and the brand name.
45
00:02:43,070 --> 00:02:50,480
OK, so let's copy these two things, but then the menu items and leave out to the homepage only exchanges.
46
00:02:51,840 --> 00:02:59,610
In the upload view, specified the data here, data function that will return this.
47
00:03:01,490 --> 00:03:07,670
OK, guys, now let's recap it delayed now, Abdul, the view is this is responsible for this playing
48
00:03:07,670 --> 00:03:13,220
out of your component, which is the component depending on the current path in the early.
49
00:03:14,190 --> 00:03:19,380
So let's recapitulate now the Navy will go to the, let's say, look, a whole state of the empty slash,
50
00:03:19,890 --> 00:03:23,070
and there our view will be everything what we have here.
51
00:03:23,310 --> 00:03:29,700
So this interactive here, Chris, you can imagine this place will be replaced and you can imagine does
52
00:03:29,700 --> 00:03:31,290
this the same structure as we had before?
53
00:03:31,290 --> 00:03:37,980
In the case of the homepage, the display extension of barter exchange hero, the exchange list and
54
00:03:37,980 --> 00:03:38,910
extras pagination.
55
00:03:40,470 --> 00:03:42,360
OK, now let's see.
56
00:03:42,510 --> 00:03:47,920
Example, then we'll go for it for, let's say, to the about Page seven, I will go to this about the
57
00:03:47,950 --> 00:03:50,150
hour of you will be the content of my airboat.
58
00:03:50,640 --> 00:03:53,780
So I'll go to the about this entire template.
59
00:03:53,850 --> 00:03:57,300
Leave here to go to the public view and the other view will be replaced with this.
60
00:03:58,410 --> 00:03:58,810
OK.
61
00:03:58,830 --> 00:04:03,540
But you can see now the part of the ballot will be the same exchange number and also exchange here.
62
00:04:03,660 --> 00:04:05,760
And then it will be content I'm about page.
63
00:04:07,700 --> 00:04:11,520
So it so that's how you define the common functionality.
64
00:04:11,540 --> 00:04:17,900
What is common for every page will be there in Abdul's view and the and the part that is the specific
65
00:04:17,900 --> 00:04:18,500
for a page.
66
00:04:18,710 --> 00:04:19,820
Is there any there out there?
67
00:04:19,820 --> 00:04:20,450
Are there of you?
68
00:04:21,080 --> 00:04:21,590
OK.
69
00:04:21,800 --> 00:04:27,350
And that our view is there your components and now it can have all of your components can be specialized
70
00:04:27,350 --> 00:04:29,180
only for the things that they have to do.
71
00:04:30,200 --> 00:04:33,980
Part of the home patch is just a display existentialist and pagination, for example.
72
00:04:36,520 --> 00:04:42,340
So, guys, let's say it was verified and either go to a browser here and you can see I'm on about page
73
00:04:42,340 --> 00:04:45,760
and on this plane here I am about page, OK?
74
00:04:45,760 --> 00:04:51,630
And I have a part of the number is here so I can go to home about a fake.
75
00:04:51,670 --> 00:04:57,670
You can see it's changing down here, log in, register and all of this is working.
76
00:05:01,080 --> 00:05:01,580
OK.
77
00:05:01,970 --> 00:05:03,260
It's working amazingly.
78
00:05:04,820 --> 00:05:06,410
OK, maybe we want to change it.
79
00:05:07,040 --> 00:05:11,530
Maybe we don't want to be search bar and the hero, the part of every page is a little bit annoying.
80
00:05:11,540 --> 00:05:13,460
I think it should be because a part of the home page.
81
00:05:14,550 --> 00:05:18,870
So they are going to return some things, and we will we will find out some issues.
82
00:05:20,130 --> 00:05:25,680
Go back to your coat, and I decided in the end that my extension here will be not the part of all of
83
00:05:25,680 --> 00:05:29,940
my pages extended here will be part only of my homepage.
84
00:05:31,200 --> 00:05:35,220
So remove it from Abdul to Viola's remove the exchange hero.
85
00:05:35,400 --> 00:05:36,530
Go to your home world view.
86
00:05:37,470 --> 00:05:39,120
And it's basically then he goes before.
87
00:05:39,120 --> 00:05:40,650
So let's face it here, extranjero.
88
00:05:42,530 --> 00:05:48,230
OK, now we need to, of course, get it from here to import exchange here, I will copy to remove it
89
00:05:48,230 --> 00:05:48,800
from here.
90
00:05:49,520 --> 00:05:52,190
I'll go back to home bill and I will import it here.
91
00:05:52,550 --> 00:05:57,020
Now again, we need to change the path which should be built on components, and I will get it to the
92
00:05:57,020 --> 00:06:03,980
components as it was before, because no accident here is only part of my exchange of my home view.
93
00:06:04,970 --> 00:06:09,620
I will go to the other view of this and I will save it.
94
00:06:10,190 --> 00:06:10,700
Perfect.
95
00:06:12,610 --> 00:06:17,050
Now, let's go back to browser, go to your home page and you can see how everything is working nice,
96
00:06:17,560 --> 00:06:21,280
it is playing hero everything as before, but never go to about page.
97
00:06:22,480 --> 00:06:24,160
Then about suddenly disappeared.
98
00:06:24,820 --> 00:06:26,590
And about about pages here.
99
00:06:27,780 --> 00:06:34,830
You are not partisan, disappeared by the stylings of your bar are adjusted to the fact that the hero
100
00:06:34,830 --> 00:06:36,090
component is behind it.
101
00:06:37,250 --> 00:06:42,440
And since then, I've gotten the a white order and you have a white background on your page, you are
102
00:06:42,440 --> 00:06:44,810
not seeing this component, but they are here and you will select them.
103
00:06:44,810 --> 00:06:45,800
You can see they are here.
104
00:06:47,720 --> 00:06:51,290
So that you can see the issue here on their home page, everything looks nice on their other pages,
105
00:06:51,290 --> 00:06:55,160
it doesn't because the standings of the numbers are not adjusted to the other pages.
106
00:06:56,170 --> 00:06:57,910
They have simply white the color of the text.
107
00:06:58,970 --> 00:07:03,320
So, guys, if you'll continue with this in the next lecture and I will show you how you can use zero
108
00:07:03,320 --> 00:07:09,700
elder plug in to determine mind on what page you are and conditionally change the stylings of the old
109
00:07:10,010 --> 00:07:11,750
butter by the go ahead to the next lecture you.
110
00:07:11,900 --> 00:07:18,710
This is actually that's actually intended behavior, so I'll see you in the next lecture.
111
00:07:18,770 --> 00:07:19,130
Yes.
10797
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.