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

Developer Plugin

Development and Programming

Greg Salt's avatar
Greg Salt
3,988 posts
17 years ago
Greg Salt's avatar Greg Salt

I finally updated this. It is now an extension and works both in the CP and on templates. Please check it out in the new thread. I’ll leave the plugin here for reference but it is now deprecated and probably won’t work anyway!

Hi,

We had a need for some way to easily see cat_ids, field_ids etc when developing templates so we came up this little plugin.

After adding the plugin tags to a template, and if you are logged in as a Super Admin, a small tab appears at the top left. Clicking this opens a pane with 6 tables of data:

Weblogs, Member Groups, Categories, Weblog Fields, Admin Quicklinks and Weblog Entries

Each table line has shortcut links that will open that specific item in the CP in a new window.

There are two tags:

{exp:pur_developer:js}

Should be placed within the <head> of your template. This adds links to the Javascript and the CSS.

{exp:pur_developer}

Should be placed directly after the <body> tag. This creates the developer pane tab and populates the tables.

The attached image shows the developer pane open on a template. Any suggestions or feedback very welcome.

Cheers

Dry

P.S. copy the pur_developer folder containing the image, CSS and JS into the plugins folder

Update 1.1 Changed the way the links are generated to use system-generated PATH variables

       
stinhambo's avatar
stinhambo
1,268 posts
17 years ago
stinhambo's avatar stinhambo

Wow this looks better than the cheat sheet method I normally use. I’ll give it a go today and let you know if there are any problems.

       
stinhambo's avatar
stinhambo
1,268 posts
17 years ago
stinhambo's avatar stinhambo

Nothing happening here. Do I need to add a login feature to the site to get this going then?

       
mojacreative's avatar
mojacreative
50 posts
17 years ago
mojacreative's avatar mojacreative

Oh now this I like, wow I love this community 😊

I’m getting one problem with broken links, where image paths etc are rendered as index.phpeeadm/index.php. Not had time to look at it yet, but I’m sure I will find a stray index.php in a system path somewhere!

stinhambo, I did a test, and it only appears if your logged in as a superadmin via the backend. If your logged in using the login function from the frontend, it does not work. Logging in via the backend will give you a sessionid, which is what I think is required.

Just make take on what could be causing it.

       
stinhambo's avatar
stinhambo
1,268 posts
17 years ago
stinhambo's avatar stinhambo

Mmmm if I click on the ‘My Site’ link at the top, I get the local server address (where I was originally developing) and not the web version. I wonder if this has something to do with my I get nothing.

       
Greg Salt's avatar
Greg Salt
3,988 posts
17 years ago
Greg Salt's avatar Greg Salt
Mmmm if I click on the ‘My Site’ link at the top, I get the local server address (where I was originally developing) and not the web version. I wonder if this has something to do with my I get nothing.

Hi Stinhambo,

Do you mean the ‘My Site’ link in the control panel? If so, you can edit this ‘Quicklink’ using the ‘My Account’ tab. Once logged in just open another window and navigate to your site.

Cheers

Dry

       
Greg Salt's avatar
Greg Salt
3,988 posts
17 years ago
Greg Salt's avatar Greg Salt
I’m getting one problem with broken links, where image paths etc are rendered as index.phpeeadm/index.php. Not had time to look at it yet, but I’m sure I will find a stray index.php in a system path somewhere!

Hi Neekster,

Hmm, odd. Are you using .htaccess to remove index.php from URLs?

Cheers

Dry

       
stinhambo's avatar
stinhambo
1,268 posts
17 years ago
stinhambo's avatar stinhambo

Dry,

I’m sorry to say that nothing at all is happening. The plugin is showing up ok in the Plugin screen and the folder is nicely placed in the plugins folder too.

       
elemental's avatar
elemental
77 posts
17 years ago
elemental's avatar elemental

Thanks for this plugin. I tried it out and it works. Useful.

       
Tilo's avatar
Tilo
81 posts
17 years ago
Tilo's avatar Tilo

thanks for the plugin. Very handy, I put it on one of my pages to have quick access to the category IDs and most importantly to the costum weblog fields, that should save some clicks. I’m also having the same problem that it adds the link url after the index.php, without the index.php it would work.

       
carvingCode's avatar
carvingCode
380 posts
17 years ago
carvingCode's avatar carvingCode

Installed, added tags, and all worked fine.

Comment: It seems to me, at first thought, that this plugin would be more useful if it worked on the Control Panel rather than on the web site. For those of us who do tweeks/additions to live sites, the plugin really couldn’t be used and, as there’s no “on/off” button, cumbersome to add/remove tags. It seems the info the plugin provides is really backend stuff.

That said, I think you’ve done a great job with this and will look for ways it might come in handy here.

       
Greg Salt's avatar
Greg Salt
3,988 posts
17 years ago
Greg Salt's avatar Greg Salt
Dry, I’m sorry to say that nothing at all is happening. The plugin is showing up ok in the Plugin screen and the folder is nicely placed in the plugins folder too.

HI Stinhambo,

You have to be logged in as a Super Admin for the tab to appear. All I can think of is that your admin session is not active when you’re looking at your site front end. Which browser/OS are you using?

Cheers

Dry

       
Greg Salt's avatar
Greg Salt
3,988 posts
17 years ago
Greg Salt's avatar Greg Salt
thanks for the plugin. Very handy, I put it on one of my pages to have quick access to the category IDs and most importantly to the costum weblog fields, that should save some clicks. I’m also having the same problem that it adds the link url after the index.php, without the index.php it would work.

Hi Tilo,

Ah ok. Are you removing index.php from your URLs using .htaccess or have you changed the name of your index.php file?

Cheers

Dry

       
Tilo's avatar
Tilo
81 posts
17 years ago
Tilo's avatar Tilo

Hi Dry,

I’m still in development stage so I’m actually still using the index.php but I want to get rid of it the next days before I go online.

Tilo

       
Charles Boudinot's avatar
Charles Boudinot
87 posts
17 years ago
Charles Boudinot's avatar Charles Boudinot

Great Plugin.

I too, was having the same link issues as posted above and yes I have renamed my index.php to “go” instead. My links were appearing as http://www.example.com/gosystemfolder/index.php….

As a quick fix I simply replaced all the {homepage} tags in the pi.pur_developer.php with http://www.example.com/ and that corrected the link issue for me.

Everything seems to work fine now.

Again, great plugin!

       
1 2 3

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.