Get mosimage show up on Joomla Page

I was custom developing a new feature for a Joomla! site and encountered a problem. I had piggy-backed the new feature on Joomla! content so I don’t have to code all administration aspect from scratch. But the display page I was custom coding to fit my client’s need.

The problem I had was that {mosimage} was always displayed literally, without being swapped out for the image itself. After some tracking and I found the line of code that does the magic:

$params->def( 'image', 1 );

After this parameter was set, {mosimage} was interpreted correctly.

Social Share: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • StumbleUpon
  • Reddit
  • Webnews
  • Facebook
  • Google Bookmarks
  • LinkedIn
  • TwitThis
RSS 2.0 | Trackback | Comment

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>