Can I make longer titles?
Posted: 21 March 2008 08:19 AM   [ Ignore ]  
Grad Student
Rank
Total Posts:  39
Joined  12-10-2007

I created a weblog to hold press releases for a client website. 

As Murphy’s law would have it, one of the articles has a title that is 112 characters, but the title field apparenly only allows 100 characters.

Is there a way to extend the lenght of this field?  I tried to add a title field to the custom field group, but the original title field is not removed.  I would like to avoid creating a confusing interface.

Thanks!
-Bob

Profile
 
 
Posted: 21 March 2008 08:48 AM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12433
Joined  04-29-2002

Bob, you can make longer titles, but you’d still need to keep the original title field. You’d have some sort of code to check for the longer custom field and use that instead of {title}.

Example:

{if custom_title}
<h3>{custom_title}</h3>
{if:else}
<h3>{title}</h3>
{/if}

Make sense?

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
MSG
 
 
Posted: 21 March 2008 09:07 AM   [ Ignore ]   [ # 2 ]  
Grad Student
Rank
Total Posts:  39
Joined  12-10-2007

I guess that will work. My main concern is that with this is if they wanted to be able to sort by title, the client would need to enter the title twice, first the full title for display and then the truncated tittle to ensure proper sorting.

(Which would have problems too if there were articles with names like “My long article name yada yada,...... part 1:” and then there was a part 2.)

A bit of a rig job, but it is Friday and I need to get ‘er done! wink

If you could consider making this field length longer and/or settable in the future, I think it would be a good thing.

Thanks!
-Bob

Profile
 
 
Posted: 21 March 2008 09:09 AM   [ Ignore ]   [ # 3 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12433
Joined  04-29-2002

Trust me, it’s easier than setting the width to something like 140 or whatever, and changing out all the places that had 100 in them.

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
MSG
 
 
Posted: 08 May 2008 07:50 PM   [ Ignore ]   [ # 4 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12433
Joined  04-29-2002

Closing thread…

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
MSG
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 65087 Total Logged-in Users: 33
Total Topics: 82228 Total Anonymous Users: 17
Total Replies: 441927 Total Guests: 223
Total Posts: 524155    
Members ( View Memberlist )