Hello, friend, and welcome back in a previous video I have already discussed about that, things with
you, how can add that bootstrap into the triangle?
So now in this video, I want to discuss about how can I inherited this template for doing this.
Better to do to create some of the piece like that is our home page.
And also, if you go to that about I have already created one of the world's about and here before I
have passed on the TDB response data.
Right.
So here I also want to Lautz on the template for the board and also for the contact.
So I know better.
I just simply will be it will be it.
And the racial profiling stimuli will be OK.
So now into that template area, so into the main template area.
I want to create some of the file I create.
I want to ask about all this HTML and also I want to create another one for the contact contact as well.
So just simply save it.
And now in our index I just simply copy everything from here and now in our about us.
I just simply pasted Cecil Will as a about face.
Right.
It will be as about Pei's and also you have to update the title and that will be our contact.
So better I just simply copy everything from the index and in our contact to General Assembly passed
it, which will be as a contact right.
Contact space and also still be as a contact piece.
Right now I just click the Savol.
So now also we have to do have to load it, we have to load it in our portfolio.
If we go to that you I have already created all the what as about the result, contact us.
And here is the view idea.
I have already created all that our function that is about function and the contact function.
So now go to our portfolio and that is our views here.
You can see I posit that things with our response now to actually proceed with our render.
So here I just simply palsied and also here I pass it.
So with this render request, first of all, I want to look for our about one shall will be redacted.
All about my thoughts will be lowered, our about estimate about that decimal.
Right.
And also have created another one.
As for the contact, that will be as a contact list.
So now if you click at the all and now if you refresh it.
Yeah.
You can see surpassingly getting a bootstrap and that is all about pace.
And if you go to that contact, contact us.
That is a Gloriavale here.
You can see so perfectly that our contact space space.
Perfect.
So now I want to do an inheritance because of all.
As I told you, you can see every time we have to write the same code.
So that is all that is set aside.
So if you want to update anything in your menu area, you have to update it.
In our estimate, Bayes into the Pontac base.
Write every position.
We have to update it.
So right now, I don't want to a display like that here.
I want to use that inheritance.
That means here I want to actually manage that our segment, our header part differently.
So I show you then it'll be very much clear to you.
So right now, for doing this into the template, into the template folder area on the page of the new
file.
And here I named one of the file as a layout estimator.
So I just simply save it.
And here you noticed one thing like here you can see every time our header is the same for the contact
us for the about for the about every time our haidary same only our dispositioned that means or this
part is different.
Right.
And if you go to our home you can see our header is the same, only our this part is different.
So for the business here I want to do and take that out.
This never let me this put this network differently.
So into the template area, better indexes html.
I just simply copy everything.
And here in our layouts here I just simply paste it.
So here I have better, I make the things as the PSP.
So that is the BHB.
OK, so now you can see that these are all that bootstrap CDN just fine and that is our neighbor.
That neighbor will be common for debris pages.
The title will be common for the pages and also that is our city end up in the city and access for the
bootstrap.
Right.
So here only we have to do we have to update our dispositioned that this portion will be dynamically
changed for our Web pages.
So for the regions here, I want to do I want to make that as a dynamic.
So in Laravel, actually, if you only knew about Lilibet, we have actually connected with our yeild.
So into the jungle.
How we can do that work is pretty simple here.
You have to do the CARLEBACH the the double.
Our cities with the development centers here, you have to create one of the block, that is which position
you want to update always, which position you want to admit.
So here you have to add the things with the block.
So I just simply added that as a block.
And then you have to do we have to maybe that means you have to name that block so you can name whatever
you want if you want to name the change.
OK, if you want to name that, the change is perfectly OK right then.
Right now I'm actually using the container.
OK, so you can also use that content.
So they told you it depends on you.
It's not like that.
You have to use that container, whatever the things you choose.
You can choose that name.
That means this block name.
And also here we have to do we have to end this block.
So with the same color bracket and the double percentages and you have to end this block.
OK, so I just simply add this block.
Perfect.
That means right now, whatever the things will put in this position will be our dynamic place.
So that is actually our block I have created and I just put that block name as a content.
So right now, if you that is our index piece right now.
I want to do our index e-mail here.
I just simply remove everything.
OK, so now I have because I save all and now if you refresh it, narcosis, not totally blank.
So here now, first of all, we have to do we have to extend it.
We have to extend our this layout because of all the layout area.
I have already all that our bootstrap CDN.
Right.
That is a neighbor and then the real success also.
So first of all, here we have to do we have to take out this layout.
So I just simply want to do undertake that layout with the Double-Click bracket and then the percentages.
And then you have to add that to the extent that the extent of that is actually the most common things,
we will use a lot of the time with the same concept.
OK, so that is the main procedure.
So you have to add that extents and into the extent of which file you want to extend.
I want to extend our this layout this.
So I just simply added as a layout dot estimates, I just simply extend our this is our estimate.
So you don't if you click the save all and now that is our index HTML.
And now if you refresh it, you can see into the layout's area we get all the TurboChef and also get
that our part right.
But our content part is not totally blank because of all here I want to do I make that things as a dynamic.
So that is a clever, dynamic part.
I have all it with the creator of the blog and I just named that blog as a content.
So now with this blog, we can actually mention our different based like here into the index.
OK, so here after that here I want to do I want to add our SEM blog.
That means I have created that blog.
So that is our blog and the blog area.
I put that name blog as a content.
Right.
So that is our content blog.
And also here we have to do we have to finish it.
So I just simply finish our and blog so that our end blog and here I want to do I want to show one of
the S to the tag.
And here I want to display I want to display our same things, like if you go talk about here, I have
created one of the the right.
So now I just simply copy it.
I want to load our disposition that we saw Dave class in particular this block area.
OK, so now what exactly should we do?
So that will be our home page.
The better I name it as a home, that means you should be as a homepage.
Now, if you click the save ball and now if you refresh it, yes.
You can see it's now perfectly getting our D day.
So how much easier it is now can see that now they have only the little shortcode.
And also our this part is not a dynamic that we saw layout for common for our Web pages and now also
on to do the same things for our about Sabater.
I just simply copied Ghadar about and here we don't need to write this code, I just simply remove everything
it I extend our layouts fast and then in our block content area I take one of the tape.
So whatever the things will put in particular that area, it should be updated.
OK, after that Meiburg that means this portion is for apart and after that maybe it should be this
portion of this block will be updated.
OK, so that will be our about that will be our about base.
And now I just simply copy it and that will be our contact.
I just simply posted that will be our contact.
OK, that will be our contact base, and now if you click the save all and now your freshet and now
if you access our about, yes, you can see we are perfectly loaded.
What about if you use that one to access that contact, contact us perfectly loaded, our contact,
our space.
And also I have created another one of the employee.
Right.
So that is the employee profile so that the employee profile right now also on the disposition.
So here I have used a lot of the code.
That means if you go to our employee, so that is our employee folder, there is a profile.
It's generally because a lot of the code so that, no, we don't need it, everything will get from
our extent.
So now I just simply copy from here and go to our profile, updated, cancel it and passed it.
So here will be as a profile.
OK, profile page.
No click as a save all.
No, refresh it.
Yeah, you can see it's not pretty the same logic and also Harrisville to change the rules of the uptakes
gender.
OK, that class as a danger, so sorry, that will be the next danger.
So just name it as a text and save and refresh it here.
You can see it's perfectly updated.
I hope you can well understand about it.
Friends, right now I have only our this part.
That means that I just simply inherited and now you can see how much easily we can actually do that
work.
So now with the simple code that without this block we can actually inherit our all that base, I hope
friend is very much clear to you.
So everything in our layout area and here I have created that blog and now I just simply load out this
blog portion I hope is very much clear to your friend.
And also here they have on things like if you go to our title in the title area, all of it's showing
as the home page.
If you go to that our about base.
Now, you can see for about pages also showing as a title because of all that is our accounts from our
where which places accounts for our layout.
Right.
And into the layout.
That is the common.
So that is the layout is come on into the layout here.
You consider the title.
So if you also want to make the things dynamic, you can also create another block.
It'll be just like that.
Same here for the title.
I want to make the things the dynamic that we say here I want to create another block is pretty simple
things as a block, OK?
I just name it as a block name whatever you want to.
Just name it as a title.
OK, that will be our block title.
And also after that we have to do we have to finish it.
That means the end block.
OK, so to simply and this block so we can actually update our D block, that means that we can actually
use it for our index.
So for the index here before this block here, I want to make the things as a this is home base.
OK, this is home based.
Now if you click on the Savon now if you refresh it.
Now go to our home, you can see snowshoeing as a this is home base and also for the about, I want
to update it, so I just simply copy it for about here.
I just simply passed it and I just name it as a this is about base, OK?
This is about peace or just about peace.
Now if you like, as a Savol.
Now if you refresh it, go to our about.
Yup.
You can see it's not perfectly show our about base.
And also I want to do the same things for our contact.
So that will be our contact base and also for the profile.
I just simply added that profile.
It will be as a profile base.
OK, this should be the profile page.
No click as I say.
Well, now if you refresh it and go to our contact us.
Yeah, you can see suffering and contact us if you go to that profile that is in our employee employee
profile.
Yeah, you can see it's not perfectly sure.
Our title updated as a profile.
That means a profile piece.
So, friend, I hope you can well understand about it.
How can inherited your pace?
So don't worry little.
We will go more deep and we will learn more about it, you know, next video and discuss about that
you all pattern in Django.
So thanks for watching and I'll see you in the next video.