Code Monkey home page Code Monkey logo

globalresourceloader's Introduction

Global Resource Loader

The Global Resource Loader allows you to add data sources and events to all your pages quickly.

Installation

  1. Upload the globalresourceloader folder in this archive to your Symphony /extensions folder.
  2. Enable it by selecting the "Global Resource Loader", choose Enable from the with-selected menu, then click Apply.
  3. View the Blueprints > Globals page to make changes.

globalresourceloader's People

Contributors

brendo avatar jpstuehler avatar michael-e avatar nathanhornby avatar nickdunn avatar nils-werner avatar nitriques avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

globalresourceloader's Issues

Throws a frontend error if a globally assigned DS is deleted

Steps to reproduce:

  1. assign a DS globally
  2. delete that DS in the DS-list
  3. open frontend page

The resulting error message is not indicating the problem properly. It only mentions the DS missing but not that globalresourceloader is missing it. An error in the XML-output or even logs should be enough.

Error messages if no excluded pages exist

As long as there are no excluded pages defined, the extension will throw PHP errors in Symphony's log file, like this:

2009/08/10 12:27:47 > WARNING: 2 - implode() [function.implode]: Invalid arguments passed in file /Users/me/Sites/dev/symphony-205/extensions/globalresourceloader/extension.driver.php on line 100
2009/08/10 12:27:47 > WARNING: 2 - implode() [function.implode]: Invalid arguments passed in file /Users/me/Sites/dev/symphony-205/extensions/globalresourceloader/extension.driver.php on line 138

This can easily be solved by changing lines 100 and line 138 of extension.driver.php from:

$pages = implode(',', $pages);

to

$pages = @implode(',', $pages);

Save Changes Button has no effect

I make my selection and hit the save changes, but it has no effect in the Data Sources Page.
It saves the same selection when i get back to the Global Resources page, but the data sources doesn't change at all!

Navigation group is wrong

Due to changes in Symphony's navigation grouping mechansim, the "Globals" menu item appears under "System" which is not intended. It should appear under "Blueprints".

WARNING: 512 - MySQL Error (1146)

This is a fantastic extension, Rowan! Thank you for this.

I was puzzled when doing a MySQL dump to transfer a site from a Windows laptop to an Intel iMac (the guys at work brought my Mac so I can work from home while following doctor's orders) why the only thing that appeared to be an issue in the transfer was the missing preferences for the Global Resource Loader extension. I reselected the data sources and events in the preferences page and it's all working fine again, but I'm seeing several lines of this error in my logs:

2009/07/21 21:20:50 > WARNING: 512 - MySQL Error (1146): Table 'bauhouse.sym_gpl_sets' doesn't exist in query "SELECT
                    s.*
                FROM
                    `sym_gpl_sets` AS s
                ORDER BY
                    s.name ASC" in file /Users/stephen/Sites/bauhouse/www/symphony/lib/toolkit/class.mysql.php on line 401

I am wondering if this has to do with the __viewIndexDSPages function at line 157 in the content.preferences.php file of the extension:

    public function __viewIndexDSPages($context) {
        $pages = $this->_Parent->Database->fetch("
            SELECT
                p.*
            FROM
                tbl_pages AS p
            ORDER BY
                p.sortorder ASC
        ");

But, I have no idea how tbl_pages becomes sym_gpl_sets. Any thoughts on where this error is coming from?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.