21474 Posts in 5781 Topics by 2620 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 2058 Views |
-
Pull data from top-most Parent

23 May 2009 at 1:59pm
Hey,
I am trying to pull data from the top-most Parent. Right now I can access data from the Parent of the current page, but if I am deeper nested it won't access the page I need, and if I am on the page I need, it won't access the data. D:
-
Re: Pull data from top-most Parent

23 May 2009 at 3:40pm
Hmm, I got it 2/3 working. I can access the direct Parent or if there is no Parent, access the current Page, but Level(3)+ Pages still don't show the content I need.
<% if Parent %>
<% control Parent %>
<% control Carousels %>
<li>$Image<span><a href="$URL">$Caption</a></span></li>
<% end_control %>
<% end_control %>
<% else %>
<% control Carousels %>
<li>$Image<span><a href="$URL">$Caption</a></span></li>
<% end_control %>
<% end_if %> -
Re: Pull data from top-most Parent

23 May 2009 at 3:42pm
^-- DISREGARD THAT --^
This just dawned on me as I was making the previous post, and it works:
<% control Level(1) %>
<% control Carousels %>
<li>$Image<span><a href="$URL">$Caption</a></span></li>
<% end_control %>
<% end_control %> -
Re: Pull data from top-most Parent

19 September 2009 at 8:20am
Thank you for following this through in the forum. You just helped me through a bit of a trouble spot!
-
Re: Pull data from top-most Parent

19 September 2009 at 8:55am
Not a problem! I only wish more people would do so, that way everyone would have their answers.
| 2058 Views | ||
|
Page:
1
|
Go to Top |

