Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Sorting the Article holder into categories


Reply

981 Views

Avatar
slavelabourer

2 July 2010 at 2:05pm Community Member, 25 Posts

So I have a hard coded category list in the sidebar of each page. I want to have those jump to the article holder page and display only articles with that category. What is the simplest way to do this?

<ul id="categorySidebar">
   <li><a href="#" value="Graduate">Graduate Level</a></li>
   <li><a href="#" value="Interships">Interships</a></li>
   <li><a href="#" value="Nurses">Nurses</a></li>
   <li><a href="#" value="GP">General Practitioners</a></li>
   <li><a href="#" value="Consultants">Consultants</a></li>
   <li><a href="#" value="HO">House Officers</a></li>
   <li><a href="#" value="Physio">Physiotherapists</a></li>
   <li><a href="#" value="Registrars">Registrars</a></li>
   <li><a href="#" value="SHO">Senior House Officers</a></li>
   <li><a href="#" value="RMO">Resident Medical Officers</a></li>
   <li><a href="#" value="SMO">Senior Medical Officers</a></li>
</ul>

and so each article page just has a category selection in the article page cms. Been reading for hours but still haven't really found the right info yet.

thanks in advance for a pointer in the right direction

peace,
dan.