1 00:00:00,000 --> 00:00:05,000 Now that we have a user available to take a look at content on the front-end 2 00:00:05,000 --> 00:00:09,000 of the Web site, now I'd like to create some content that's going to go on the 3 00:00:09,000 --> 00:00:12,000 front-end of the Web site that will be visible only to those who are logged 4 00:00:12,000 --> 00:00:13,000 in to the front-end. 5 00:00:13,000 --> 00:00:18,000 So that would cover both our distributor, and it would also cover, of course, 6 00:00:18,000 --> 00:00:19,000 ourselves, as Super Users. 7 00:00:19,000 --> 00:00:22,000 We could also log in, and see this content. 8 00:00:22,000 --> 00:00:24,000 So I am going to go ahead and configure that now. 9 00:00:24,000 --> 00:00:29,000 The best way to do this is to start with a new category, and then I am going to 10 00:00:29,000 --> 00:00:32,000 create an article, and I am going to create a menu item. 11 00:00:32,000 --> 00:00:36,000 So I am going to walk you through what makes this process just slightly 12 00:00:36,000 --> 00:00:38,000 different than what you've already seen in Joomla before. 13 00:00:38,000 --> 00:00:40,000 So I am going to start by making a category. 14 00:00:40,000 --> 00:00:45,000 I am going to go to Content > Category Manager, and I am going to make a new 15 00:00:45,000 --> 00:00:46,000 category by clicking the New button. 16 00:00:46,000 --> 00:00:51,000 I am going to call this For Distributors, and I am going to scroll on down the 17 00:00:51,000 --> 00:00:55,000 page here, and I am going to set the Parent to the English category. 18 00:00:55,000 --> 00:00:58,000 I am going to set the Language to English. 19 00:00:58,000 --> 00:01:04,000 The key thing that I am going to need to be sure that I do here is under Access. 20 00:01:04,000 --> 00:01:08,000 Right now this is set to Public, meaning that anybody can see this information. 21 00:01:08,000 --> 00:01:13,000 I actually want this information to only be available to those who are logged in. 22 00:01:13,000 --> 00:01:18,000 So this is my Access level dropdown here. I am going to switch this to Registered. 23 00:01:18,000 --> 00:01:23,000 In other words, all of the content that's located inside of this category will 24 00:01:23,000 --> 00:01:26,000 only be available to Registered users. 25 00:01:26,000 --> 00:01:30,000 Because the articles are assigned to this category, this access level will be 26 00:01:30,000 --> 00:01:33,000 inherited by the articles that are located there. 27 00:01:33,000 --> 00:01:37,000 So when you set your category to have a Registered access level, any 28 00:01:37,000 --> 00:01:40,000 articles that are located inside of that category will also have that same 29 00:01:40,000 --> 00:01:42,000 Registered access level. 30 00:01:42,000 --> 00:01:45,000 So I am going to go ahead and say Save & Close. 31 00:01:45,000 --> 00:01:49,000 And there is For Distributors link down here in the English part of the Web site. 32 00:01:49,000 --> 00:01:54,000 Now I am going to make a new article, so I am going to go to Content > Article 33 00:01:54,000 --> 00:01:55,000 Manager > Add New Article. 34 00:01:55,000 --> 00:02:00,000 I am going to take a look at the text I've given you here. 35 00:02:00,000 --> 00:02:04,000 It's inside of your Exercise Files, and this will be For Distributors. 36 00:02:04,000 --> 00:02:10,000 So I am going to copy that on over, For Distributors, and my Category is going to 37 00:02:10,000 --> 00:02:13,000 be For Distributors. 38 00:02:13,000 --> 00:02:19,000 Then I am going to copy and paste in my text here; Copy, Paste, and I am 39 00:02:19,000 --> 00:02:26,000 going to do a quick little bit of formatting here. And I am going to make 40 00:02:26,000 --> 00:02:33,000 sure that this item here for Weekly Special, I am going to set that to have an H2; there we go. 41 00:02:33,000 --> 00:02:39,000 In fact, Weekly Special, let's make it have an H3, and we'll have 42 00:02:39,000 --> 00:02:40,000 Welcome here as an H2. 43 00:02:40,000 --> 00:02:45,000 And now the last thing that I am going to do is, over here on the side under 44 00:02:45,000 --> 00:02:47,000 Details, the Access level is set to Public. 45 00:02:47,000 --> 00:02:52,000 Now, I just told you that any time we have an article assigned to the category, 46 00:02:52,000 --> 00:02:55,000 and the category has the Access level of Registered, 47 00:02:55,000 --> 00:02:58,000 any of the articles that are located inside of it will also have an Access 48 00:02:58,000 --> 00:02:59,000 level of Registered. 49 00:02:59,000 --> 00:03:03,000 I am going to go ahead and set my Access level here anyway, and the reason why 50 00:03:03,000 --> 00:03:09,000 is, it's very easy when you were debugging ACL to see these articles set to 51 00:03:09,000 --> 00:03:13,000 have an Access level of Public, but in fact, they are inheriting an access 52 00:03:13,000 --> 00:03:14,000 level from someplace else. 53 00:03:14,000 --> 00:03:18,000 And so what I'd rather do is go ahead and say my Access level is for Registered 54 00:03:18,000 --> 00:03:23,000 users, and then I am clear on what exactly the access level is. 55 00:03:23,000 --> 00:03:27,000 So I am going to go ahead and set that there, and I am going to set my Language 56 00:03:27,000 --> 00:03:31,000 to English as well, and then I am going to go ahead and say Save & Close. 57 00:03:31,000 --> 00:03:37,000 So now I have my For Distributors article right here. You can see that it is a 58 00:03:37,000 --> 00:03:40,000 Registered access level, and that it is English, and then of course, this is in 59 00:03:40,000 --> 00:03:42,000 the category of For Distributors. 60 00:03:42,000 --> 00:03:46,000 Categories, articles, and menus, so the next thing we must do is make a menu item. 61 00:03:46,000 --> 00:03:51,000 So I am going to go to Menus, and I am going to put this on the English menu. 62 00:03:51,000 --> 00:03:56,000 I am going to add a new menu item, and this is just going to be a link to a single article. 63 00:03:56,000 --> 00:04:01,000 So this is going to go to Articles > Single Article. 64 00:04:01,000 --> 00:04:02,000 Which article am I going to select? 65 00:04:02,000 --> 00:04:05,000 Well, the one called For Distributors. 66 00:04:05,000 --> 00:04:09,000 I'll type in my Menu Title, which will be For Distributors, and it's going to be 67 00:04:09,000 --> 00:04:10,000 on the English menu. 68 00:04:10,000 --> 00:04:16,000 I want it at tat the same level as the homepage, so Menu Item Root is just fine here. 69 00:04:16,000 --> 00:04:20,000 My Access level does need to be set for this menu item. 70 00:04:20,000 --> 00:04:25,000 It is possible to have a menu item that is set to Access of Public, but the 71 00:04:25,000 --> 00:04:28,000 content behind it will have an Access, say, of Registered. 72 00:04:28,000 --> 00:04:32,000 And if that you have that situation, and you are visiting the Web site not 73 00:04:32,000 --> 00:04:36,000 logged in, you will see the link that says For Distributors. 74 00:04:36,000 --> 00:04:38,000 When you click on it you'll get a message saying you're not authorized to 75 00:04:38,000 --> 00:04:40,000 access that content. 76 00:04:40,000 --> 00:04:45,000 Now, that's probably bad user experience in almost every Web site. 77 00:04:45,000 --> 00:04:47,000 Some people like this feature in Joomla, 78 00:04:47,000 --> 00:04:50,000 because they could, let's say they are running a site with paid content on it, 79 00:04:50,000 --> 00:04:54,000 and they want to encourage people to register for the Web site to see that 80 00:04:54,000 --> 00:04:58,000 content behind the paywall, they might use this feature here in Joomla 81 00:04:58,000 --> 00:05:02,000 so that people could see that there's tons, and tons, and tons of content there, 82 00:05:02,000 --> 00:05:06,000 they could see the menu names, but when they click on things they are told that 83 00:05:06,000 --> 00:05:09,000 they can't access that particular information. 84 00:05:09,000 --> 00:05:12,000 But on this site, I think it's just bad user experience. 85 00:05:12,000 --> 00:05:15,000 So I am going to go ahead and set this to Registered, and what that means is 86 00:05:15,000 --> 00:05:19,000 that this menu item won't even appear unless you're logged in to the 87 00:05:19,000 --> 00:05:20,000 front-end of the Web site. 88 00:05:20,000 --> 00:05:25,000 Okay, so if we go ahead and we say Save & Close, this is showing me the Main 89 00:05:25,000 --> 00:05:30,000 menu for some reason, but if I go back to my English menu, I should see For 90 00:05:30,000 --> 00:05:34,000 Distributors down here at the bottom of the page, and you can see that it is a Registered link. 91 00:05:34,000 --> 00:05:35,000 Oops! 92 00:05:35,000 --> 00:05:38,000 And I see that I forgot to set my Language on the link, so let me just 93 00:05:38,000 --> 00:05:39,000 switch that real quick. 94 00:05:39,000 --> 00:05:41,000 My Language should be set to English. 95 00:05:41,000 --> 00:05:43,000 Go ahead and say Save & Close. 96 00:05:43,000 --> 00:05:47,000 I always like checking things here in my manager before I go forward, because it 97 00:05:47,000 --> 00:05:49,000 gives me that double-check to make sure I've configured everything correctly. 98 00:05:49,000 --> 00:05:52,000 Now I'm going to come here to the front-end of my Web site. 99 00:05:52,000 --> 00:05:58,000 I'm going to go to my Home page, and I can see this link here: For Distributors. 100 00:05:58,000 --> 00:05:59,000 Why can I see this? 101 00:05:59,000 --> 00:06:04,000 Well, back a few videos ago, I had logged in to the front-end of the Web site, and 102 00:06:04,000 --> 00:06:10,000 because I am still logged in, I can click on this link For Distributors, and I can see my page. 103 00:06:10,000 --> 00:06:12,000 There we go; there is my Weekly Special. 104 00:06:12,000 --> 00:06:17,000 But if I go back to my Login screen, and I click the Log out button, that link For 105 00:06:17,000 --> 00:06:19,000 Distributors will disappear. 106 00:06:19,000 --> 00:06:24,000 If I am logged in as Super admin, with my User Name of admin, my Password of 107 00:06:24,000 --> 00:06:28,000 admin, and I login, I can also see this For Distributors link. 108 00:06:28,000 --> 00:06:33,000 But if I go back to the Login page down here on the bottom, and I click on 109 00:06:33,000 --> 00:06:36,000 Log out I won't see it anymore. 110 00:06:36,000 --> 00:06:40,000 So you do have to be logged in to the front-end of the Web site to see that link, 111 00:06:40,000 --> 00:06:42,000 and to access that content.