Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
Charu Babbar
Removing of form navigator from webcontent page
6 de febrero de 2012 21:38
Respuesta

Charu Babbar

Ranking: Regular Member

Mensajes: 167

Fecha de incorporación: 13 de septiembre de 2011

Mensajes recientes

Hi all,


I am working on lifewray6.1. I wants to remove the form navigator from the webcontent but I wants it only removed from gui . Plz help


Thanks.




With regards
charu
Ram Manusani
RE: Removing of form navigator from webcontent page
7 de febrero de 2012 10:57
Respuesta

Ram Manusani

Ranking: Regular Member

Mensajes: 124

Fecha de incorporación: 27 de octubre de 2011

Mensajes recientes

You probably need to write a hook for hiding the css fields.

Could you elaborate more on what you are trying to hide so that I can point you to the right jsp/jspf page for writing a hook.
Charu Babbar
RE: Removing of form navigator from webcontent page
7 de febrero de 2012 11:06
Respuesta

Charu Babbar

Ranking: Regular Member

Mensajes: 167

Fecha de incorporación: 13 de septiembre de 2011

Mensajes recientes

I wants to remove the side form navigator from in web content in which link of content abstract scedule,etc comes.
Ram Manusani
RE: Removing of form navigator from webcontent page
7 de febrero de 2012 11:38
Respuesta

Ram Manusani

Ranking: Regular Member

Mensajes: 124

Fecha de incorporación: 27 de octubre de 2011

Mensajes recientes

You should create a hook for journal_content portlet and modify main.jsp file under journal_content/css folder

In your existing code:

.portlet-journal-content .icons-container {
clear: both;
height: auto;
margin-top: 1em;
overflow: hidden;
width: auto;

display:none;
}

add display:none to the css as shown above and deploy the hook.

This should work
Charu Babbar
RE: Removing of form navigator from webcontent page
7 de febrero de 2012 18:27
Respuesta

Charu Babbar

Ranking: Regular Member

Mensajes: 167

Fecha de incorporación: 13 de septiembre de 2011

Mensajes recientes

Hi,

Hey I wants to remove this panel.Please find attachment..Thanks 4 reply.Please sugeest me more..



With reagards,
charu
archivos adjuntos: Doc1.docx (147,5k)
Ram Manusani
RE: Removing of form navigator from webcontent page
8 de febrero de 2012 10:12
Respuesta

Ram Manusani

Ranking: Regular Member

Mensajes: 124

Fecha de incorporación: 27 de octubre de 2011

Mensajes recientes

I am not sure on what version of liferay you are using.. I use 6.0.6 CE and I found the code under edit_article_extra.jspf under html/portlet/journal

You can search for id="journalExtrasPanelContainer" and try deleting the code inside your hook.

Remember, this code is in liferay6 and I would suggest you to look at firebug console and try finding the code
Charu Babbar
RE: Removing of form navigator from webcontent page
9 de febrero de 2012 1:14
Respuesta

Charu Babbar

Ranking: Regular Member

Mensajes: 167

Fecha de incorporación: 13 de septiembre de 2011

Mensajes recientes

Hi Ram,

Thanks 4 reply. I am working in 6.1CE. If you have seen my attachment, In 6.0 that form navigator does not comes in 6.0 but right now its changed in 6.1 webcontent only.

Now Plz see the attachment in last reply by me.then respond me accordingly if you are able to help. I have also searched through firebug. But I didnt got the solution right now also. Plz suggest me .Its urgent!!!



Thanks,


With Regards,
charu babbbar
Ram Manusani
RE: Removing of form navigator from webcontent page
9 de febrero de 2012 11:50
Respuesta

Ram Manusani

Ranking: Regular Member

Mensajes: 124

Fecha de incorporación: 27 de octubre de 2011

Mensajes recientes

The css related to this file is in main.jsp (/html/portlet/journal/css)

All you have to do is write a hook and in your main.jsp file add display: none;

Here's how it should look...

.form-navigator {
position: relative;
z-index: 430;
display: none;

then try deploying the hook. That should take away the form navigation on the right.

Make sure, you clear your browsers cache after deploying and before testing in the browser.

I tried deploying a hook and it worked for me..

Let me know if this helps you
Charu Babbar
RE: Removing of form navigator from webcontent page
10 de febrero de 2012 1:23
Respuesta

Charu Babbar

Ranking: Regular Member

Mensajes: 167

Fecha de incorporación: 13 de septiembre de 2011

Mensajes recientes

Hi Ram,


Its working fine.Thanks 4 reply.But here is one problem also. that is : Button are also gone by doing display:none . I wants button but not links.


Thanks

With regards
charu babbar
Ram Manusani
RE: Removing of form navigator from webcontent page
10 de febrero de 2012 11:26
Respuesta

Ram Manusani

Ranking: Regular Member

Mensajes: 124

Fecha de incorporación: 27 de octubre de 2011

Mensajes recientes

You can probably manipulate <div class="menu-group"> part in html/taglib/ui/form_navigator/page.jsp file as part of your hook

For sure there is no easy css way of hiding, coz the css is coded at portal level and the easy thing to do would be to try and remove the unwanted stuff from the page.jsp file.

Hopefully, this solves your purpose
Charu Babbar
RE: Removing of form navigator from webcontent page
22 de febrero de 2012 7:20
Respuesta

Charu Babbar

Ranking: Regular Member

Mensajes: 167

Fecha de incorporación: 13 de septiembre de 2011

Mensajes recientes

Hi,
Thanks, It solved now.