Hi!

Have you tried this in your JSP?

(SiteBean)pageContext.findAttribute("currentSite");

Bye,
Benjamin

On 29.01.2008 00:52 Kevin wrote:
> I need to pull some data from a container list in some child pages. I
> believe these are called subcontainer lists.
> It's a couple of layers down from the top. I'm on the top page now and
> I want a summary of that content to display on the front page.
> Per the documentation, this cannot be done the typical way with
> taglib's and pageLevel.
> The template developer guide (Chapter 4, Restrictions)  says to use
> currentSite, which should be present in the request object.
> 
> Well, currentSite is returning null for me no how I try to get it.
> It's not been set.
> I have tried the following:
> 
> // in a scriptlet
> List myLists = currentSite.getAllContainerLists("someList");
> List myLists = currentSite.getLightContainerLists("someList");
> 
> I've tried getting currentSite like this:
> SiteBean currentSite = (SiteBean)
> request.getAttribute("org.jahia.data.beans.SiteBean");
> or this:
> SiteBean currentSite = (SiteBean)
> session.getAttribute("org.jahia.data.beans.SiteBean");
> 
> Has anyone tried to use SiteBean (not JahiaSite) in their template set
> for Jahia 5.0.3 r18957.
> 
> I think this might be a bug or documented improperly.
> 
> Any info would be great!
> 
> Regards,
> Kevin Hutson
> _______________________________________________
> template_list mailing list
> [email protected]
> http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
> 
_______________________________________________
template_list mailing list
[email protected]
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list

Reply via email to