Rock U - Websites - HTML Block
Transcribed Video Content
Okay. So let's look at the HTML block. This is probably one of the most powerful and often used blocks within Rock. And we're gonna actually cut this topic into two different videos, a basic and an advanced. So let's go ahead and look at what's possible with this block.
So here I am on a on a regular page. I have some HTML content here and it's inside the HTML block. And if I want to edit it, I'm just gonna go down to the block fly out and choose the edit. Now, what I see next is actually the edit surface for this content. It defaults in this case into a a code mode.
So I'm seeing the actual markup in HTML. But I can actually see it in more of a what you see is what you get mode, what's CWig. And there's a block setting to determine which of these is the default. So when I open it up, which one am I gonna see? So again, the default in this case was code, but I could change that.
And so now I'm in something that's a little bit Word. So a few things that you can do in here that are kinda cool. One is you can go ahead and look for images. Okay. So I wanna go ahead and find an image and plop it into my content.
That's a little big. So maybe resize that down. And maybe I don't really want it there. I want it down here. Another great thing you can do is you can actually upload documents and then you can link to them that way.
And I can also, which is actually my favorite piece of this is is actually look at merge fields. Now, anywhere in this HTML block, you can actually have Lava. One of the tricks with Lava is knowing, well, how do I get that merge field? How do I get that code, that Lava code into my HTML? And this is your simplest and easy to use cheat sheet.
Okay. So now I see all the data items that I have here. So I'm gonna go ahead and look under current person because maybe I wanna add their nickname of the currently logged in person. Okay. So I can come down here and choose nickname and go ahead and hit okay.
Okay. So now if I go back into code mode, I would actually just see all that markup that it generated for me. Okay. And maybe I might wanna rearrange this a little bit just to be able to see it. And that at its basic is what the HTML block does.
Look at the the next video which will be on some of the advanced settings because this block can do so much more than just editing just basic HTML.