Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
Dámaris Suárez
Configuration of link_to_layout element to show only certain pages
August 31, 2012 3:14 AM

Dámaris Suárez

Rank: New Member

Posts: 15

Join Date: August 28, 2012

Recent Posts


I´m working with Liferay 6.1 CMS, and have arranged a number of pages, private and public inside my portal. I have added a web content display element, and inside of it, a link_to_layout element, defined in my structure A.

By default, this element shows all the pages available, regardless having my user rights to access them or not. Is there any way to restrict that? I tried making some pages not visible for my user, but they are still shown in the link_to_layout element, as shown in the picture.

The code for my structure A is pretty normal:

 1<?xml version="1.0"?>
 4    <dynamic-element name="varLinkToPage1" type="link_to_layout" index-type="" repeatable="false">
 5        <meta-data>
 6            <entry name="displayAsTooltip"><![CDATA[false]]></entry>
 7            <entry name="required"><![CDATA[false]]></entry>
 8            <entry name="instructions"><![CDATA[]]></entry>
 9            <entry name="label"><![CDATA[varLinkToPage1]]></entry>
10            <entry name="predefinedValue"><![CDATA[]]></entry>
11        </meta-data>
12    </dynamic-element>

Does anyone know how to link somehow permissions with what can be selected from this selection element?



Attachments: liferay_forum_capture_30_08_12.png (52.7k)

Participate in the State of Liferay Community 2017. Help the community and even win some prizes!