Please, post your complete template code (attached in a zip). I see that in page-view you, perhaps, did not delete the top-most tag-pair 'cms:pages' as instructed, that is why you got so many links in footer. I will rectify all issues in your template and will add a folder-view code.

This code allowed me to display dynamic footer links which reflect only the current folder's root folder, and child folders, on folders or pages cloned from a template, and not other root folders or children from the same template.