Toolbox.xml - v.3.7.1 Question

11 views
Skip to first unread message

Henry Versemann

unread,
Dec 7, 2017, 3:26:45 PM12/7/17
to 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

unread,
Dec 7, 2017, 3:32:25 PM12/7/17
to 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

unread,
Dec 8, 2017, 10:12:42 AM12/8/17
to 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

unread,
Dec 8, 2017, 10:14:27 AM12/8/17
to 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.

Reply all
Reply to author
Forward
0 new messages