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

Widon't

Development and Programming

Low's avatar
Low
407 posts
18 years ago
Low's avatar Low

Shaun Inman created this neat little plugin for Wordpress to eliminate widows from post titles. From his website:

For those who don’t know, in typesetting, a widow is a single word on a line by itself at the end of a paragraph and is considered bad style.

I took the liberty of porting this plugin to EE. Posted to plugins.pmachine.com and available on my site.

       
PXLated's avatar
PXLated
1,800 posts
18 years ago
PXLated's avatar PXLated

Cool…being an old print designer, I notice things like widows and it drives me nuts.

       
Ingmar Greil's avatar
Ingmar Greil
29,243 posts
18 years ago
Ingmar Greil's avatar Ingmar Greil

So, what are we gonna do about orphans, then? 😊 Nice plugin, Lodewijk.

       
John Henry Donovan's avatar
John Henry Donovan
12,339 posts
18 years ago
John Henry Donovan's avatar John Henry Donovan

Nice one Lodewijk! very handy 😊

       
seth.aldridge's avatar
seth.aldridge
68 posts
17 years ago
seth.aldridge's avatar seth.aldridge

Is anyone having issues with this plug-in with the new 1.6?

I can’t seem to get it to work properly for some reason.

       
Daniel Walton's avatar
Daniel Walton
553 posts
17 years ago
Daniel Walton's avatar Daniel Walton

Shouldn’t be affected by 1.6 in anyway. How are you implementing?

       
seth.aldridge's avatar
seth.aldridge
68 posts
17 years ago
seth.aldridge's avatar seth.aldridge

I made sure it was properly installed…which is pretty much drag and drop.

{exp:weblog:entries weblog="quote" limit="1" orderby="random" dynamic="off" rdf="off"}
    <blockquote>
        {exp:widont}{quote}{/exp:widont}
    </blockquote>

    <div class="customer">
        <span>{customer_name}</span>
        {title}
    </div>
{/exp:weblog:entries}

Not sure what I’m doing wrong.

[edit]

I just went and re-downloaded it from EE and it still is not working.

       
Daniel Walton's avatar
Daniel Walton
553 posts
17 years ago
Daniel Walton's avatar Daniel Walton

Is {quote} formatted in anyway? (xhml/br/textile/etc) also, does the markeup have any “&#nbsp;”s anywhere?

       
seth.aldridge's avatar
seth.aldridge
68 posts
17 years ago
seth.aldridge's avatar seth.aldridge

It is currently set to None, but when I saw what you said I changed it to Textile but it still is not wrapping the bottom word and there are no spaces inserted via HTML.

       

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.