Hope somebody can help me one more time. :mrgreen:
I read from the other post that form variables can not go to category list page as an added table column.
How about showing an icon next to title(that way no extra column needed) so that people know this article has attachment?
Of course, this doesn't work.
Please don't laugh at me!
I read from the other post that form variables can not go to category list page as an added table column.
How about showing an icon next to title(that way no extra column needed) so that people know this article has attachment?
$title = JRequest::getVar('title', '');
if ( $title ) {
$title_hasfile = str_replace("{title}", '<span><img src="images/icon_file.gif/'.JRequest::getVar("title").'"/></span>', $title_hasfile);
}else {
$title_hasfile = str_replace("{title}", '', $title_hasfile);}
JRequest::setVar("title", $title_hasfile);
Of course, this doesn't work.
Please don't laugh at me!