0:00
come on
0:06
[Music]
0:10
hey guys so in this video we're going to
0:11
be looking at the clipboard
0:13
functionality that is baked into the
0:15
foundation button stack
0:17
currently this functionality is added to
0:20
just the foundation button just the
0:22
normal button and let's have a look at
0:25
how easy this is to do
0:27
so when you add a button stack to the
0:29
page you'll see that there is a function
0:31
where you can set the type to copy to
0:34
clipboard
0:35
now when you use this you can
0:36
essentially just type in whatever text
0:38
you want here and when the button is
0:41
clicked that text will be added to the
0:43
clipboard
0:45
so to demo this I'm just going to go
0:47
ahead and click this button and I have
0:48
this text area here just so we can paste
0:50
it in there
0:51
and voila you see we can paste
0:55
and just to show you this copy text
0:57
setting can actually take in HTML so
1:00
here we have an example where I put in a
1:02
ton of quasi-complex HTML and if we go
1:06
ahead and preview this I can click copy
1:08
HTML and as you see it is directly onto
1:11
my clipboard
1:13
now this might look intimidating if you
1:15
want to like paste in HTML here while
1:18
this does work there is a simpler
1:20
solution
1:21
and there's also a new setting for copy
1:24
template to clipboard
1:27
and you see when we select this we have
1:28
a container ID that we can use so what
1:31
is this all about
1:33
so on this page I have a container
1:37
and there's a few things we need to do
1:39
to set up and now this is just a normal
1:41
Foundation 6 container
1:44
and there's a few things we needed to do
1:45
we need to set the HTML tag to beat
1:47
template
1:49
we need to set the sizing to be no
1:51
wrapper
1:52
and then we set our anchor ID to be
1:55
whatever we want the ID of this template
1:57
to be
1:59
the ID that you set here needs to match
2:02
the ID that you set inside of the button
2:05
then essentially you can now build your
2:08
layout with whatever Stacks you want
2:12
and then when I click on the copy HTML
2:15
it'll actually copy the contents of this
2:18
container template
2:21
and what's great is whatever you add
2:23
inside of the template container
2:26
will not actually be displayed on the
2:28
page so here we see that this preview
2:31
looks identical I do not actually see
2:34
any of my templated content and neither
2:36
will Google or any search engines
2:39
however if I go ahead and click the copy
2:42
HTML button
2:43
and I paste you'll see that I actually
2:46
get the full HTML of that templated
2:50
container onto my clipboard
2:54
now you now you might be thinking why
2:56
would I ever want to do this
2:58
so let's show you a real life use case
3:00
example
3:02
so now this demo project is available to
3:05
download on the foundation product page
3:07
and we're going to look at the clipboard
3:09
plus total CMS template
3:12
page
3:14
so here's a use case where I have a
3:17
couple buttons
3:18
where we're actually going to copy
3:20
potentially a two column layout a three
3:22
column layout and a button
3:25
and down here I have the same things I
3:27
have a container built out for a two
3:29
column layout container for a three
3:31
column layout and a container for a
3:33
button
3:34
and up here I have a total CMS text
3:37
admin area
3:38
um set to be a style text editor
3:41
now one thing you're going to want to do
3:43
is in the admin core you're going to
3:45
want to make sure that you set up the
3:46
HTML button to display for hip wig
3:50
let's play around so here we are I've
3:52
previewed the page you'll see that I
3:54
have three buttons here to copy my
3:56
templates I can go ahead and maybe let's
3:58
add in some text
4:00
okay and
4:02
um let's say I want to be able to let's
4:04
do two lines of text okay and let's say
4:07
maybe I want to have a button right here
4:10
so I can do is I can copy the temp the
4:13
button template just by clicking that
4:16
and then let's go ahead and I'm going to
4:18
go into code View and what I'm going to
4:20
do is I'm just going to paste in
4:23
um what we have here I'm going to go
4:25
ahead and let's exit code View and I now
4:27
I have my button
4:29
right really great and now this is a
4:31
link button and I can go ahead and edit
4:34
this link and I can edit the URL and the
4:36
button text right
4:38
um link to URL okay and then I can put
4:41
in my URL let's do like
4:44
Weaver space
4:47
okay
4:50
we can open in a new tab if you want
4:51
click update and there we go I mean so
4:54
now I have full control over that button
4:56
using the native hip wig controls pretty
4:59
slick
5:01
now what if I wanted to have a two
5:03
column layout I'm going to go ahead and
5:04
click the copy to column and then I'm
5:06
going to go into here and let's say
5:10
maybe after this first paragraph I want
5:12
to put in a two column layout so I'm
5:14
going to paste that in there let's exit
5:16
code View and now I have my two column
5:19
layout that I can then you know
5:21
um
5:25
I can go ahead and edit that
5:27
column one column two and we can edit
5:29
all this text right
5:31
I could do the same thing with a three
5:33
column layout so maybe below this I want
5:34
to have a three column so let's go ahead
5:36
and I will do uh copy my three column
5:39
layout and uh maybe actually where all
5:42
this is I just want to paste in my three
5:44
column and let's exit
5:46
and now I have there we go I have a
5:49
full-blown text a two column some more
5:52
text and a three column and then my
5:54
button right so this is a really
5:56
powerful way to take kind of hip wig and
6:00
total CMS really to the next level using
6:02
this copy to clipboard functionality
6:04
there's all kinds of things you can do
6:05
maybe you have a templates button that
6:08
launches the light box where you can
6:09
then copy you know click on various
6:12
buttons that will copy the template
6:14
um all kinds of layouts but the core
6:17
concept is the same we we build out some
6:19
templates we copy those templates and
6:21
then we can then add those templated
6:23
layouts and edit the content directly
6:26
inside hip wig
6:28
now I strongly urge if you like this
6:30
kind of this concept of integrating HTML
6:33
and templates inside of hip wig go to
6:35
our YouTube channel and in the live tab
6:38
or you can search
6:39
um there's a video that I did a few
6:41
months ago from my recording here called
6:43
Advanced style text in total CMS
6:46
and this is a great video that goes more
6:49
into depth of what we're doing right now
6:51
with hip wig so definitely check out
6:54
that video
6:55
um I implemented this copy to clipboard
6:58
functionality kind of after I did that
7:00
video because I thought it was a really
7:02
genius way to copy these templates and
7:06
allow your customers the access need
7:08
give you them the ability to create
7:10
different layouts and content within hip
7:12
wig
7:19
[Music]