title: Graffiti CMS: View Overrides
body: <p>I've got a Graffiti CMS (<a href="http://graffiticms.com" rel="nofollow noreferrer">http://graffiticms.com</a>) questions that is driving me crazy. I figured this would be the best place to try to get an answer and at the same time hopefully provider an answer for someone else with the same issue.</p>
  
  <p>First, I have a site structure like this:</p>
  
  <ul>
  <li>Category1
  
  <ul>
  <li>Sub-Category1</li>
  </ul></li>
  <li>Category2
  
  <ul>
  <li>Sub-Category3</li>
  <li>Sub-Category4</li>
  <li>---Post1</li>
  <li>---Post2</li>
  </ul></li>
  </ul>
  
  <p>I have my .view files in the theme. I have a category2.sub-category4.view file which in theory replaces the index.view file displaying the posts within the subcategory with the formatting of my choosing (this part is working).</p>
  
  <p>What isn't working, and I can't figure out is when I go to localhost/category2/sub-category4/post1/ to view the post, it is also using the category2.sub-category4.view to try to display the contents of the post. But since the .view file was setup to display a list of posts it isn't going to display properly. What the expected behavior is for it to use post.view to render the post.</p>
  
  <p>According to <a href="http://graffiticms.com/old-support/designers/making-use-of-views/" rel="nofollow noreferrer">http://graffiticms.com/old-support/designers/making-use-of-views/</a> category2.sub-category4.view should override index.view and it doesn't say anything about it overriding post.view.</p>
  
  <p>I've tried every naming schema I can think of, and if I change the category it always seems to override my post.view as-well. Any help is appreciated.</p>