Hosting Geared For
your CMSMS needs
Hosting Starting at $15
- • Hosted Mail
- • Personal Control Panel
- • CMSMS 1.8.1 tested
- • Lightly packed servers
- • Intrusion Detection
- • URL monitored
- • Custom solutions available
CP Blogs
Controll Cataloger item images
Posted by: Jeremy Bass
on May 24, 2009
Category:
CMS Made Simple, Smarty, Intermediate, Coding
Summary:
So you need to get just the scr of the Cataloger images? Try this:
Ad Space
So you need to get just the scr of the Cataloger images? Try this:
{assign var="foo" value=$items[numloop].link|regex_replace:"/.*\/(.*)\//":"\\1"}
{assign var="image" value="uploads/images/catalog/`$foo`_t_1_100_1.jpg"}
{if file_exists($image)}<img src="{root_url}/{$image}" />{/if}
All you have to do (after you read the help) is change _t_1_100_1.jpg... that is the
.image_src_1, thumb, etc (read the help of the mod)
so
{if file_exists($image)}<a href="{root_url}/{$image}" ></a>{/if} need more then one...
{assign var="image2" value="uploads/images/catalog/`$foo`_t_1_100_1.jpg"}
{if file_exists($image2)}<img src="{root_url}/{$image2}" />{/if} an so on...
this is how I bypassed the noimage with NO eidting of the code in the files
Ad Space














Get Social With It
[+]Add A Comment
[+]