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}
{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.
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
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.)
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
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.