img_path not working in simple module view
  • sevenfield October 2011
    I'm using the news module from the pages tutorial and images added through markitup
    are not showing up in the view.

    However, they do appear when I preview the post in the admin area.

    Blog post images are working as they should.

    What might I be missing?
  • sevenfield October 2011
    More info...

    I just realized the templating syntax is not being converted to straight html in the view...

    is showing in the source code.
  • sevenfield October 2011
    Forgot to add code tags above...
    <img src="{img_path('authors/adidas_thumb04.jpg')}" alt="" />
  • adminadmin October 2011
    Try adding the following to your model.
    public $parsed_fields = array('content', 'content_formatted');
    I've updated the tutorial to help with this: http://www.getfuelcms.com/user_guide/modules/tutorial
  • sevenfield October 2011
    Thanks!! That worked.
  • slamtastic February 13
    I'm running into a similar issue and it's not resolving after having added the above $parsed_fields line. My column is "content" though it doesn't appear to be sticking. The tutorial only mentions $parsed_files twice and so I'm at a loss. Thoughts?
  • adminadmin February 14
    Any chance of you showing us the model (you can wrap in code tags)?

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

Categories