FREELessons: 35Length: 7.7 hours

Next lesson playing in 5 seconds

Cancel
  • Overview
  • Transcript

6.9 Tags and Weblinks

Continuing from the previous lesson, let’s now look at how to display the tagged data using certain menu item types and modules. We’ll also look at this component’s global configurations. Towards the end of this lesson, we’ll have a quick look into the Weblinks component.

6.9 Tags and Weblinks

Hi guys. Welcome back to a beginners guide to using Joomla. And in this lesson, we want to carry on learning about the tags component. So we've already had a quick glance at the module associated with the tags component, that simply lists out all of the items associated with a selected tag. And then we can click on that and go to the item itself, whether it be a category page, whether it be an article page, whether it be a contact page and so forth. But now there's another way to display content using the tags component, and that is through certain types of menu items. So I'm gonna go to the Test Menu and add in a new menu item. So I'm going to apply a title for a menu item. Then I'm gonna select the menu item type. And underneath Tags we have three different types of menu item types associated with the tag's component. I'm gonna go on Tagged Items. Then I need to select which tag is gonna be associated with this menu item. We only have the ability to choose one tag for one menu item. Then, on top of that, we have the ability to choose what type of content that is linked to this tag, do we want to list out and display on the page. So in this case it's gonna be articles. So it's gonna look at all of the articles that are tagged with tuts+ and list them out on the page that this menu item links to. So if I hit Refresh, you'll now notice I'll be able to click on that newly created menu item. It will list out all article associated with the tuts+ tag. And I can click on one of them and I can go to that specific article. Then on top of that, we can also list out other item types as well under the tuts+ tag. So for example, we're showing article items but we can also show article categories, banners, banner client, and so on and so forth. All these different types of content and we can list them out, so article categories, article and article category now. Go ahead and save that, hit Refresh and now you'll notice that we have Envato and TutsPlus in this list and if I click on TutsPlus, it will take me to the TutsPlus category page that's associated with the TutsPlus tag. So right now, what we have is the ability to also filter the language as well. So we can say only show tagged items if they have English UK assigned to them, or I can say Use Global or All and so on and so forth. So I'm gonna stick with Use Global. You also have lots and lots of options to do with tags, item options, pagination options, item selection options, integration and so on and so forth as well as all the other standard options that come with most menu item types. So that we've discovered this, what I'd like to do is take a look at the other menu item types associated with the Tags component. So firstly, I'm gonna delete out all the unnecessary menu items. So now I'm gonna create a new menu item, which I'm gonna give it the title of List all tags. Select the menu item type drop-down the Tags section, and I'm gonna click on List of all tags. Once I've created that menu item type, it asks me to choose a parent tag. Now only children that are directly related to the parent tag will be rendered. So in this case, if I choose root, only root level tags will be rendered. In the case of me selecting let's say lessons, it would only render the child tags of that parent tag. So if I'm gonna go with Root and then I'm gonna say, Save and Close. Then I'm gonna create a new Menu Item. From here I'm gonna create a new Menu Item type. Underneath Tags, we have the Compact List of Tagged Items. Now, this is a special kind of menu item that allows us to associate multiple tags to this menu item instead of just one, and then also multiple different pieces of content as well. So now if there are any articles or any contacts that are associated with either the lessons tag or the tutsplus tag, those items will show up in a compact list. And then all I have to do is just provide a menu item title and then we can finally save and close. So now what we can do is go off to the front end, view our updated test menu and we can start to take a look at those menu item types and the content they generate. So let's take a look at the List all tags. So what I'm doing here is I'm saying render all of the tags on the Root level, which currently I only have one of the tags on the Root level which is Lessons. When I click on that, it gives me a list of all the items that are associated with the Lessons tag. Then we have the compact list of tagged items. Again, you can see that this is a lot more compact, the text is smaller. And on top of that, it's showing me all of the articles and contacts that are associated with the Lessons tag, and also, the tuts+ tag as well. So now you'll notice we have a lot more items here. We have, let's see, Lawrence Anthony Turton, which is associated with lessons. And then we've got some articles here. So just another article. It's associated with the tuts+ tag as well. So, hopefully now you can see what these menu items are generating in their content. Now it's time to take a look at the global configurations for the Tags component. So let's jump back to the admin control panel. We need to go to the Tags component and click on options. And the first options that are presented to us are for tagged items. So the first option is the default layout for tagged items. The component comes with either the default layout, or the compact layout with smaller text and the row size is a lot smaller. But I'm gonna stick with the default layout. Then we can decide whether we want this component to save a history of the tagged items. And how many versions were allowed maximum of each individual tag item. Also, I can show the tag name, the tag image, the tag description, and if an image hasn't been provided by the menu item, we can provide a fallback image here under the global configurations. Then we can optionally show the number of items associated with a tag. Then we have the ordering. So I'm gonna choose the title of the items for their ordering and then you have the direction of the ordering, whether you want that to be ascending or descending. Then we can decide to show table headings. Now this won't affect the current page that we're on. We need to go to the compact list of tags. So this has a tubular format with all the different items listed out in the compact list layout, and then we can show and view the table headings. Then we can show the date relating to each individual items within the table. So I'm gonna go with the Created Date. Then on top of that, we need to go back to the Tutsplus tag page. And from there as we have the default layout, we can show Item Images, Item Descriptions, and also, we can limit the amount of characters each description is allowed. Now let's take a look at the Item Selection Options. The first option is the minimum search length. This is to do with the administrator back end, where we take an item, and we try to search for a tag to add. Now, we must at least provide three characters, with the current setting, before it even goes and searches for a tag. Also, it must be in AJAX mode, which we'll talk about in just a second. Now we can shift our attention over to the front end where we have a compact list of tagged items. Now with this menu item, I have more than one tag associated with it. Now we have the option to say, how do we want to match the items? Do we want to say, show any items in this list that have any affiliation to any one of those tags? Or do we say, all, which means that every single item must be associated with both the Tutsplus tag and the Lessons tag? It must have both in order to show up in the list. But we can also optionally include the child tag items. So, now that we have the Lessons tag, the Tutsplus tag is the child of the Lessons tag, and so it'll bring back all of those items again. Then we can define the maximum number of items that are allowed to be returned. And then on top of that we can filter the items and say, only show items that have English (UK) assigned to them. Then let's take a look at the List All Tags options. So before I delve into these options, I'm first of all gonna take a look at the List All Tags menu item. Now I told it to start rendering the list of tags on the root level. Now what i'm going to do is tell the menu item to start rendering from the Lessons tag. This means it will only render tags that are a direct child, which is the tuts+ tag in this case. Now that we have this tag being rendered in the list, let's go ahead and take a look at these options. So first of all, we have the Default Layout for List All Tags, and we only have one layout, which is the default. Then we can choose the ordering, so I'm gonna order by the title of the Tag. And again, we have the Direction of the ordering, so I'm gonna say Ascending. Then also we have the Item Images, the Tag Descriptions. Then we have the Maximum Character Count for the descriptions. And then also we can show the hits. Now please do note this is a little boogie right here, such as Item Images. We should see Tag Images here rather than Item Images, as there as no items on the list of All Tags page. Also, the tag description you can't hide it. It's always showing. So there are a few little bugs that the Joomla dev team need to work on here. Then we have the Shared Layout Options, these options are here for multiple layouts within the tags component, such as showing the Filter Field and showing the Display Select. So you'll notice on Tutsplus tag and the Compact List of items, we have the filter field. The display, select dropdown. We also have the pagination set to Auto and the pagination results set to Show. And so when we scroll down, you'll notice we have the pagination, we have the pagination results, and so forth. So this is shared between multiple pages of the tags component. Then we have the data entry options. And we can choose between AJAX and Nested. So when we have Ajax mode enabled, it allows us to search through the tags whilst we're typing to find a tag to associate with an item. Then on top of that, if you select nested, you won't have that AJAX searching feature and on top of that, we can see there's a little bit of a difference in the tag's display. So for example if AJAX mode is on and I say TutsPlus, we get Lessons/TutsPlus, whereas with the nested view you'll just get Tutsplus. So you can see that they are a little bit different and this is affecting the back end. On top of that, we also have the integration which we can show a feed link if we would like. And on top of that we also have the Permissions for this component as well. Now let's move on and take a look at the Web Links component. So the Web Links component doesn't have to be utilized but it's a nice way of you being able to list out multiple links to external websites. It even allows the possibility of visitors submitting links. So it's like a Open directory on your site. Again, you don't have to use this, but it's a nice little component that comes pre-installed with the default, Joomla Installation. Now the Web Links Component allows us to create categories as well to categorize all of our web links. Now the Web Links component has menu item types associated with it. And also a module as well. You'll notice on the front end, we have Blog Roll, which is the Web Links category. And in there we have both of the links being rendered, associated with that web link's category. So thank you for watching me in this lesson, and please join me in the next lesson where we'll carry on learning about the web links component.

Back to the top