Hi,
I’ve put together a quite simple cell type for a FF Matrix, basically it outputs a plain text {whatever-x} within your matrix row, where ‘x’ is the row count, and ‘whatever’ is whatever you want…
See the screenshot attached of what it does, and if you’re wondering why you’d need such a thing… its for accompanying the most excellent LG Replace plugin where you can insert the contents from fields dynamically within other fields. (See this screen-cast too for more information on using LG Replace).
Instructions are included in the zip file but are here also:
Version 1.1.0 (Updated to include Brandon’s tips below)
INSTALLATION:
1. Drop the ‘iain_copee_pastee’ folder into your /system/extensions/fieldtypes/ folder.
2. Enable the Field Type in your ‘Utilities -> FieldTypes Manager’
USAGE:
Create a new cell in your Matrix and assign it to be a “Iain Copee Pastee” field type.
Use the lower ‘label’ to select what text you’d like to be displayed to the publisher.
Your text will be prefixed with “{” and appended with “x}” where x is the row count.
I am a noob with php, and jQuery and just starting out with EE dev so if any devs out there see room for improvement, please sing out.
Download is available from Jam Digital
EDITS:
17 August 2009: Just re-uploaded v1.1.0 - Forgot to update the version number in the file.
17 December 2009: Removed forum hosted version, placed on Jam Digital
