Extension : WI Direct to Structure
Posted: 03 November 2009 07:53 PM   [ Ignore ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  356
Joined  06-24-2007

If you use the Structure module, install this extension and you will be redirected to the main Structure page whenever you save/update a weblog entry.  Works great for sites manages exclusively(or mostly) from the Structure module. 

Planned Enhancements:
- Check that Structure is activated before activating itself
- Create Structure tab for you if one doesn’t exist
- Only redirect to Structure for weblogs that are assigned to Structure

Enjoy!

File Attachments
ext.wi_direct_to_structure.php.zip  (File Size: 2KB - Downloads: 494)
 Signature 

Chad Crowell | Encaffeinated, Inc. | @chadcrowell | @encaffeinated

Profile
 
 
Posted: 05 November 2009 01:04 PM   [ Ignore ]   [ # 1 ]  
Lab Assistant
RankRank
Total Posts:  111
Joined  11-20-2008

This is smart thinking : )

Profile
 
 
Posted: 05 November 2009 02:36 PM   [ Ignore ]   [ # 2 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  522
Joined  07-16-2005

Nice work sir! This is very handy. I’ll list this on the new site (launching tomorrow). Thanks for writing it!

 Signature 

Travis Schmeisser // rockthenroll


Structure is a powerful add-on that lets you create pages, generate navigation, manage content through a simple interface and build robust sites faster than ever.
http://buildwithstructure.com

Profile
 
 
Posted: 05 November 2009 04:50 PM   [ Ignore ]   [ # 3 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  565
Joined  06-13-2006

Very cool, thanks for making this.

 Signature 

Firespring - Senior Web Developer

Profile
 
 
Posted: 06 November 2009 08:52 AM   [ Ignore ]   [ # 4 ]  
Grad Student
Avatar
Rank
Total Posts:  56
Joined  09-11-2008

Cool - will definitely find a use for this… thanks grin

Profile
 
 
Posted: 08 November 2009 10:20 AM   [ Ignore ]   [ # 5 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  308
Joined  10-17-2007

Perfect - thanks.

Was going to hack the REEDirect plugin, this is exactly what was needed.

 Signature 

twobelowzero
EE add-ons support and comments
EE Shopping Cart and ecommerce solution (coming soon)

Profile
 
 
Posted: 10 November 2009 01:41 PM   [ Ignore ]   [ # 6 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  464
Joined  05-15-2007

Hi there,

This is pretty good, thanks.

Is there any chance this extension could allow users to be re-directed straight to the ‘Structure’ tab of the control panel on login?  Or certainly make that an option within the extension? (as not everyone might want this)  I feel that my clients will be logging into the control panel with the sole purpose of using Structure so any way to remove a step or simplify this process would be great.

Thanks,

Stephen

 Signature 

 
Stephen McIver | Made by Bridge | Liverpool, UK | Twitter

Profile
 
 
Posted: 10 November 2009 02:42 PM   [ Ignore ]   [ # 7 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  464
Joined  05-15-2007

By the way, I used this WI Direct extension in combination with removing the Publish/Edit tabs for the client Member Group, then hiding the My Account and Modules tab in the control panel using these extensions.

This has given me a really simple control panel with just a single tab. The last remaining step to ultra-simplifying the control panel would be for the CP Home page to be bypassed when logging in, and instead, to have the Structure tab appear as the first page they see after login. Not a major issue or anything of course! In fact, I might check out the Custom CP Home Panels extension in the meantime (or if this redirect isn’t possible) and just add some useful instructions/guidelines to that page instead.

 Signature 

 
Stephen McIver | Made by Bridge | Liverpool, UK | Twitter

Profile
 
 
Posted: 11 November 2009 08:29 AM   [ Ignore ]   [ # 8 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  308
Joined  10-17-2007

Stephen,

I do exactly the same and intend to work on an extension/module that allows you to easily customise the Control Panel (hiding tabs, redirect login/logout, forcing client layout and options), and more importantly fully customising the control panel home.

Peter.

 Signature 

twobelowzero
EE add-ons support and comments
EE Shopping Cart and ecommerce solution (coming soon)

Profile
 
 
Posted: 11 November 2009 04:58 PM   [ Ignore ]   [ # 9 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  464
Joined  05-15-2007

Hi Peter,

Sounds great - be sure to link to it here if you get the chance to release anything! grin

 Signature 

 
Stephen McIver | Made by Bridge | Liverpool, UK | Twitter

Profile
 
 
Posted: 29 March 2010 05:56 PM   [ Ignore ]   [ # 10 ]  
Summer Student
Total Posts:  5
Joined  06-16-2009

sm9,

How are you removing the Edit & Publish tabs?

Anna

Profile
 
 
Posted: 29 March 2010 06:05 PM   [ Ignore ]   [ # 11 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  464
Joined  05-15-2007
geee - 29 March 2010 09:56 PM

sm9,

How are you removing the Edit & Publish tabs?

Anna

I did it via the built-in EE Member Group permissions - there’s a permission for Control Panel Area Access, and I removed Edit and Publish via that.

However, I later found that at least one of them (sorry, can’t remember which and I no longer have that install live) was required in order to use Structure so I ended up having to reinstate them.

 Signature 

 
Stephen McIver | Made by Bridge | Liverpool, UK | Twitter

Profile
 
 
Posted: 30 March 2010 02:40 AM   [ Ignore ]   [ # 12 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  308
Joined  10-17-2007

Alternatively hack the EE core files: /system/cp/cp.display.php

line 997 and line 1045:

if ($p_lock == && $SESS->userdata["group_id"== 1

This will only show the tabs for super admin, but still lets the user access the new and edit screens.

 Signature 

twobelowzero
EE add-ons support and comments
EE Shopping Cart and ecommerce solution (coming soon)

Profile
 
 
Posted: 30 March 2010 10:31 AM   [ Ignore ]   [ # 13 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  240
Joined  08-07-2005

I ended up hiding the tabs using CSS which worked perfectly.

Seems like the structure module should come with a way to hide these tabs. Using CSS might be the easiest way to hide them.

 Signature 

Anna Brown ~ {ExpressionEngine Developer} ~ {Portfolio} ~ {Facebook} ~ {Twitter} ~ Corrales/Albuquerque, New Mexico

Expert front-end ExpressionEngine programmer for creative agencies, designers & direct clients.

Profile
 
 
Posted: 27 April 2010 12:18 AM   [ Ignore ]   [ # 14 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  176
Joined  11-20-2006

Great extension, super useful!

Is it possible to add a “Saved” dialogue to the Structure page once a user saves their entry?

Thanks again!

Profile
 
 
Posted: 29 April 2010 02:31 AM   [ Ignore ]   [ # 15 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  308
Joined  10-17-2007

Without wanting to sway you from this extension, you might want to look at the Entry Redirect extension which redirects after saving and shows a success message briefly at the top of the screen (length of time can be set).  It also gives more freedom in where to redirect, so you can set Asset weblogs to list the entries, whereas pages go to the Structure screen, you can also return to the publish screen for continually creating new entries, and much more.

 Signature 

twobelowzero
EE add-ons support and comments
EE Shopping Cart and ecommerce solution (coming soon)

Profile