Global (Site Wide) Event Box: Overview
To create an event box that pulls from an event box on the home page of a site, there are basically three files you need to modify:
- Your page content file for the home page: /config/xml/pagecontent/#homepageID#.xml
- Your home page content event box file: /flash/flashbox_home.fla
- Your perpetua event box setup file: /xml/defaults/eventbox/mod_flashbox.xml
Modify the Configuration File
This tutorial is assuming you have already set up the entire site with a page content event box on the home page. If you have not, you can find out how under the flash event box section and the site build out section of this site.
Open up your page content configuration file under /config/xml/pagecontent/#homepageID#.xml.
Within this file you should have your event box content region setup. Within this node add the xmloverride attribute to the end an set it equal to eventbox.xml it should look like this:
xmloverride="eventbox.xml"
Now go to your home page and re-save page content to generate your new eventbox.xml file.
Modify the Flash File
Open up the home page content event box you created. Make any cosmetic modifications if needed. Then modify the code in the actions layer on the first frame here:
Open up your actions window by going to Window > Actions:
From here modify the code of the _global.xmlFile variable from the dynamic content path to the xml file of this:
...to this:
Make sure you put both content paths for the "if" statement AND the "else" statement with the added forward slash before "xml". This is to cover all our bases for the content path to the eventbox.xml file.
Modify the mod_flashbox FIle
Just like you would add a new event box size in perpetua explained in the flash event box tutorial, you will add this event box the same way with one added element. add the node <allow_edit>0</allow_edit> to the list of nodes for your new flash option. This will turn off editing functionality for the event box. It won't affect the event box if they do add images and text like a normal event box, but this will remove confusion if the don't see those options at all. The final mod_flashbox.xml file should look similar to this:
<?xml version="1.0" encoding="UTF-8"?>
<flashbox>
<flashoption>
<basename>small</basename>
<displayname><![CDATA[Small]]></displayname>
<width>238</width>
<height>181</height>
<image_width>222</image_width>
<image_height>108</image_height>
<bgcolor></bgcolor>
<bgimage repeat="" position=""></bgimage>
</flashoption>
<flashoption>
<basename>global</basename>
<displayname><![CDATA[Global Site]]></displayname>
<width>256</width>
<height>165</height>
<image_width>222</image_width>
<image_height>108</image_height>
<allow_edit>0</allow_edit>
<bgcolor></bgcolor>
<bgimage repeat="" position=""></bgimage>
</flashoption>
</flashbox>
Test Your Event Box
Go to or create a hidden page. Add a new event box from the add items menu. Select your new event box from the size options. Click save and make sure it is pulling it's content from your home page event box. If not, go back through this tutorial and make sure you've completed all the steps.
subpages
- Auto Display Page Title
- Blog
- CSS Animations
- Drop Down Menu
- Email Subscription
- Google Fonts
- Google Maps API
- Header Videos
- Instagram Feed
- Layout Override
- On-Page Nav Scrolling
- Onecast / Latest Sermon
- Page Content
- Page Content Edit Buttons
- Parallax Scrolling
- Per Page SEO
- Permalink Conversion
- Popup Box
- Rotator / Event Box
- Sidebar Pop-out
- Site Search
- Slider
- Social Media Icons
- Split Navigation
- Staff Module
- Subpage Module
- TinyMCE Content Editor
- Twitter Feed
- Deprecated Add Ons