Message Boards

Database table for javascript of public-home

Scarletake Bwi, modified 2 Years ago.

Database table for javascript of public-home

Expert Posts: 326 Join Date: 12/20/10 Recent Posts

hi 

i use liferay 6.2

now i got problem, i add a redirect javascript in site's public page(welcome)

and new it will just redirect, i cannot loging or do anything.

how to find it in database? i need to delete it.

thank you. 

Scarletake Bwi, modified 2 Years ago.

RE: Database table for javascript of public-home

Expert Posts: 326 Join Date: 12/20/10 Recent Posts

SELECT typeSettings FROM `lportal6.2`.Layout where friendlyURL like '%signin%';

for who have same problem like me :)

thumbnail
Olaf Kock, modified 2 Years ago.

RE: RE: Database table for javascript of public-home

Liferay Legend Posts: 6403 Join Date: 9/23/08 Recent Posts

Manually writing to the database is a really bad idea. I'd rather have recommended to temporarily disable JS, or look at the Page Settings dialog's URL on a different page and replace its ID, then open it manually.

Scarletake Bwi, modified 2 Years ago.

RE: RE: Database table for javascript of public-home

Expert Posts: 326 Join Date: 12/20/10 Recent Posts

yes, disable JS is a better idea.

sorry, i was so scared.

thumbnail
Olaf Kock, modified 2 Years ago.

RE: RE: Database table for javascript of public-home

Liferay Legend Posts: 6403 Join Date: 9/23/08 Recent Posts

If memory serves me well, I believe you could also go through the page management interface (without going to the page first) and reach the page's configuration that way. I have no 6.2 installation around any more though, to double check.