Adding New Categories
Adding new categories and editing them is a very easy task in Pligg. Begin by logging in as a "god" level user then navigate to /admin/admin_categories.php. You can also get to this by clicking on the Manage navigational link on top of the admin panel, then click on the Categories sub-navigational link.
Once you are on the category manager page, just click on the green "Add A New Category" link and it will insert a new category called "new category". Click on the title "new category" to edit the value on the right to a category name of your choice.
Deleting Categories
To delete a category, click on the category name that you want to delete then click on the "Delete Category" button. An ajax area will appear below the delete button where you can choose to either move stories to another category or delete all of the stories assigned to that category. After making a choice and clicking on the bottom "Delete Category" button you will be given one last chance to cancel as a popup box makes you confirm that you want to delete the category.
Ordering Categories
Pligg uses up and down arrows to manage the category order at the bottom of the admin category page. Just click on the up or down arrows to move the categories to the position that you want them in. If you want to change the level in which the category appears to make it a subcategory or move it out of a subcategory position you will need to change the "parent category" value from the category edit area. Any changes to the order of categories will immediately update on your site. Meaning that each time you click that up or down arrow it will change the positioning of the categories on your homepage without you needing to hit a save button.
Creating Subcategories
To make a subcategory click on the category name on the left then change the "Parent" drop-down value to assign a parent category then click the Update Category button to save your changes.
Search Engine Optimized Categories
Pligg offers two items to enhance your website's
SEO. The first is the ability to use
SEO friendly links and categories will need to be configured in order to do this. You will sometimes need to copy the code provided at the bottom of the category manager page into your .htaccess file. Read through the entire .htaccess file before using it because it can break your site if you don't configure it properly.
The second
SEO enhancement is the ability to add meta keywords and descriptions to category pages. To do this, simply click on the category that you want to add meta information to then enter in the appropriate fields.
Category Permissions
If you want your site to only allow certain user levels or group members to post to specific categories, this can be set from the category manager. Just click on the category link to the left, then click on one the selection area for one of the two options below.
Quote:
Required Level To Post: normal
Required User Group To Post: Group Names seperated by commas here |
Templating Categories
The easy way to make sure that you are properly formatting the category name is to use URL Method 1 from the Pligg config >
SEO page. This will print a url like the one below when you navigate to a category page:
Code:
/upcoming.php?category=Tech-News
Copy the part after the = sign for the proper category name to use in the code below.
This code will display the word "Test" on the "Tech News" category page on my example site:
Code:
{if $request_category eq "Tech-News"}Test{/if}
This code will display the word "Test" on the "Tech News"
AND "World News" categories on my example site:
Code:
{if $request_category eq "Tech-News" || $request_category eq "World-News"}Test{/if}
If you want to add content to
ALL CATEGORIES, but not the Upcoming and Published sections you can use the following code to apply the word "Test" to every category page on your site:
Code:
{if $request_category}Test{/if}