Toolbox.xml - v.3.7.1 Question

已查看 11 次
跳至第一个未读帖子

Henry Versemann

未读,
2017年12月7日 15:26:452017/12/7
收件人 dot...@googlegroups.com

Is it possible in the backend to somehow get a listing of all the tools available in Toolbox.xml, or view a listing in the backend under one of the different tabs?

 

Need to maybe send a new form to an email address within our domain.

 

Thanks for responding.

 

Henry

Jason Tesser

未读,
2017年12月7日 15:32:252017/12/7
收件人 dot...@googlegroups.com
There is but you would need Java Code in a plugin to list it from the Velocity Engine 

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dotcms+un...@googlegroups.com.
To post to this group, send email to dot...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CY4PR0501MB377707E746AE342612093171AD330%40CY4PR0501MB3777.namprd05.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.

John Michael Thomas

未读,
2017年12月8日 10:12:422017/12/8
收件人 dotCMS User Group
As Jason said, you would need a plugin to get at the list of viewtools in the toolbox.xml file your server is actually using.

You could cheat a little by uploading the toolbox.xml as a file within your dotCMS folder tree (in the site browser), and then using the XMLTool to parse it out.  The code would look something like this (with the toolbox.xml file loaded into the /demos folder):

#set($results = $xmltool.read("https://demo.dotcms.com/demos/toolbox.xml"))
<ul>
#foreach($toolbox in $results.children().iterator())
   
#set($toolboxXML = $xmltool.parse($toolbox))
   
#foreach( $tool in $toolboxXML)
       
#set($toolXML = $xmltool.parse($tool))
       
<li>$tool.key.text:</li>
       
<ul>
           
<li>Scope: $tool.scope.text</li>
            <li>Class: $tool.class.text</
li>
       
</ul>
    #end
#end
</
ul>


The obvious limitation, however, is that if the toolbox.xml on the host is updated and you don't upload the changes into the version in your dotCMS folder structure, then the list won't be up to date.

Henry Versemann

未读,
2017年12月8日 10:14:272017/12/8
收件人 dot...@googlegroups.com

Thanks.

--

http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dotcms+un...@googlegroups.com.
To post to this group, send email to dot...@googlegroups.com.

回复全部
回复作者
转发
0 个新帖子