Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Custom html on look and feel

Pepe wow April 11, 2014

I added some custom html in the look and feel area and save it. Now it doesnt show, and when i click the edit button, the boxes wont be enabled, and the code dissapeared. Cant go back either and tried that /admin/doeditcustomhtml.action and doesnt work either.

8 answers

1 accepted

0 votes
Answer accepted
Adrien Ragot 2
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 11, 2014

Hi Pepe,

The url is /admin/editcustomhtml.action . You said /admin/doeditcustomhtml.action, and the "do" is too much.

Maybe you didn't need to go to the database level ;)

Cheers,

Adrien

0 votes
Fabio Racobaldo _Catworkx_
Community Champion
April 11, 2014

Hi Pepe,

please execute this query in order to retrieve where your custom html has been stored

select * from bandana where bandanavalue like '%customHtmlSettings%';

Locate your custom code and remove it from the related tag so that you have the following situation

...
 <customHtmlSettings>
    <beforeHeadEnd></beforeHeadEnd>
    <afterBodyStart></afterBodyStart>
    <beforeBodyEnd></beforeBodyEnd>
 </customHtmlSettings>
...

PLEASE, perform a db dump first so you can roolback if something goes not well.

Let me know,

Fabio

Pepe wow April 11, 2014

Thanks, ill try and let you know. Need to reach the DB guy. :D

Pepe wow April 11, 2014

Checking the DB it was ok, so we tried restarting confluence and it worked.

Thanks for your help! Have a great weekend!!

Fabio Racobaldo _Catworkx_
Community Champion
April 11, 2014
you too. Please, mark this question as closed accepting my answer. regards, Fabio
0 votes
Fabio Racobaldo _Catworkx_
Community Champion
April 11, 2014

Don't worry Pepe, no panic. We can remove it from the DB. I'm working in order to provide u the necessary query.

Fabio

0 votes
Pepe wow April 11, 2014

tried loging out and back, and also with another admin user.... nothing :(

0 votes
Fabio Racobaldo _Catworkx_
Community Champion
April 11, 2014

Hello Pepe,

here a useful link that explains you how to revert your code

https://confluence.atlassian.com/display/CONFKB/Customized+HTML+Breaks+the+'Edit+Custom+HTML'+Page

Hope this helps,

Fabio

0 votes
Pepe wow April 11, 2014

I tried that, but it gives me the following error:

"The request cant be processed because a security token is missing. You might need to resend the form or refresh the page"

Fabio Racobaldo _Catworkx_
Community Champion
April 11, 2014

Try to open another administration page first so that you can take your security tokens.

Let me know,

Fabio

Pepe wow April 11, 2014

What i saw is that error is before saving the html. I could save it in the first place... the thing is that know, the fields wont enable to modify it (or even show that code). Would you happen to know where that html i added is stored?? DB?? or somewhere else maybe i can erase ir manually?

0 votes
Pepe wow April 11, 2014

i added in the head area:

<script src="http://www.mydomain.com/confluence/js/bootstrap.min.js"></script>
<link type="text/css" rel="stylesheet" href="http://www.mydomain.com/confluence/css/master.css" >

and in the top of the body part a navigation:

<div class="navbar navbar-default " role="navigation">
<div class="navbar-collapse collapse">
<ul id="main-nav" class="main-navbar nav navbar-nav ">
<li class="dropdown">
<a href="http://confluence.mydomain.com/display/AGR/A+mydomain" class="dropdown-toggle" data-toggle="dropdown" data-description="nossas essências">A mydomain</a>
</li>

<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" >Produtos</a>
<ul class="dropdown-menu">
<li><a href="http://confluence.mydomain.com/display/S2/S2+Home">mydomain S2</a></li>
<li><a href="http://confluence.mydomain.com/display/SIA/SIA+Home">SIA</a></li>
<li><a href="http://confluence.mydomain.com/display/ABCS/ABCS+Home">ABCS</a></li>
<li><a href="http://confluence.mydomain.com/display/MELHORES/Home+page">Melhores da Suinocultura</a></li>
<li><a href="http://confluence.mydomain.com/display/NEC/Nectar+Home">Nectar</a></li>
<li><a href="http://confluence.mydomain.com/pages/viewpage.action?pageId=5865503">Usuário mydomain</a></li>
</ul>
</li>

<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" >Programas</a>
<ul class="dropdown-menu">
<li><a href="http://confluence.mydomain.com/display/LEAN/LEAN">mydomain Enxuta</a></li>
</ul>


</li>

<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" >Projetos</a>
<ul class="dropdown-menu">
<li><a href="http://confluence.mydomain.com/display/CON/Confluence+Home">Confluence</a></li>
<li><a href="http://confluence.mydomain.com/pages/viewpage.action?pageId=8290414">Consistência de dados de produção</a></li>
</ul>
</li>

<li class="dropdown">
<a href="http://confluence.mydomain.com/display/PAD" class="dropdown-toggle" >Padrões</a>
</li>

<li class="dropdown">
<a href="http://confluence.mydomain.com/display/PRO/Procedimentos+Home" class="dropdown-toggle" >Procedimentos</a>
</li>

<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" data-description="conheça a estrutura">Equipe</a>
<ul class="dropdown-menu">
<li><a href="http://confluence.mydomain.com/pages/viewpage.action?pageId=10485835">Direção</a></li>
<li><a href="http://confluence.mydomain.com/display/ADM/Administrativo+Home">Administrativo</a></li>
<li><a href="http://confluence.mydomain.com/pages/viewpage.action?pageId=10485839">Comunicação</a></li>
<li><a href="http://confluence.mydomain.com/pages/viewpage.action?pageId=10485841">Estratégico</a></li>
<li><a href="http://confluence.mydomain.com/pages/viewpage.action?pageId=10485843">Área de Negócio</a></li>
<li><a href="http://confluence.mydomain.com/display/REL/Relacionamento+Home">Área de Relacionamento</a></li>
<li><a href="http://confluence.mydomain.com/display/TI/TI">Tecnologia</a></li>
<li><a href="http://confluence.mydomain.com/display/INFRA/Infra+Home">Infra</a></li>
</ul>
</li>

<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" data-description="ficar por dentro de tudo">PARA VOCÊ</a>

</ul>
</div>
</div>
<!--/navbar-->

0 votes
Fabio Racobaldo _Catworkx_
Community Champion
April 11, 2014

Hello Pepe,

did u added some javascipt into your custom html code? Please, could you attach your code so that I can perform a double check?

Regards,

Fabio

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events