Foren
Pull pages from different sites
Diego Figueroa, geändert vor 10 Jahren.
Pull pages from different sites
Junior Member Beiträge: 38 Beitrittsdatum: 11.03.10 Neueste Beiträge
Hello,
I was wondering if anyone else has constructed a navigation menu pulling items from other sites?
I currently have code that loops through all the sites taken from:
and for a regular page the children menu can be created using the standard liferay code:
However, for other sites where the page is of type URL I am not sure how to access the children and create a similar menu.
Any ideas would be appreciated.
Diego.
I was wondering if anyone else has constructed a navigation menu pulling items from other sites?
I currently have code that loops through all the sites taken from:
$layoutService.getLayouts($site_id , true)
and for a regular page the children menu can be created using the standard liferay code:
#foreach ($nav_child in $nav_item.getChildren())
#if ($nav_child.isSelected())
<li class="selected">
#else
</li><li>
#end
<a href="$nav_child.getURL()" $nav_child.gettarget()>$nav_child.getName()</a>
</li>
#end
However, for other sites where the page is of type URL I am not sure how to access the children and create a similar menu.
Any ideas would be appreciated.
Diego.
Bradley Wood, geändert vor 10 Jahren.
RE: Pull pages from different sites
Diego Figueroa, geändert vor 10 Jahren.
RE: Pull pages from different sites
Junior Member Beiträge: 38 Beitrittsdatum: 11.03.10 Neueste Beiträge
Thanks Bradley,
I guess there is no way to get what I need directly from the $nav_item element once I've determined it's the site I want right?
Diego.
I guess there is no way to get what I need directly from the $nav_item element once I've determined it's the site I want right?
Diego.
Bradley Wood, geändert vor 10 Jahren.
RE: Pull pages from different sites
Diego Figueroa, geändert vor 10 Jahren.
RE: Pull pages from different sites
Junior Member Beiträge: 38 Beitrittsdatum: 11.03.10 Neueste Beiträge
Thanks again Bradley!