How to display multiple categories in index page

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 07-18-2009, 01:59 AM
New Pligger
 
Join Date: Jun 2009
Posts: 7
Hi Everyone,

I am just wondering how can i show category wise published news in index page instead of showing all published content in the index page. What I am trying to do is, to show all my categories in index page with each category showing 3-4 links. Each category will be shown in a box with category name. I was searching for this all over the forum but no luck..

Any help is greatly appreciated.

Thanks in advance....
Reply With Quote
  #2 (permalink)  
Old 07-19-2009, 03:23 PM
Yankidank's Avatar
Pligg Founder/Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 4,934
Send a message via AIM to Yankidank
I would suggest starting by taking your template file index_center.tpl and changing it to:

Code:
{if $pagename == 'index' && count($templatelite.get) == 0}
Homepage Content
{else}
{$link_summary_output}
{checkActionsTpl location="tpl_pligg_pagination_start"}
{$link_pagination}
{checkActionsTpl location="tpl_pligg_pagination_end"}
{/if}
From there you would need to figure out the code to replace "Homepage Content" with to display everything the way you want. It will probably take a lot of work to figure out unless you can find some pre-existing code to work from.

The Twitter Module for Pligg CMS!
Register, Login, and Submit Stories with Twitter. An absolute MUST HAVE for all Pligg sites!
Reply With Quote
  #3 (permalink)  
Old 07-19-2009, 11:43 PM
New Pligger
 
Join Date: Jun 2009
Posts: 7
Thank you so much for your input... I'll give it a try...
Reply With Quote
  #4 (permalink)  
Old 07-21-2009, 03:42 PM
New Pligger
 
Join Date: Jun 2009
Posts: 7
Hi Yankidank,

I tried to implement your suggestion but could not able to figure out "Homepage Content" as you said. I have a one more question here, where can I find how the categories are sorted when we click on category name and I didn't even find any code related to categories display or sorting.

Thank you.
Reply With Quote
  #5 (permalink)  
Old 07-21-2009, 04:21 PM
Yankidank's Avatar
Pligg Founder/Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 4,934
Send a message via AIM to Yankidank
I suggest that you hire a developer. Try Pligg Jobs | Pligg CMS or ScriptLance.com Custom Freelance Programming. Outsource web projects to programmers and designers.

The Twitter Module for Pligg CMS!
Register, Login, and Submit Stories with Twitter. An absolute MUST HAVE for all Pligg sites!
Reply With Quote
  #6 (permalink)  
Old 07-22-2009, 02:34 AM
New Pligger
 
Join Date: Jun 2009
Posts: 7
@Yankidank

Well, I don't think really I need a developer for this at this point of time. I think "link_summary.php" holds code for how the stories are displayed but i didn't find a way to modify the code so that it only shows storie from certain categories. If somebody can help me with that I can find a way to do this (if not on my own, by taking forum or some others help may be a developer).

Anyways thank you for input, I really appreciate the way you contribute to the community.



Guys please help me if you any idea how to do this.
Reply With Quote
Reply

Tags
categories, categories in index page, multiple categories

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Page Variables Yankidank Wiki Articles 3 05-19-2011 09:21 AM
/var/log/httpd/error_log messages gr8rcake Questions and Comments 4 06-01-2010 12:25 PM
How to identify the index page? dollars5 Questions and Comments 10 06-28-2007 10:55 AM
Sort Categories Display on Main Page kanedaguy Questions and Comments 5 02-02-2007 03:03 PM
Display Top Users in Index page scasey Questions and Comments 0 07-02-2006 04:03 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