ALTER TABLE `jos_content` ADD `article_image` VARCHAR( 255 ) NOT NULL
in for instance phpMyAdmin.
Edit administrator/components/com_content/models/article.xml add:
Add
- var $article_image = null;
Add
- $form->set('article_image', $row);
The result is that you now have a new field called article_image that can be used in various ways to display a separate image that is not a part of the article, similar to what you have per default for categories and sections.
Source: http://saigonphuyen.com/showthread.php?381
No comments:
Post a Comment