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

SL Field Formatting : Pain-free customisation of EE's field formatting options.

Development and Programming

Stephen Lewis's avatar
Stephen Lewis
466 posts
16 years ago
Stephen Lewis's avatar Stephen Lewis

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

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

Hi Stephen,

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

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

Best wishes,

Mark

       
Stephen Lewis's avatar
Stephen Lewis
466 posts
16 years ago
Stephen Lewis's avatar Stephen Lewis

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

Stephen

       
Sean C. Smith's avatar
Sean C. Smith
3,818 posts
16 years ago
Sean C. Smith's avatar Sean C. Smith
Hi Stephen, Thanks for this one. Looks great. I’m pretty sure I know one other person who will love this too 😉 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.

       
Stephen Lewis's avatar
Stephen Lewis
466 posts
16 years ago
Stephen Lewis's avatar Stephen Lewis
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

       
grantmx's avatar
grantmx
1,439 posts
16 years ago
grantmx's avatar grantmx

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.

       
grantmx's avatar
grantmx
1,439 posts
16 years ago
grantmx's avatar grantmx

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:

Warning: exif_imagetype(/.../..../.../maizebreak.com/images/uploads/https://ellislab.com/asset/images/team-photo/chuck-norris-inline.jpg) 
[function.exif-imagetype]: failed to open stream: No 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!

       
Stephen Lewis's avatar
Stephen Lewis
466 posts
16 years ago
Stephen Lewis's avatar Stephen Lewis

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

       
grantmx's avatar
grantmx
1,439 posts
16 years ago
grantmx's avatar grantmx

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.

       
grantmx's avatar
grantmx
1,439 posts
16 years ago
grantmx's avatar grantmx

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

https://ellislab.com/asset/images/team-photo/

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

       
Stephen Lewis's avatar
Stephen Lewis
466 posts
16 years ago
Stephen Lewis's avatar Stephen Lewis

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

       
grantmx's avatar
grantmx
1,439 posts
16 years ago
grantmx's avatar grantmx

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

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?

       
Stephen Lewis's avatar
Stephen Lewis
466 posts
16 years ago
Stephen Lewis's avatar Stephen Lewis

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

       
grantmx's avatar
grantmx
1,439 posts
16 years ago
grantmx's avatar grantmx

Oh, ok. Cool. Thanks Stephen!

       
mhulse's avatar
mhulse
329 posts
15 years ago
mhulse's avatar mhulse

[deleted]

       
1 2

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.