Path

ez.no / ezpublish / documentation / customization / tips & tricks / list articles in folder


List articles in folder

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

How do I list all the articles in one folder?

{let X=fetch('content','list', hash(parent_node_id,$node.node_id,

                                   sort_by,$node.sort_array,

                                   offset, $view_parameters.offset,

                                   class_filter_type, 'include',

                                   class_filter_array, array( 2 ) ))

}

where 2 is you article class ID.

Look at fetch howto to get to know more about the fetch function and its usage.

[apparently, the above link is broken. Try this link instead]

Comments

filtering on classes

I changed my Article class and since then the fetch function doesn't fetch articles properly.
I' ve used it just like you described. I even tried to put the identifier of the Article, like this:




   class_filter_type, 'include',


   class_filter_array, array( 'article' )




but I just don't get any articles. Without the attribute filtering it works fine. What's the problem?

List all articles in current folder - archivelisting with offset=10

How do I use this code to list all articles in current folder without having to specify one particular node-id. And could u also put on a switch so make the listing inactive if no articles is returned?

I want my newspage to list 10 articles with intro sorted by date, and then a archivelisting at the bottom showing all previous articles IF there is any articles beyond the offset of 10..

Shouldn't be to difficult, but I'm no programmer..

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

08/05/2003
12:48:27 pm
by Bård Farstad

Last updated

22/08/2003
12:12:07 pm
by Mark Overduin

Authors

Bård Farstad
Paul Borgermans
Mark Overduin



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.