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

BN Useful Tab (Use tabs in templates)

Development and Programming

Chris Newton's avatar
Chris Newton
440 posts
16 years ago
Chris Newton's avatar Chris Newton

This extension will allow you to use the tab key to create tab characters in the template editor, rather than tab you into the next field. This extension has been tested working on IE7, Firefox 3, and Safari 3.2.1 on the Mac, and Safari 3.1.1

Using this will allow you to create something like this in the template editor,

{exp:weblog:entries weblog="jobs"}
    {if member_group == "1" OR "{assigned}"=="{member_id}"}
        {if portfolio_dev_link!=""}
            <a href="http://{portfolio_dev_link}">{portfolio_client}</a>
        {if:else}
            <a href="#" class="{switch=">{portfolio_client} {portfolio_job_name}</a>
        {/if}
    {/if}
{/exp:weblog:entries}
instead of this:
{exp:weblog:entries weblog="jobs"}
{if member_group == "1" OR "{assigned}"=="{member_id}"}
{if portfolio_dev_link!=""}
<a href="http://{portfolio_dev_link}">{portfolio_job_name}</a>
{if:else}
<a href=”#” class=”{switch=">{portfolio_client} {portfolio_job_name}</a>
{/if}
{/if}
{/exp:weblog:entries}

Please post here if you have any issues with this and I’ll work to correct them asap.

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen

Hiya,

Nice little addition thanks. I actually use the Publish Page Improvements extension which has this in it but this is definitely going into my arsenal of extensions 😊

Best wishes,

Mark

       
Chris Newton's avatar
Chris Newton
440 posts
16 years ago
Chris Newton's avatar Chris Newton

PublishImprove’s template tab didn’t work in Safari for Mac.

That being said, I just tested them and they’ll both play together well though, even if PublishImprove has its template tab setting enabled. If my extension is enabled, it’ll ‘fix’ the Safari issue (I think if PI changed it’s js keystroke detecting method to document.onkeydown, instead of onkeypress it’d work.)

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen
PublishImprove’s template tab didn’t work in Safari for Mac.

I’m using it on Safari on Mac, have been ever since it came out 😊

       
Chris Newton's avatar
Chris Newton
440 posts
16 years ago
Chris Newton's avatar Chris Newton

So that’s the case for you… which is excellent. On the several different Macs I’ve tried it on in my office, the tab function doesn’t work. There must be some subtle configuration difference that has caused PublishImprove’s tab setting to not to work here.

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen
There must be some subtle configuration difference that has caused PublishImprove’s tab setting to not to work here.

Yep I’ve been using Macs since 1987 so somehow have always managed to coax them to do what I want 😉

Again thanks for this extension though as I don’t always need the Publish Page extension so this one is awesome in its own right.

Best wishes,

Mark

       
Chris Newton's avatar
Chris Newton
440 posts
16 years ago
Chris Newton's avatar Chris Newton
  1. Newb.
       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen
1987. Newb.

Well I was only 13 at the time and Macs had only been around for 3 years before that. I think that’s pretty good isn’t it? 😉

       
bytte's avatar
bytte
47 posts
16 years ago
bytte's avatar bytte

This is awesome as the tab issue has always bothered me before!

       
running with scissors's avatar
running with scissors
147 posts
16 years ago
running with scissors's avatar running with scissors

i never could get the tab feature to work in the publish improvement extension either, so this is very helpful. however, wasn’t there another extension that did the same thing? either way, thanks.

       
Chris Newton's avatar
Chris Newton
440 posts
16 years ago
Chris Newton's avatar Chris Newton

There are several that do about the same, but none of them worked for me. Due to a minor difference… mine seems to work on Safari for the Mac, as well as IE on Windows & Firefox on the Mac & PC.

All I care about in the end is that mine works for me 😊

       
m4thew's avatar
m4thew
21 posts
15 years ago
m4thew's avatar m4thew

Just installed this and it works. Thanks!

       

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.