17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 759 Views |
-
Grabbing content from descendants

28 March 2008 at 7:12pm Last edited: 28 March 2008 7:35pm
WidgetHolder has WidgetPages, which in turn have WidgetImagePages.
So WidgetPages can have multiple images, each stored in WidgetImagePages.I would like WidgetHolder to access a small version of the image in the first WidgetImagePage listed for each WidgetPage.
How do I grab hold of that content?
Edit: Via templates
I'll get there
-
Re: Grabbing content from descendants

28 March 2008 at 8:04pm Last edited: 28 March 2008 8:08pm
<% control WidgetPages %>
<% control WidgetImagePages %>
$Image.SetWidth(50)
<% end_control %>
<% end_control %>Here assuming that the name of the relationships are WidgetPages and WidgetImagePages and that Image is the name of the entry of the image.
| 759 Views | ||
|
Page:
1
|
Go to Top |

