CodeIgniter Forums
url-title? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: url-title? (/showthread.php?tid=60874)



url-title? - El Forum - 07-16-2014

[eluser]aling01[/eluser]
I have an event block that displays images.

I want to have 3 options:
- if event has image, display that image
- if event url title has a certain keyword, display that image
- else display a placeholder image

I don't know how to write the 2nd option to the existing code:

{if event_photo}
{exp:imgsizerConfusedize src="{event_photo}" alt="{title}" width="300" height="450" class="displayBlock" quality="100"}
{if:else}
<img src="/images/_pages/_global/placeholder.jpg"/>
{/if}



url-title? - El Forum - 07-16-2014

[eluser]CroNiX[/eluser]
Same as your other post - I'd ask in an EE specific forum for help with that product.


url-title? - El Forum - 07-16-2014

[eluser]aling01[/eluser]
Thank you very much!