Pligg Categories

Register an Account
Pligg Chat Room
 
 
LinkBack Article Tools Display Modes
  #1 (permalink)  
Old 12-17-2008, 10:10 AM
Yankidank's Avatar
Pligg Founder/Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 3,803
Send a message via AIM to Yankidank Send a message via Skype™ to Yankidank
You might also want to see this older article about Category Management.
Attached Thumbnails
Pligg Categories-dropdowncategory.png   Pligg Categories-category1.png  

Now Available: Facebook Connect Module !

Last edited by Yankidank; 04-29-2009 at 08:18 PM.
Reply With Quote
  #2  

Pligg Categories

 

Contents

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}


Contributors: Yankidank
Created by Yankidank, 12-17-2008 at 10:10 AM
Last edited by Yankidank, 04-29-2009 at 08:19 PM
1 Comments , 2987 Views
 

Article Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pligg Categories on top of the page with drop downs! arkasun Questions and Comments 2 10-19-2008 10:26 AM
Pligg Categories izaiasalmeida Questions and Comments 4 10-04-2007 10:16 AM
siChunk Series of Templates for pligg Adaman Templates for Sale 1 10-02-2007 10:17 PM
Pligg Upgrade 9.6 dblang make Categories and story do not appear trh792 Questions and Comments 1 05-29-2007 05:30 AM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development