Setting the homepage
In the administration interface of eZ publish, create a template override for the root node of your eZ DMS installation and place the code below.
{set-block scope=global variable=cache_ttl}0{/set-block}
<div class="border-box">
<div class="border-tl"><div class="border-tr"><div class="border-tc"></div></div></div>
<div class="border-ml"><div class="border-mr"><div class="float-break border-mc">
{def $user=fetch( 'user', 'current_user' )}
<table width=100%><tr><td valign=top>
<fieldset>
<legend>{"My bookmarks"|i18n("design/standard/content/view")}</legend>
{let page_limit=20
can_edit=false()}
{let bookmark_list=fetch('content','bookmarks',array())}
{section show=$bookmark_list}
<ul>
{section name=Bookmark loop=$bookmark_list sequence=array(bgdark,bglight)}
<li>
<a href={concat("/content/view/full/",$:item.node_id,"/")|ezurl}>
{$:item.node.object.content_class.identifier|class_icon( small, $:item.node.object.content_class.name )}
{$:item.node.name|wash}</a>
({$:item.node.object.content_class.name|wash})
</li>
{/section}
</ul>
{/section}
{/let}
</fieldset>
</td><td valign=top>
<fieldset>
<legend>{"New content since last visit"|i18n("design/standard/content/newcontent")}</legend>
<p>{"Your last visit to this site was"|i18n("design/standard/content/newcontent")}:
{$user.last_visit|l10n(datetime)}</p>
{let page_limit=20
list_items=array()
list_count=0
time_filter=array( array( 'modified', '>=', $user.last_visit ) )}
{set list_items=fetch( content, tree, hash( parent_node_id, 2,
offset, first_set( $view_parameters.offset, 0),
attribute_filter, $time_filter,
sort_by, array( array( 'modified', false() ) ),
limit, $page_limit ) )
list_count=fetch( content, tree_count, hash( parent_node_id, 2,
offset, first_set( $view_parameters.offset, 0),
attribute_filter, $time_filter ) )}
<table class="list">
{section var=child loop=$list_items show=$list_items sequence=array(bglight,bgdark)}
<tr><td><a href={concat("/content/view/full/",$child.node_id,"/")|ezurl}>
{$child.name|wash}</a></td><td> ({$child.class_name}) </td>
<td> {$child.modified_subnode|l10n(shortdatetime)}</td></tr>
{section-else}
<tr><td>{"There is no new content since your last visit."|i18n("design/standard/content/newcontent")}</td></tr>
{/section}
</table>
</fieldset>
</td></tr></table>
{undef $user}
{if $node.object.data_map.short_description.has_content}
<div class="attribute-short">
{attribute_view_gui attribute=$node.data_map.short_description}
</div>
{/if}
{if $node.object.data_map.description.has_content}
<div class="attribute-long">
{attribute_view_gui attribute=$node.data_map.description}
</div>
{/if}
</div></div></div>
