struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jasper Rosenberg (JIRA)" <j...@apache.org>
Subject [jira] [Created] (WW-4556) In theme simple, move form-close.ftl tooltip code into own file
Date Fri, 23 Oct 2015 11:31:27 GMT
Jasper Rosenberg created WW-4556:
------------------------------------

             Summary: In theme simple, move form-close.ftl tooltip code into own file
                 Key: WW-4556
                 URL: https://issues.apache.org/jira/browse/WW-4556
             Project: Struts 2
          Issue Type: Improvement
          Components: Plugin - Tags
    Affects Versions: 2.3.24
            Reporter: Jasper Rosenberg
            Priority: Minor


I'd like to be able to turn off the struts tooltip js/css without having to override the whole
form-close.ftl file.  This would be particularly useful when using the bootstrap plugin since
I'm already importing tooltip js/css as part of my bootstrap js/css.

I'd just move the block 

{code}
<#-- 
 Code that will add javascript needed for tooltips
--><#t/>
<#if (parameters.hasTooltip?default(false))><#t/>
	<#lt/><!-- javascript that is needed for tooltips -->
	<#lt/><script type="text/javascript" src='<@s.url value="/struts/domTT.js" includeParams="none"
encode="false" />'></script>
	<#lt/><link rel="stylesheet" type="text/css" href="<@s.url value="/struts/domTT.css"
includeParams="none" encode="false" />"/>
	
</#if><#t/>
{code}

to a file like form-close-tooltips.ftl

And replace it in form-close.ftl with

{code}
<#include "/${parameters.templateDir}/${parameters.expandTheme}/form-close-tooltips.ftl"
/>
{code}

Thanks.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message