Now that we have a user available to take a look at content on the front-end
of the Web site, now I'd like to create some content that's going to go on the
front-end of the Web site that will be visible only to those who are logged
in to the front-end.
So that would cover both our distributor, and it would also cover, of course,
ourselves, as Super Users.
We could also log in, and see this content.
So I am going to go ahead and configure that now.
The best way to do this is to start with a new category, and then I am going to
create an article, and I am going to create a menu item.
So I am going to walk you through what makes this process just slightly
different than what you've already seen in Joomla before.
So I am going to start by making a category.
I am going to go to Content > Category Manager, and I am going to make a new
category by clicking the New button.
I am going to call this For Distributors, and I am going to scroll on down the
page here, and I am going to set the Parent to the English category.
I am going to set the Language to English.
The key thing that I am going to need to be sure that I do here is under Access.
Right now this is set to Public, meaning that anybody can see this information.
I actually want this information to only be available to those who are logged in.
So this is my Access level dropdown here. I am going to switch this to Registered.
In other words, all of the content that's located inside of this category will
only be available to Registered users.
Because the articles are assigned to this category, this access level will be
inherited by the articles that are located there.
So when you set your category to have a Registered access level, any
articles that are located inside of that category will also have that same
Registered access level.
So I am going to go ahead and say Save & Close.
And there is For Distributors link down here in the English part of the Web site.
Now I am going to make a new article, so I am going to go to Content > Article
Manager > Add New Article.
I am going to take a look at the text I've given you here.
It's inside of your Exercise Files, and this will be For Distributors.
So I am going to copy that on over, For Distributors, and my Category is going to
be For Distributors.
Then I am going to copy and paste in my text here; Copy, Paste, and I am
going to do a quick little bit of formatting here. And I am going to make
sure that this item here for Weekly Special, I am going to set that to have an H2; there we go.
In fact, Weekly Special, let's make it have an H3, and we'll have
Welcome here as an H2.
And now the last thing that I am going to do is, over here on the side under
Details, the Access level is set to Public.
Now, I just told you that any time we have an article assigned to the category,
and the category has the Access level of Registered,
any of the articles that are located inside of it will also have an Access
level of Registered.
I am going to go ahead and set my Access level here anyway, and the reason why
is, it's very easy when you were debugging ACL to see these articles set to
have an Access level of Public, but in fact, they are inheriting an access
level from someplace else.
And so what I'd rather do is go ahead and say my Access level is for Registered
users, and then I am clear on what exactly the access level is.
So I am going to go ahead and set that there, and I am going to set my Language
to English as well, and then I am going to go ahead and say Save & Close.
So now I have my For Distributors article right here. You can see that it is a
Registered access level, and that it is English, and then of course, this is in
the category of For Distributors.
Categories, articles, and menus, so the next thing we must do is make a menu item.
So I am going to go to Menus, and I am going to put this on the English menu.
I am going to add a new menu item, and this is just going to be a link to a single article.
So this is going to go to Articles > Single Article.
Which article am I going to select?
Well, the one called For Distributors.
I'll type in my Menu Title, which will be For Distributors, and it's going to be
on the English menu.
I want it at tat the same level as the homepage, so Menu Item Root is just fine here.
My Access level does need to be set for this menu item.
It is possible to have a menu item that is set to Access of Public, but the
content behind it will have an Access, say, of Registered.
And if that you have that situation, and you are visiting the Web site not
logged in, you will see the link that says For Distributors.
When you click on it you'll get a message saying you're not authorized to
access that content.
Now, that's probably bad user experience in almost every Web site.
Some people like this feature in Joomla,
because they could, let's say they are running a site with paid content on it,
and they want to encourage people to register for the Web site to see that
content behind the paywall, they might use this feature here in Joomla
so that people could see that there's tons, and tons, and tons of content there,
they could see the menu names, but when they click on things they are told that
they can't access that particular information.
But on this site, I think it's just bad user experience.
So I am going to go ahead and set this to Registered, and what that means is
that this menu item won't even appear unless you're logged in to the
front-end of the Web site.
Okay, so if we go ahead and we say Save & Close, this is showing me the Main
menu for some reason, but if I go back to my English menu, I should see For
Distributors down here at the bottom of the page, and you can see that it is a Registered link.
Oops!
And I see that I forgot to set my Language on the link, so let me just
switch that real quick.
My Language should be set to English.
Go ahead and say Save & Close.
I always like checking things here in my manager before I go forward, because it
gives me that double-check to make sure I've configured everything correctly.
Now I'm going to come here to the front-end of my Web site.
I'm going to go to my Home page, and I can see this link here: For Distributors.
Why can I see this?
Well, back a few videos ago, I had logged in to the front-end of the Web site, and
because I am still logged in, I can click on this link For Distributors, and I can see my page.
There we go; there is my Weekly Special.
But if I go back to my Login screen, and I click the Log out button, that link For
Distributors will disappear.
If I am logged in as Super admin, with my User Name of admin, my Password of
admin, and I login, I can also see this For Distributors link.
But if I go back to the Login page down here on the bottom, and I click on
Log out I won't see it anymore.
So you do have to be logged in to the front-end of the Web site to see that link,
and to access that content.