Share » Forums » Setup & design » Adding link in bottom of...

Adding link in bottom of vertically_listed_sub_items

Adding link in bottom of vertically_listed_sub_items

Monday 25 June 2007 6:40:36 am - 6 replies

Author Message

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

Vegard Hansen

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.

André R.

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>

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

Vegard Hansen

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

André R.

Friday 29 June 2007 9:37:17 am

Not to be harsh, but do a {$node|attribute('show', 1)} :)

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

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu