1 of 2
1
Developer Plugin
Posted: 28 August 2007 02:08 PM   [ Ignore ]  
Lab Assistant
RankRank
Total Posts:  269
Joined  06-20-2005

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

Image Attachments
3.jpg
Click thumbnail to see full-size image
File Attachments
Pur_developer.zip  (File Size: 16KB - Downloads: 260)
 Signature 

   Purple Dogfish | Member of EE Pro Network

Profile
 
 
Posted: 28 August 2007 07:55 PM   [ Ignore ]   [ # 1 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1376
Joined  01-05-2007

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.

 Signature 

 
Steven Hambleton | ExpressionEngine Development for Web & Graphic Design Agencies

Profile
 
 
Posted: 28 August 2007 08:22 PM   [ Ignore ]   [ # 2 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1376
Joined  01-05-2007

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

 Signature 

 
Steven Hambleton | ExpressionEngine Development for Web & Graphic Design Agencies

Profile
 
 
Posted: 29 August 2007 12:59 AM   [ Ignore ]   [ # 3 ]  
Grad Student
Rank
Total Posts:  42
Joined  03-21-2007

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

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.

Profile
 
 
Posted: 29 August 2007 01:07 AM   [ Ignore ]   [ # 4 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1376
Joined  01-05-2007

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.

 Signature 

 
Steven Hambleton | ExpressionEngine Development for Web & Graphic Design Agencies

Profile
 
 
Posted: 29 August 2007 01:22 AM   [ Ignore ]   [ # 5 ]  
Lab Assistant
RankRank
Total Posts:  269
Joined  06-20-2005
stinhambo - 29 August 2007 01:07 AM

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

 Signature 

   Purple Dogfish | Member of EE Pro Network

Profile
 
 
Posted: 29 August 2007 01:30 AM   [ Ignore ]   [ # 6 ]  
Lab Assistant
RankRank
Total Posts:  269
Joined  06-20-2005
neekster - 29 August 2007 12:59 AM

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

 Signature 

   Purple Dogfish | Member of EE Pro Network

Profile
 
 
Posted: 29 August 2007 01:39 AM   [ Ignore ]   [ # 7 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1376
Joined  01-05-2007

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.

 Signature 

 
Steven Hambleton | ExpressionEngine Development for Web & Graphic Design Agencies

Profile
 
 
Posted: 29 August 2007 03:20 AM   [ Ignore ]   [ # 8 ]  
Grad Student
Avatar
Rank
Total Posts:  63
Joined  09-08-2006

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

 Signature 

Stan Majerski
http://www.elementalmedia.info

Profile
 
 
Posted: 29 August 2007 05:37 AM   [ Ignore ]   [ # 9 ]  
Grad Student
Avatar
Rank
Total Posts:  84
Joined  03-15-2007

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.

 Signature 

backpackingmalaysia.com ||| SAMA SAMA media service

- Be change you want to see in the world.-

Profile
 
 
Posted: 29 August 2007 07:39 AM   [ Ignore ]   [ # 10 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  193
Joined  04-29-2007

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.

 Signature 

carvingCode | carving unique nooks in the web™ | blog

Profile
 
 
Posted: 29 August 2007 10:18 AM   [ Ignore ]   [ # 11 ]  
Lab Assistant
RankRank
Total Posts:  269
Joined  06-20-2005
stinhambo - 29 August 2007 01:39 AM

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

 Signature 

   Purple Dogfish | Member of EE Pro Network

Profile
 
 
Posted: 29 August 2007 10:22 AM   [ Ignore ]   [ # 12 ]  
Lab Assistant
RankRank
Total Posts:  269
Joined  06-20-2005
Tilo - 29 August 2007 05:37 AM

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

 Signature 

   Purple Dogfish | Member of EE Pro Network

Profile
 
 
Posted: 29 August 2007 11:25 AM   [ Ignore ]   [ # 13 ]  
Grad Student
Avatar
Rank
Total Posts:  84
Joined  03-15-2007

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

 Signature 

backpackingmalaysia.com ||| SAMA SAMA media service

- Be change you want to see in the world.-

Profile
 
 
Posted: 29 August 2007 11:27 AM   [ Ignore ]   [ # 14 ]  
Grad Student
Avatar
Rank
Total Posts:  60
Joined  08-18-2006

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!

 Signature 

“The Road to Success is Always Under Construction”

Profile
 
 
Posted: 29 August 2007 11:31 AM   [ Ignore ]   [ # 15 ]  
Lab Assistant
RankRank
Total Posts:  269
Joined  06-20-2005

Hi,

The plugin needs to do a bit of checking to see what the index.php file is etc. I neglected to do that properly. I’ll fix that and put up a new version.

Cheers

Dry

 Signature 

   Purple Dogfish | Member of EE Pro Network

Profile
 
 
Posted: 29 August 2007 06:02 PM   [ Ignore ]   [ # 16 ]  
Lab Assistant
RankRank
Total Posts:  269
Joined  06-20-2005

I’ve uploaded version 1.1 which should fix the link issues. Please download it from the first post.

Cheers

Dry

 Signature 

   Purple Dogfish | Member of EE Pro Network

Profile
 
 
Posted: 29 August 2007 09:51 PM   [ Ignore ]   [ # 17 ]  
Grad Student
Avatar
Rank
Total Posts:  60
Joined  08-18-2006

I downloaded the lastest version and the links are now correct.

Great Job!

 Signature 

“The Road to Success is Always Under Construction”

Profile
 
 
Posted: 02 September 2007 09:26 AM   [ Ignore ]   [ # 18 ]  
Lab Assistant
RankRank
Total Posts:  118
Joined  08-22-2007

WOW!  Excellent tool!  A world of thanks to you for sharing!!!

Regards,

Rick

Profile
 
 
   
1 of 2
1
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 10:33 AM
Total Registered Members: 60711 Total Logged-in Users: 20
Total Topics: 73164 Total Anonymous Users: 9
Total Replies: 394606 Total Guests: 515
Total Posts: 467770    
Members ( View Memberlist )