Welcome Guest, Not a member yet? Register   Sign In
PyroCMS v0.9.7.4 - an open-source modular general purpose CMS

[eluser]ray73864[/eluser]
[quote author="BenneX" date="1245168398"][quote author="ray73864" date="1245167157"]Onto my next question too, how do i create a new module? i have followed the website post and have looked at the other modules, i can get the module to work fine on the website itself, and i can get it to work in the admin section too.

However i can't for the life of me figure out how to get the admin controller to appear in the sidebar with the rest of the modules.

my details.xml file looks like this:

Quote:<?xml version="1.0" encoding="UTF-8"?>
<module version="0.1" type="content">
<name>Chamber Members</name>
<description>Displays a table listing all the chamber members.</description>
<is_frontend>1</is_frontend>
<is_backend>1</is_backend>
<required>1</required>
<controllers>
<controller name="admin">
<method>index</method>
<method>create</method>
<method>edit</method>
<method>delete</method>
</controller>
</controllers>
<navigation>
<admin>
<new_item href="admin/members/create">New Chambers Member</new_item>
</admin>
</navigation>
</module>
[/quote]

Maybe it breaks down by trying to add the icon you haven't set...[/quote]

I did have an icon setting in there before, but when i examine the sidebar.php view, the idea is that if it doesn't find an <icon></icon> setting, it will just use the default folder_48 icon.


Messages In This Thread
PyroCMS v0.9.7.4 - an open-source modular general purpose CMS - by El Forum - 06-16-2009, 05:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB