Toolbox.xml - v.3.7.1 Question

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Toolbox.xml - v.3.7.1 Question

Henry Versemann

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

--
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 [hidden email].
To post to this group, send email to [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|

Re: Toolbox.xml - v.3.7.1 Question

Jason Tesser-2
There is but you would need Java Code in a plugin to list it from the Velocity Engine 

On Thu, Dec 7, 2017 at 3:26 PM Henry Versemann <[hidden email]> wrote:

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

--
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 [hidden email].
To post to this group, send email to [hidden email].
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.

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CALDe1GMqBYBiQD9o5U33Gn_AEWBr%2BhrWNtuWRiXnfjbgt1jLyw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Toolbox.xml - v.3.7.1 Question

John Michael Thomas
In reply to this post by Henry Versemann
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.



On Thursday, December 7, 2017 at 12:26:45 PM UTC-8, newbie23 wrote:

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

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/3df23cf0-462f-48d8-8f16-ae151e435867%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Toolbox.xml - v.3.7.1 Question

Henry Versemann

Thanks.

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of John Michael Thomas
Sent: Friday, December 8, 2017 9:13 AM
To: dotCMS User Group <[hidden email]>
Subject: [dotcms] Re: Toolbox.xml - v.3.7.1 Question

 

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.

 

 


On Thursday, December 7, 2017 at 12:26:45 PM UTC-8, newbie23 wrote:

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

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/3df23cf0-462f-48d8-8f16-ae151e435867%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CY4PR0501MB37777B4BE9B57CFC3E94572AAD300%40CY4PR0501MB3777.namprd05.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.