►
From YouTube: Conditional Content Block - Module
Description
This is a cool little module that I developed that allows you to show one message to users with one role and a different message to users with a different role.
Check it out and let me know what you think.
A
Hello,
my
name
is
tim
erickson
and
I'm
here
with
simplo
by
triplo
today
to
talk
about
a
brand
new
module
that
I've
been
working
on
myself.
A
This
module
is
called
the
conditional
content
block
module
and
if
anybody
has
better
name
suggestions,
please
let
me
know,
but
that's
what
it's
called
for
now
and
probably
will
be
in
the
future,
the
conditional
content
block
and
what
this
is,
is
it's
a
module
that
will
allow
you
to
create
one
block
that
will
show
some
content
to
one
type
of
user
and
a
different
set
of
content
to
a
different
type
of
user.
There
are
other
ways
of
accomplishing
this
in
backdrop.
However,
this
module
will
make
it
a
bit
easier
in
the
future.
A
It
may
also
offer
other
conditions,
besides
just
by
user,
but
for
now
that's
what
we
have
in
mind
now.
Let
me
give
you
a
quick
use
case
for
this
module,
and
this
is
a
website
that
I've
a
sort
of
a
demo
website
that
I've
been
working
on
with
a
colleague
to
show
off
and
train
people
on
building
backdrop
sites,
and
it's
a
fictional
farmers
market.
A
A
We
used
some
other
external
modules
so
that,
if
you
are
logged
in
as
a
regular
user,
you
can
create
a
vendor
application
or
basically
a
vendor
node.
So
there's
a
content
type
called
vendor
and
as
a
regular
user
I
can
create
a
vendor
node.
I
can't
publish
it
when
I
get
to
the
bottom,
I
can
save
it,
I
won't
be
able
to
publish
it,
somebody
else
will
have
to
publish
it
and
I
can't
create
any
other
kind
of
contact.
I
can
create
this
one
kind
of
content,
but
that's
it.
A
A
Basically,
we
have
already
and
installed
the
module,
so
I
can
go
to
the
layouts,
I'm
going
to
go
to
the
home
page
layout
and
what
there
is
no
other
configuration
for
this,
this
module
at
this
time,
but
what
it
does
do
is
it
creates
the
a
new
block
type
called,
and
I've
got
a
bunch
of
modules
installed
here.
So
we're
seeing
lots
of
stuff
a
conditional
content
block.
A
I
don't
want
to
show
anything
and
basically
you'll
see,
there's
two
sort
of
text
fields
here,
two
content
fields:
it's
not
just
text.
We
can
also
put
images
other
things
in
here
and
there's
two
roles,
and
I
might
you
know
some
of
the
changes
you
might
see
in
this
module
in
the
near
future
are
renaming
some
of
these
labels,
but
for
now
I
can
pick
which
role
I
want
to
see
the
first
message
and
which
role
the
second.
This
is
pretty
straightforward.
A
I
just
want
anonymous
users
to
see
this
one
and
authenticated
users
to
see
this
one
and
I'm
going
to
put
a
message:
let's
just
create
a
little
link
that
says,
become
a
vendor
and
I'm
going
to
put
that
down
here
too,
I'm
going
to
replace
the
default
messages
for
both
of
these
I'm
also
going
to
center
both
of
these
and
what
I
should
have
done
here.
I
think
I
can
do
it
here.
I
want
to
go
get
that
link
the
link
to
this
page.
A
So
this
page
is
node,
add
vendor,
so
we're
going
to
go
back
here
and
we're
going
to
link
make
both
of
these
link
to
that
page.
I
wouldn't
you
know.
Technically,
I
don't
know
if
I'd
want
to
create
this
link
for
an
anonymous
user,
but
I'm
going
to
provide
some
help
text.
So
I
think
I
can
get
away
with
it
here
and
basically
underneath
this,
I'm
now
going
to
put
a
message:
you
must
log
in
or
create
it
or
you
can
apply
to
be
a
offender.
A
I
think
I'm
just
gonna
not
have
any
message
on
the
other,
the
other
block
or
the
other
text
I'm
going
to
do.
One
more
thing
here
is
I'd
like
to
make
style
these
to
look
like
buttons
and
oops.
That's
not
what
I
want
to
do.
What
I
want
to
do
is
click
on
source
and
for
those
who
don't
know
that
this,
depending
on
your
theme,
you
can
often
just
add
a
class
to
a
link
class
equals
button.
A
So
hopefully
you
know
a
little
bit
about
css
and
what
classes
are
and
classes
help
us
style
and
make
the
appearance
of
our
site,
and
this
theme
is
already
configured,
so
it
knows
what
a
button
anything
with
a
class
of
button.
It
knows
what
that
should
look
like.
So
I
can
just
add
that
class
to
this
I'm
going
to
want
to
click
out
of
that
come
down
here
and
do
the
same
thing
here.
A
There
we
go
and
now
I'm
going
to
add
this
block,
I'm
going
to
go
ahead
and
save
my
layout
we're
going
to
go
to
the
home
page
and
see
if
this
all
work
we
go
to
the
bottom,
and
now
we
are
logged
in
right
now
there
is
a
become
a
vendor
link
which
takes
us
to
that
page.
But
this
is
us
logged
in
as
an
admin.
A
Let's
go
here
and
also
try
the
same
thing
go
to
the
front
page.
Now
I'm
logged
in
as
a
regular
user.
I
still
I
was
before
there.
We
go
become
a
vendor
that
still
takes
me
to
that
page.
But
now
I'm
going
to
log
out
and
I'm
going
to
come
down
here
and
there
is
my
there's
my
little
link
in
my
button,
but
with
my
message
you
must
log
in
or
create
an
account
before
you
can
apply
to
be
a
vendor.
A
So
if
I
click
on
this
right
now,
I'm
going
to
get
access
denied.
This
is
some
other
testing.
I
was
doing
on
the
site,
sorry
about
that,
but
anyways
yeah.
Basically,
we
just
have
a
slightly
different
block.
You
know
we
could
actually
maybe
for
unauthenticated
users.
We
have
this
link,
go
to
the
user
page
instead
or
something
useful.
A
It's
not
really
useful
to
give
them
a
link,
that's
just
broken,
but
at
least
I
was
able
to
provide
them
a
message
about
why
it's
broken
before
they
click
on
it,
and
certainly
you
can
make
better
use
of
this
button
once
you
go,
so
I'm
going
to
quickly
go
back
and
once
again
show
you
that
all
of
this
module
does
it.
This
time
is
under
the
layout
menu.
A
Is
it
makes
this
new
block
type
called
a
conditional
content
block
available
to
you
that
this
block
type
basically
just
gives
you
two
content
or
text
fields
that
you
can
assign
to
different
roles
and
you'll
see?
I
could
pick
any
role
in
my
system,
so
I
could
assign
a
particular
message
to
a
particular
to
to
well.
We
have
a
role
called
market
editor.
A
These
are
other
roles
for
other
purposes.
So
again,
we
might
add
other
conditions
possible
conditions
to
these
blocks
in
the
future
or
add
the
ability
to
create
even
a
third
different
type
of
condition,
so
that
we
could
have
three
different
messages
for
three
different
roles.
That
might
be
another
option
here.
Please
let
us
know
in
the
comments,
if
you
think
this
module
would
be
helpful
to
you
and
or
how
we
could
make
it
better.
So
that's
it
for
now
I
will
catch
you
in
the
next
video.
Thank
you.