I just did some random extra checking, and found that if I try to dump
#session# it also tells me that this object is undefined. #cookie# works
fine though.

So, if you need extra information about the plugin so you can help work out
why I don't have access to #session# and #application#, here it is:

/farcry/plugins/mynewplugin/customadmin/mynewplugin.xml:
<?xml version="1.0" encoding="utf-8"?>
<webtop>
  <section id="filemanip" sequence="5000" permission="MainNavAdminTab"
label="File Manipulation" icon="config" description="Manipulate Files on the
filesystem">
    <subsection id="filemanipsub" sequence="10" label="File Manipulation"
content="../../plugins/mynewplugin/index.cfm">
      <menu id="xmlManagement" sequence="20" label="XML">
        <menuitem id="xmlManage" sequence="21" label="Manage XML Data"
link="../../../plugins/mynewplugin/packages/xmlmanager/manage.cfm" />
      </menu>
    </subsection>
  </section>
</webtop>

In said content page of /farcry/plugins/mynewplugin/index.cfm I now just
have the following lines:

<cfdump var="#session#" />
<cfdump var="#structKeyList(application)#" />

with cftry blocks around both lines.

I've changed the /myproject/farcryContstructor to say
<cfset THIS.plugins = "farcrycms,farcrygreybox,mynewplugin" />

and every time I make a change, I choose Reinitialize Application from the
Reload Application page

If it makes any difference, I'm running 5.1.6
-- 
View this message in context: 
http://www.nabble.com/Question-about-plugins-tp24607520s621p24625401.html
Sent from the FarCry - Dev mailing list archive at Nabble.com.


--~--~---------~--~----~------------~-------~--~----~
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: [email protected]
To unsubscribe, email: [email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry
-~----------~----~----~----~------~----~------~--~---

Reply via email to