We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Plugin directory

Development and Programming

samdavey's avatar
samdavey
4 posts
15 years ago
samdavey's avatar samdavey

Hi there. I’m new to Expression Engine, not to PHP/MySQL.

I want to develop a plugin that grabs data from a database and formats it. I would like it to be used in a template like this:

{exp:pluginName:specificMethod}
<li><a href="http://{url}">{text}</a></li>
{/exp:pluginName:specificMethod}

where “specificMethod” is some set routine querying a database, and where the row is looped for the number of records found.

I have a few questions.

  1. Is it a plugin that I want? I don’t need to configure it or anything like that, but I read somewhere that a plugin is for template-type actions, and querying the database is hardly front-end. Would a module or extension be more appropriate?

  2. Which plugin folder do I use? I see “system/plugins”, “system/expressionengine/plugins”, and “system/expressionengine/third_party”. I’ve read that it should be “system/plugins”, but the “Magpie RSS Parser” and “XML Parser” plugins that ship with Expression Engine are under system/expressionengine/plugins… The Hello_world plugin from http://expressionengine.com/docs/development/plugins.html that I tested with doesn’t seem to get registered no matter where I put it.

  3. Somewhat related to #2. Is there some cache-clearing or setting-changes required to get the plugin to display in the plugins manager in the control panel? It’s not showing up on a browser refresh, and the editing templates gives a “plugin not found” warning.

Here is the source for Hello_world (direct from http://expressionengine.com/docs/development/plugins.html):

<?php

class Hello_world
{

var $return_data = "";

  function Hello_world()
  {
    $this->return_data = "Hello World";
  }

}

?>

The file name is “pi.hello_world.php”, and I tried placing it in “system/plugins”, “system/experssionengine/plugins”, and “system/expressionengine/thrid_party” with no effect.

Many thanks,

Anthony

       
samdavey's avatar
samdavey
4 posts
15 years ago
samdavey's avatar samdavey

Also, I’m using ExpressionEngine v2.0.2 on Windows XP with WAMP Server 2.0 from http://www.wampserver.com/

       
samdavey's avatar
samdavey
4 posts
15 years ago
samdavey's avatar samdavey

Sorted questions 2 and 3. For any other people having trouble RE plugins not being found, have a look here: http://ellislab.com/forums/viewthread/150724/

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.