Just Copy the wp default sidebar and rename with different like sidebar-new.php
Open functions.php file add the extra code(bellow) in default function.
and your final code will show like this
For dynamic you have to change a little code from sidebar-new.php
Finally you just include sidebar-new.php file to your selected template.
And enjoy with dynamic site.