Ad Space
Cloud Computing and Cloud Hosting by Rackspace
Ad Space
Cloud Computing and Cloud Hosting by Rackspace

Hosting Geared For
your CMSMS needs

CMSMS ready Hosting

Hosting Starting at $15

  • • Hosted Mail
  • • Personal Control Panel
  • • CMSMS 1.8.1 tested
  • • Lightly packed servers
  • • Intrusion Detection
  • • URL monitored
  • • Custom solutions available

Order your hosting Now

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

[+]

Code in the picture:
Title:
Your Name(*):
Email:
Notify me of any further comments to this thread:
Website:
Comment(*):
 
Previous page: Hosting FAQ Next page: Experimental