组合视图 统一视图 树状图
讨论主题 [ 上一个 | 下一个 ]
toggle
Faisal K
Where is the code for showing the Add Page in Navigation?
2009年6月7日 下午9:34
答复

Faisal K

等级: Regular Member

帖子: 138

加入日期: 2008年1月9日

最近的帖子

Hi All,

I am using liferay 5.2.3 version, I want to know where is the code written for showing the 'Add Page' in the top Navigation, It is not there in navigation.vm, I think it is done by using some java-script coding, where can I find the code? I want to hide the 'AddPage' option even for Administrator or Owner of the Community.

Thanks in Advance.
Shahzad . Hussain
RE: Where is the code for showing the Add Page in Navigation?
2009年6月8日 上午5:39
答复

Shahzad . Hussain

等级: Junior Member

帖子: 52

加入日期: 2008年5月26日

最近的帖子

Asak faisal,

To disabling add page option for admin, you need to change navigation.js file which is present inside webapps/ROOT/html/js/liferay/navigation.js.There you will find a function like this _addPage: function(event, obj) just remove this function from the file.
Faisal K
RE: Where is the code for showing the Add Page in Navigation?
2009年6月8日 上午6:28
答复

Faisal K

等级: Regular Member

帖子: 138

加入日期: 2008年1月9日

最近的帖子

Thank you so much Mr Tannu,

I want to know where this API is being called, I don't want to change the API existing, If you have any Idea please help me?


Thanks in Advance.
Liviu Cismaru
RE: Where is the code for showing the Add Page in Navigation?
2009年11月13日 上午6:22
答复

Liviu Cismaru

等级: New Member

帖子: 14

加入日期: 2008年9月10日

最近的帖子

Fasial,

The way I find easier to inhibit the Add Page js code is to comment the line(s) below from the "initialize" function in navigation.js:

// instance._makeAddable();
// instance._makeDeletable();
// instance._makeSortable();
// instance._makeEditable();


You may only need to comment one of them, or all.

Liviu


Faisal K:
Hi All,

I am using liferay 5.2.3 version, I want to know where is the code written for showing the 'Add Page' in the top Navigation, It is not there in navigation.vm, I think it is done by using some java-script coding, where can I find the code? I want to hide the 'AddPage' option even for Administrator or Owner of the Community.

Thanks in Advance.