1 of 2
1
SL Field Formatting : Pain-free customisation of EE’s field formatting options.
Posted: 15 May 2009 10:55 AM   [ Ignore ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  507
Joined  03-21-2006

IMPORTANT UPDATE : April 1st, 2010

Support for the Field Formatting add-on has been moved to the Experience Internet support site.

I’m still subscribed to this thread, but any future posts with be greeted with a polite request to re-post on the official support site.

—-

Hello all,

As Ryan Masuga blogged a few weeks back, creating weblog fields with custom formatting in ExpressionEngine is a pain.

Create the field, save it, open it for editing, click “Edit List” to update the available formatting options, dismiss the warning dialogue, update the formatting selections, save the form, select the required formatting from the new list of available options, save the field, weep, repeat.

SL Field Formatting is here to save you from the tedium, without the need to hack your core files.

Easily specify the default list of formatting options that will appear for all new weblog fields, and seamlessly update all of your existing fields, whilst respecting their currently selected formatting.

As ever, the download and full documentation are available on my site.

Enjoy.

Stephen

 Signature 

Stephen Lewis |  EE Addons  |  Twitter  |  Custom EE Addon Development

Profile
 
 
Posted: 15 May 2009 11:00 AM   [ Ignore ]   [ # 1 ]  
Professor
Avatar
RankRankRankRankRankRankRank
Total Posts:  13726
Joined  04-15-2006

Hi Stephen,

Thanks for this one. Looks great. I’m pretty sure I know one other person who will love this too wink

Pretty sure that Sean had mentioned this a while back too on a thread in here so this will be great.

Best wishes,

Mark

 Signature 

Shopping Cart Plugin | Full List Of Add-Ons | About Me
——————————————————————————————
2.x Bug Tracker | Upgrade Errors

Profile
 
 
Posted: 15 May 2009 11:31 AM   [ Ignore ]   [ # 2 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  507
Joined  03-21-2006

Cheers Mark. Hopefully I’m not too late to save a few of us from RSI.

Stephen

 Signature 

Stephen Lewis |  EE Addons  |  Twitter  |  Custom EE Addon Development

Profile
 
 
Posted: 17 May 2009 05:27 AM   [ Ignore ]   [ # 3 ]  
Moderator
Avatar
RankRankRankRankRank
Total Posts:  3300
Joined  05-13-2004
Mark Bowen - 15 May 2009 03:00 PM

Hi Stephen,

Thanks for this one. Looks great. I’m pretty sure I know one other person who will love this too wink

Pretty sure that Sean had mentioned this a while back too on a thread in here so this will be great.

Best wishes,

Mark

yes indeed I did mention that and just found this extension now. Will be making it a default for my install process.

 Signature 

Recent version: EE 2.4.0 | 2.x Bug Tracker | How to Post a Support Request | Version Upgrade | 2.4.0 Change Log

on twitter @CS_sean

Profile
 
 
Posted: 17 May 2009 11:22 AM   [ Ignore ]   [ # 4 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  507
Joined  03-21-2006

Will be making it a default for my install process.

Excellent. In the words of stinhambo “this is going straight to the pool room!”

Cheers,
Stephen

 Signature 

Stephen Lewis |  EE Addons  |  Twitter  |  Custom EE Addon Development

Profile
 
 
Posted: 18 June 2009 10:53 AM   [ Ignore ]   [ # 5 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1505
Joined  06-05-2007

I installed this on my site and when I go to the settings it just gives me a blank page.  Not sure what I’m doing wrong.

 Signature 

Marshall Grant   |  grantmx.com  |  Atlanta, GA   |  design  |  development  |  @grantmx

Profile
 
 
Posted: 18 June 2009 11:07 AM   [ Ignore ]   [ # 6 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1505
Joined  06-05-2007

So I successfully installed it on another site and tried to convert a standard field with formatting ‘none’ into a nGen file-field which contained uploaded images via the EE upload (so in this format {fildir_1}image.jpg) and this is the error I get:

Warningexif_imagetype(/.../..../.../maizebreak.com/images/uploads/{filedir_1}chuck-norris-inline.jpg
[function.exif-imagetype]failed to open streamNo such file or directory in /.../..../.../maizebreak.com/.../extensions/fieldtypes/ngen_file_field/ft.ngen_file_field.php on line 742 

Is this not possible?  If so, what type of “field-type to field-type” conversions does it support?  Thanks!

 Signature 

Marshall Grant   |  grantmx.com  |  Atlanta, GA   |  design  |  development  |  @grantmx

Profile
 
 
Posted: 18 June 2009 11:53 AM   [ Ignore ]   [ # 7 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  507
Joined  03-21-2006

Hi Grant,

So I successfully installed it on another site and tried to convert a standard field with formatting ‘none’ into a nGen file-field which contained uploaded images via the EE upload (so in this format {fildir_1}image.jpg) and this is the error I get:

I’m confused as to what you’re attempting to do here.

Just to clarify, the extension is specifically designed to make it easy to set the default formatting options that are available when you create a new (usually text area) custom weblog field.

The error looks like there’s a problem with your file upload location, which is unlikely to be related to this extension (in fact, I can’t think how it could be).

Cheers,
Stephen

 Signature 

Stephen Lewis |  EE Addons  |  Twitter  |  Custom EE Addon Development

Profile
 
 
Posted: 18 June 2009 12:21 PM   [ Ignore ]   [ # 8 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1505
Joined  06-05-2007

Ok, I was under the impression that I can take any type of already created field and change the “field type”, as long as it was similar and it would keep the existing data in that field and also update the field type.

 Signature 

Marshall Grant   |  grantmx.com  |  Atlanta, GA   |  design  |  development  |  @grantmx

Profile
 
 
Posted: 18 June 2009 12:34 PM   [ Ignore ]   [ # 9 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1505
Joined  06-05-2007

I see where the error is coming from now.  It was thinking that

{filedir_1} 

was a part of the directory path to the image: chuck-norris-inline.jpg

 Signature 

Marshall Grant   |  grantmx.com  |  Atlanta, GA   |  design  |  development  |  @grantmx

Profile
 
 
Posted: 18 June 2009 12:55 PM   [ Ignore ]   [ # 10 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  507
Joined  03-21-2006

Hi Grant,

Ok, I was under the impression that I can take any type of already created field and change the “field type”, as long as it was similar and it would keep the existing data in that field and also update the field type.

You’re confusing field types with field formatting. This extension is concerned solely with the latter (see attached explanatory screenshot).

Cheers,
Stephen

Image Attachments
Field Type vs Field Formatting.png
Click thumbnail to see full-size image
 Signature 

Stephen Lewis |  EE Addons  |  Twitter  |  Custom EE Addon Development

Profile
 
 
Posted: 18 June 2009 01:05 PM   [ Ignore ]   [ # 11 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1505
Joined  06-05-2007

Gotcha!  wink Kinda came to that same conclusion after a bit of brain power…which I seriously lack sometimes.  red face

I noticed that you can select plugins as formatting options.  If I choose a plugin, does it pseudo wrap the field and format it based on the plugin?  If so, what about the plugin’s parameters?  How does that work?

 Signature 

Marshall Grant   |  grantmx.com  |  Atlanta, GA   |  design  |  development  |  @grantmx

Profile
 
 
Posted: 18 June 2009 01:35 PM   [ Ignore ]   [ # 12 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  507
Joined  03-21-2006

Hi Grant,

I noticed that you can select plugins as formatting options.  If I choose a plugin, does it pseudo wrap the field and format it based on the plugin?  If so, what about the plugin’s parameters?  How does that work?

For reasons best known to EllisLab, every plugin is automatically made available as a formatting option, regardless of whether it makes sense to do so (Magpie, XML Encode, Randomizer, eh?).

Basically it’s up to you to exercise some common sense, and choose a plugin that will actually do something sensible with the text you enter.

For example, if you choose the “Markdown” plugin for a field’s formatting, you can then happily use Markdown in the text area, and EE takes care of the conversion to HTML behind the scenes. No need to add extra {exp:markdown} tags (or the like) to your templates.

Hope that makes sense.

Stephen

 Signature 

Stephen Lewis |  EE Addons  |  Twitter  |  Custom EE Addon Development

Profile
 
 
Posted: 18 June 2009 01:45 PM   [ Ignore ]   [ # 13 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1505
Joined  06-05-2007

Oh, ok.  Cool.  Thanks Stephen!

 Signature 

Marshall Grant   |  grantmx.com  |  Atlanta, GA   |  design  |  development  |  @grantmx

Profile
 
 
Posted: 15 September 2009 12:53 AM   [ Ignore ]   [ # 14 ]  
Research Assistant
RankRankRank
Total Posts:  445
Joined  02-22-2006

[deleted]

 Signature 

EE2 Plugins: Eencode, Includee, Keywordz, x2html, SizePlus, APStylee

Profile
 
 
Posted: 15 September 2009 02:48 AM   [ Ignore ]   [ # 15 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  507
Joined  03-21-2006

Hi mhulse,

That’s a swine of a bug. I’ll see if I can fix it on my side of things, without getting into nasty plugin-specific hacks.

Thanks for taking the time to let me know about the problem.

Cheers,
Stephen

 Signature 

Stephen Lewis |  EE Addons  |  Twitter  |  Custom EE Addon Development

Profile
 
 
Posted: 15 September 2009 05:30 AM   [ Ignore ]   [ # 16 ]  
Research Assistant
RankRankRank
Total Posts:  445
Joined  02-22-2006

After a bit more research, I think my problem was unrelated to this plugin (just pure coincidence that I noticed the problem right after installing this plug.)

Sorry! :(

Loving this extension though!

Have an excellent day.

Cheers,
Micky

 Signature 

EE2 Plugins: Eencode, Includee, Keywordz, x2html, SizePlus, APStylee

Profile
 
 
Posted: 15 September 2009 08:12 AM   [ Ignore ]   [ # 17 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  507
Joined  03-21-2006

After a bit more research, I think my problem was unrelated to this plugin (just pure coincidence that I noticed the problem right after installing this plug.)

No problem Micky, thanks for letting me know. Glad you’re liking the addon.

Cheers,
Stephen

 Signature 

Stephen Lewis |  EE Addons  |  Twitter  |  Custom EE Addon Development

Profile
 
 
Posted: 13 October 2009 10:14 AM   [ Ignore ]   [ # 18 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  331
Joined  02-05-2009

Anyone else having any trouble w/ this extension?

Ran into a problem where I couldn’t add a custom field. Through the tedious process of elimination, turning off & on groups of extensions, I can now add a field, but the settings page for Field Formatting gives me a white screen.

I downloaded and replaced the files, but still no go.

Ideas?

 Signature 

TucsonSentinel.com - we’re watching Tucson

Profile
 
 
   
1 of 2
1