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

Multi Text

Development and Programming

G - B - O's avatar
G - B - O
31 posts
16 years ago
G - B - O's avatar G - B - O

Great! The error is gone! Thanks. Hope i won’t encounter any errors anymore 😉 .

       
Jamie Pittock's avatar
Jamie Pittock
108 posts
16 years ago
Jamie Pittock's avatar Jamie Pittock

Mark, top work again.

Not sure if it’s possible but any chance of a backspace parameter? I’d be looking to do something like this:

{websites backspace="1"}<a href="http://{col_2}">{col_1}</a>,{/websites}

For the record, I’m using the Find & Replace plugin to ‘fix’ it right now. Something cleaner would be better though.

{exp:replace find="Websites: ," replace="Websites: "}Websites: {websites}, <a href="http://{col_2}">{col_1}</a>{/websites}{/exp:replace}
       
Jamie Pittock's avatar
Jamie Pittock
108 posts
16 years ago
Jamie Pittock's avatar Jamie Pittock

Sorry, me again. I’ve just noticed a strange error when using this extension.

The error only happens on pages where I’m using related or reverse related entries. I’m not actually using the extension on these pages.

The error is:

Notice: Undefined index: field_id_60 in \blah\extensions\ext.multi_text.php on line 461

field_id_60 is the custom field set as multi text.

       
Rob Quigley's avatar
Rob Quigley
236 posts
16 years ago
Rob Quigley's avatar Rob Quigley

Just fyi, I’m experiencing a similar problem (different extension of Mark’s but same type of use of related content, etc) - here.

       
Jamie Pittock's avatar
Jamie Pittock
108 posts
16 years ago
Jamie Pittock's avatar Jamie Pittock

Lying in bed I realised it was probably the cache that needed clearing. And it was.

Mark, if the cache does need clearing when you create one of these types of custom fields, would it be possible to do this automatically?

       
Mark Huot's avatar
Mark Huot
587 posts
16 years ago
Mark Huot's avatar Mark Huot

smallbeer, how did you clear your cache? are we talking template cache or sql cache?

       
Mark Huot's avatar
Mark Huot
587 posts
16 years ago
Mark Huot's avatar Mark Huot

smallbeer, is there anyway you could attempt to recreate the issue? Version 1.0.3 is only 457 lines, so it’s strange that you got an error on line 461. Are you running 1.0.3?

       
Rob Quigley's avatar
Rob Quigley
236 posts
16 years ago
Rob Quigley's avatar Rob Quigley

just fyi - just tried this and “CP Home › Admin › Utilities › Clear Cached Data” did the trick for same issue with the “File” extension. too. Messages went away after that.

       
Mark Huot's avatar
Mark Huot
587 posts
16 years ago
Mark Huot's avatar Mark Huot

Glad to hear it Rob. I’ll try to see why this is happening.

       
Jamie Pittock's avatar
Jamie Pittock
108 posts
16 years ago
Jamie Pittock's avatar Jamie Pittock
smallbeer, is there anyway you could attempt to recreate the issue? Version 1.0.3 is only 457 lines, so it’s strange that you got an error on line 461. Are you running 1.0.3?

I’m actually running v.1.0.4 (downloaded from your site yesterday). I cleared all cache but I’m pretty sure I just needed to clear “Cached Relationship Entries”.

And yeah I can recreate the error by just creating a new multi-text custom field and not clearing the cache.

Edit - yeah just cleared “Cached Relationship Entries” and the errors go away.

       
Mark Huot's avatar
Mark Huot
587 posts
16 years ago
Mark Huot's avatar Mark Huot

Yup, that should work.

       
Jamie Pittock's avatar
Jamie Pittock
108 posts
16 years ago
Jamie Pittock's avatar Jamie Pittock

yeah it works but is there a way for the extension to do it automatically when you create a multi-text custom field ?

I’m not really sure what this extension has to do with related entries but you might be attempting some voodoo with v1.0.4 that I don’t understand yet 😉

       
Mark Huot's avatar
Mark Huot
587 posts
16 years ago
Mark Huot's avatar Mark Huot

Alright, I’ve updated the extension to be 1.0.5 which should fix the error problems and also add a backspace=”” attribute a la Rob’s request.

       
Jamie Pittock's avatar
Jamie Pittock
108 posts
16 years ago
Jamie Pittock's avatar Jamie Pittock

many thanks as always mark. the backspace was my request too so extra marks 😉

       
Mark Huot's avatar
Mark Huot
587 posts
16 years ago
Mark Huot's avatar Mark Huot

the latest version 1.0.7 also allows you to limit rows by using the syntax col_1="test".

       
1 2 3 4 Last

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.