Path

ez.no / ezpublish / documentation / customization / tips & tricks / howto see if article has an image


HowTo see if article has an image

These documentation pages are no longer maintained. Please visit the new documentation site.

To show a standard image to n article that does not contain an image you can use this code:

{section show=is_object($content_version.data_map.thumbnail.content)}
{attribute_view_gui attribute=$content_version.data_map.thumbnail image_class=medium}
{section-else}
{/section}

Enjoy!!

Comments

Contents

Customization

Access control
eZ publish API Documentation
Content structure
Custom design
Components
Tips & Tricks
    Debugging templates
    Javascript in templates
    Fetching current user
    Showing related objects
    Show which templates are used
    Fetching the ID of the parent
    One Article Folder
    Creating tree menus
    How can I use my own php script insid...
    Hiding attribute content
    Splitting an article over several pages
    Accessing section id in pagelayout
    List articles in folder
    Creating nice URLs
    Alt tag on images
    Improve the pagelayout.tpl
    Clean HTML tags
    Insert javascript call inside ezpub d...
    3rd party applications
    Fetch Function examples
    Display more than 15 items on your co...
    Including PHP files in templates
    Redirecting after content publishing
    HowTo see if article has an image
    Date and Time Formats
    Forms processing example: store user...
    Adjust Timezone
    Adding a Remove Button/Image
    Find the age in years for an object
    Editing, creating and removing conten...
    Indexing binary files with IFilters o...
Troubleshooting


Created

12/08/2003
12:42:17 am
by John van der Boom

Last updated

12/08/2003
2:21:08 am
by John van der Boom

Authors

John van der Boom



This page is part of the eZ Publish documentation. The documentation is available under the GNU Free Documentation License. All contributions will be released under the terms of this license.