The next thing I'd like to do on this Web site is add a link to my navigation
that will encourage people to sign up, and become distributors.
I'd like that link to show in the navigation if you're just visiting the
Web site, and you're not logged in at all,
but if you log in to the Web site, and you've already defined that if you log
in, you're a distributor, then I would like that link to become a distributor to disappear.
You've already signed up as a distributor, so there's no need for you to
see that link at all.
So, I would like to go ahead and do that now, and I am going to do it using the
Guest level permission.
So, I'm going to hop into my back-end of Joomla
here, and I am going to do exactly what I just did in the previous video.
I am going to make a category, an article, and a menu Item for this particular
page that will talk about becoming a distributor.
I am going to configure things with the Guest level access.
Then I'll show you how that works on the front-end.
So I am going to start by going to Content > Category Manager,
I am going to add a new category, and the title will be Guest Level Items.
I'm going to set the Parent here to be English, and my Language will be
English, and my Access level in this case is going to be Guest.
So, I am going to set my Access level here to Guest.
And once again, as I explained before, that Access level that I set on the
category will cascade down, and be inherited by any articles that are contained
within this category.
So I am going to go ahead and say Save & Close, and there is my Guest
Level Items down here.
Okay, so now I am going to add an article.
So I am going to switch over to my Article Manager, click on my New Button,
and in your Exercise Files, I have given you this text here.
So the Title of this article is going to be Become a KinetECO Distributor, and
the Category for this, of course, is Guest Level Items, and I'm going to copy and
paste in my text here;
so Ctrl or Command+Z, Ctrl or Command+V to paste that on in.
And then scrolling on down here, over on the side, my Access level is going to be
Guest again, and my Language is going to be English.
And yes, although it inherited the Guest Access level from the category, I like
to label all of my articles with their access levels as well;
it may help me later in debugging.
If I leave everything set to Public, sometimes I get confused about what level
is actually inherited by each of these individual articles.
So I am going to go ahead and say Save & Close.
So, as you see here, there's my new article; it's called Become a
KinetECO Distributor.
It's in the Category of Guest Level Items, with an Access level of Guest, and the
Language of English.
Now I am going to go ahead and link this up to the Web site.
Categories, articles, menus;
menu is the next thing to do.
So I am going to go to Menus > English Menu, and I am going to make a new menu
item by clicking the New button.
And my Menu Item Type, I am going to hit my Select button here, under Articles,
just a Single Article. Which article am I going to select,? It's going to be
Become a KinetECO Distributor.
So I am going to go ahead and select that.
I am just going to say Become a Distributor, because the title with KinetECO in
it is just a little bit long.
This is going to go on the English menu.
I want it at the Menu Item Root.
And my Language will be English, and then over here, my Access level will be a Guest level.
And that is very important; you definitely need to set your Access level on
your menu item, because menu items are handled differently than the content, and the articles are.
So, even though this is available to anyone who is not logged in to the
Web site, by setting the Access level to Guest, what will happen is, if you are
logged in to the Web site, by setting your menu item to an Access level of Guest,
you're ensuring that this menu item will disappear when somebody is logged in to the Web site.
Okay, go ahead and say Save & Close.
Now when I come to the front-end of the Web site, and I refresh, here's my link
for Become a Distributor.
When I click on that, I have my Become a Distributor Web page. That's great!
Now, when I go down here to Login, and I log in, let's say, as Joe, with a Password
of 123456, and I say Login,
notice that my link over here that was called Become a Distributor has
disappeared, and I now have a link that is For Distributors. Very cool!
And if I happen to log out of the Web site again, clicking on the Login link down
here on the bottom, clicking on the Log out button, my link switches back to
Become a Distributor.
So that is really quite awesome.
And so the guest functionality that's now built into Joomla! 3
is incredibly helpful.