Forums / Setup & design / Adding link in bottom of vertically_listed_sub_items
Vegard Hansen
Monday 25 June 2007 6:40:36 am
Can anyone help me with adding a "All articles" link in the bottom of vertically_listed_sub_items.
It now lists 3 articles in a folder, and i would like to add a link to the parent node of the articles listed in that box.
Anyone?
André R.
Tuesday 26 June 2007 2:08:53 am
http://ez.no/community/forum/setup_design/an_override_question#msg134436
eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription @: http://twitter.com/andrerom
Tuesday 26 June 2007 2:16:57 am
I know how to create overrides, i only need the code to fetch the url to the folder i collect articles from.
Tuesday 26 June 2007 2:40:57 am
Something like:
<div class="content-view-children float-break"> {if $children|count()} {foreach $children as $child} {node_view_gui view=line content_node=$child} {/foreach} {def $parent = $children.0.parent} <a href={$parent.url_alias|ezurl()}>{$parent.name|wash()}</a> {undef $parent} {/if} </div>
Tuesday 26 June 2007 3:37:23 am
GREAT! This was exactly what i was looking for!Thanks a lot Andrè..
Kristoffer Karlsson
Friday 29 June 2007 5:36:22 am
...and if i only want the link if the parent node contains more than 3 objects?
_____________________________________ Blog: http://www.kristofferkarlsson.com Website: http://www.spelkanalen.com
Friday 29 June 2007 9:37:17 am
Not to be harsh, but do a {$node|attribute('show', 1)} :)