Forums / Setup & design / multiple categories on front page

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

multiple categories on front page

Author Message

Tim Brown

Sunday 09 January 2005 7:50:17 pm

I am trying to configure my site so that News can be the front page info.

However I want to have several sub categories of my news, and as each categorized news item goes up I would like it to feature on the front page.

Any tips on how to do this?

kevin wei

Sunday 09 January 2005 9:14:56 pm

i always use these code from folder.tpl

{section show=is_unset( $versionview_mode )}
              {section show=$node.object.data_map.show_children.content}
              {let page_limit=10
                 list_items=array()
                 list_count=0}

              {section show=or( $view_parameters.day, $view_parameters.month, $view_parameters.year )}
                {let time_filter=array( and,
                                        array( 'published', '>=',
                                               maketime( 0, 0, 0,
                                                         $view_parameters.month, cond( $view_parameters.day, $view_parameters.day, 1 ), $view_parameters.year ) ),
                                        array( 'published', '<=', maketime( 23, 59, 59,
                                                         cond( $view_parameters.day, $view_parameters.month, $view_parameters.month|inc ), cond( $view_parameters.day, $view_parameters.day, 0 ), $view_parameters.year ) ) )}
                {set list_items=fetch_alias( children, hash( parent_node_id, 63,
                                                             offset, $view_parameters.offset,class_filter_type, include, class_filter_array, array('folder'), attribute_filter, $time_filter,
                                                             sort_by, $node.sort_array,
                                                             limit, $page_limit ) )
                     list_count=fetch_alias( children_count, hash( parent_node_id, $node.node_id) )}
                {/let}
               {section-else}
                {set list_items=fetch_alias( children, hash( parent_node_id, 63,
                                                             offset, $view_parameters.offset,class_filter_type, include, class_filter_array, array('folder'),

                                                             sort_by, $node.sort_array,
                                                             limit, $page_limit ) )}
                {set list_count=fetch_alias( children_count, hash( parent_node_id,$node.node_id ) )}
                {/section}
 <div>
				{section var=child loop=$list_items }
  
                 <a href={concat('content/view/full/',$child.node_id)|ezurl}>{$child.name|wash()}</a>
                 {/section}
                 
</div>                 {/section}
                 {/section}
                    

maybe can help u!

Tim Brown

Monday 10 January 2005 5:39:25 pm

thanks, I've only been playing around with EZ in offline mode, so I'll give that a shot when I actually get it loaded on my site.