2012-02-09, 05:28:24
If you give every component the same id as their corresponding page slugs, you can insert this in the sidebar:
That is, a page with slug my-page would display component with name my-page (if that component exists).
Code:
<?php get_component(return_page_slug()); ?>