Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. ** local.xml
  2.  
  3. <newsevents_index_index>
  4.  
  5. <reference name="root">
  6. <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
  7. </reference>
  8.  
  9. <reference name="content">
  10. <block type="mme_newsevents/homepage" template="newsevents/homepage.phtml">
  11. </block>
  12.  
  13. </reference>
  14.  
  15. </newsevents_index_index>
  16.  
  17. ** local / Mme / Newsevents / etc / config.xml
  18.  
  19. <config>
  20. <modules>
  21. <Mme_Newsevents>
  22. <version>0.1.0</version>
  23. </Mme_Newsevents>
  24. </modules>
  25. <global>
  26. <blocks>
  27. <newsevents>
  28. <class>Mme_Newsevents_Block</class>
  29. </newsevents>
  30. </blocks>
  31. </global>
  32. <frontend>
  33. <routers>
  34. <newsevents>
  35. <use>standard</use>
  36. <args>
  37. <module>Mme_Newsevents</module>
  38. <frontName>news-events</frontName>
  39. </args>
  40. </newsevents>
  41. </routers>
  42. </frontend>
  43. </config>
  44.  
  45. ** local / Mme / Newsevents / Block / Homepage.php
  46.  
  47. <?php
  48.  
  49. class Mme_Newsevents_Block_Homepage extends Fishpig_Wordpress_Block_Post_List_Wrapper_Abstract {
  50.  
  51. }
  52.  
  53. ?>
  54.  
  55. For reference, if I change the block type to <block type="wordpress/homepage" template="newsevents/homepage.phtml"> (that these were based on) it works! Hence I assume my issue is based onthe custom block type.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement