You are here: HomeSoftwareCopee Pastee

Copee Pastee for ExpressionEngine v1.6.x

A simple Fieldframe Matrix Fieldtype for use with the LG Replace addon.

An example of the Copee Pastee FF Matrix Fieldtype

Copee Pastee is a simple cell type for FF Matrix, which outputs a plain text {whatever-x} within your matrix row, where ‘x’ is the row count, and ‘whatever’ is whatever you want, which makes it easier to create "needles" when using LG Replace with a textarea to insert images, etc.

There is further discussion about this method on the Howto: FF Matrix + LG Replace + LG TinyMCE + imgsizer + LG LiveLook EE forum post. Copee Pastee essentially automates making the LG Replace “needles”.

Documentation

Top

Installation

  1. Drop the 'jamdigital_copee_pastee' folder into your /system/extensions/fieldtypes/ folder.
  2. Enable the Field Type in your 'Utilities -> FieldTypes Manager'

Top

Usage

  1. Create a new cell in your Matrix and assign it to be a "Jam Digital Copee Pastee" field type.
  2. Use the lower 'label' to select what text you'd like to be displayed to the publisher.
  3. Your text will be prefixed with "{" and appended with "x}" where x is the row count.

Top

Support

Support can be found on the announcement forum post on expressionengine.com

Any general feedback comments can be posted below :)

11 comments…

Here’s an example of how I configured ff_matrix with lg_replace.  Using the {count} tag allow you to generate each replacement needle dynamically.

{blog_image}
  {exp:lg_replace:replacement needle=“image{count}”}
     
  {blog_image_url}
     
{/exp:lg_replace:replacement}
{/blog_image}

By Proee 4 months ago

Just a heads up, it looks like this addon doesn’t work with FF Matrix 1.5. I got it working fine with 1.3.4, but when I tried it with 1.5 the row numbers weren’t appended.

Other than that, great idea. I’m sure I’ll use it in the future.

By Andrew Philpott 3 months ago

Sorry, I meant Matrix 2.0. For some reason I thought that I was using FF Matrix 1.5, but I wasn’t

By Andrew Philpott 3 months ago

I have a test version for EE 2.0 here if you’d like to give it a try… If it works ok I’ll backport to EE 1.x

Iain

By Iain Urquhart 2 months ago

Awesome, thanks for the update.

By Andrew Philpott 2 months ago

I can also confirm that this doesn’t appear to work with Matrix 2.0.4. The number isn’t being appended (same problem as Andrew Philpott). Is there a quick fix that you can give me?

By Jim Pannell 2 months ago

I put a test version up for EE 1.x here.

By Iain Urquhart 2 months ago

Jim, I found out that it doesn’t work with Matrix 2.0.4 because in the script it’s looking for something named Field Matrix but since Brandon changed the name to just Matrix it wasn’t finding it. It’s an easy thing to fix if you just change the .js file that comes with copee pastee.

By Andrew Philpott 2 months ago

Thanks a lot Andrew - I changed all instances of “.ff_matrix” in copee_pastee_functions.js to “.matrix” and it works fine. Just need to remember to clear your browser’s cache to see it working though.

By Jim Pannell 2 months ago

Jim - Did you try the version I posted above? Includes the fix you mentioned and also has double click to copy.

I posted it there as I wanted to have folks test it before I officially released it. If you’re having problems please email me via the contact form, or post in the forum thread.

By Iain Urquhart 2 months ago

Hi Iain, I’m afraid I didn’t try it, no. Will do on another project though.

By Jim Pannell 2 months ago

Don't be shy, add a comment

Your Name

Email* (Never displayed, and never shared)

Remember my personal information
Notify me of follow-up comments?

To prevent automated spam, please enter the word you see in the image below:


Back to top