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

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

Mark, we’re having a slight problem with your extension.

We have 3 columns, but some rows will not always have content in each column. For example the columns are “Name”, “Link”, “Title”. Not all the rows will have a link though. When this happens the content from the 3rd column “Title” moves down into the next row.

Has anyone else come across this? Is there a workaround?

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
17 years ago
Mark Bowen's avatar Mark Bowen

Hi there,

Not sure if there was ever a workaround for this but I had this problem too once. I just put a ‘-’ symbol into the fields that didn’t need any information in them. You can probably then in your template just use an {if} statement to say if there is a dash then don’t output the information?

Hope that helps?

Best wishes,

Mark

       
james Brown's avatar
james Brown
492 posts
17 years ago
james Brown's avatar james Brown

Is it possible to have 2 different column configuration instances per weblog?

So if I wanted on field to have a 3 column layout with “Name”, “Date”, and “Year” for one field. And another field to have a 2 column layout with “Boat Type” and “Age”.

How would I go about doing this?

       
Silencio's avatar
Silencio
46 posts
17 years ago
Silencio's avatar Silencio
Is it possible to have 2 different column configuration instances per weblog? So if I wanted on field to have a 3 column layout with “Name”, “Date”, and “Year” for one field. And another field to have a 2 column layout with “Boat Type” and “Age”. How would I go about doing this?

Yes, it is possible. Read Mark’s first post to this thread.

       
james Brown's avatar
james Brown
492 posts
17 years ago
james Brown's avatar james Brown

DUH!!! Can’t believe I didn’t see that. I’ve been following this post for a while, and didn’t think to look back from the start.

Now, does anyone know if this extension will work with the Stand Alone Entry Form?

       
circa1977's avatar
circa1977
118 posts
17 years ago
circa1977's avatar circa1977

A previous post suggested a mod to allow entering dropdown values in one of the fields. Has anyone found a solution or hacked this further to accommodate that?

Thanks, Mark

       
james Brown's avatar
james Brown
492 posts
17 years ago
james Brown's avatar james Brown

I’d be interested in dropdown values as well!!! Please share if you know how.

       
Dane Thomas's avatar
Dane Thomas
139 posts
17 years ago
Dane Thomas's avatar Dane Thomas

Has anyone had any luck with getting CSVGrab to import data into Multi text field?

It looks like I’m going to go ahead with using Multi Text for a product catalogue (initially I was going to just get the user to enter products on a separate line in a text area).

Being able to use the CSVGrab would help importing all the products.

       
Ryan M.'s avatar
Ryan M.
1,511 posts
17 years ago
Ryan M.'s avatar Ryan M.

I have sort of a unique use for this extension, I think. I use it for a field that lists tournament entrants for different four-day tournaments - and their position (order) can change from day to day. There are only two columns right now, but the client would like to add four more (to record each entrant’s daily scores over the course of the tourney). Altering the position of the entrants daily will be a bear for the client with 6 fields for each entrant and a variable amount of entrants shown (usually top twelve or so).

Instead of having my client cut/copy/paste info up or down, would there be a way to re-arrange the rows with AJAX in the CP? I see there is a delete row link already there - so I wonder how feasible would it be to be able to drag the rows up and down to rearrange the order in which they’re saved to the DB and output on the page? Or…(just had a thought related to a previous post here…) is it possible to sort the output by the contents of one of the columns? If so, my client might only have to change the first column (a number) in the CP, and then the field would be output by that order.

Or, if there is a different way other than multi-text to output a variable amount of entrants and easily rearrange their order on a daily basis, I’m open to that suggestion. I’d rather avoid a whole other weblog with related entries, as that seems overly complicated for what this is. I was thinking of just one textarea with one entrant per line - but I think I’d have to include some HTML in that textarea which might confuse the client. I’d rather stick with something like multi-text, because the client only has to worry about the actual content of each field.

Thanks for any suggestions.

       
Ryan M.'s avatar
Ryan M.
1,511 posts
17 years ago
Ryan M.'s avatar Ryan M.

I’m also looking at how EE natively sorts categories with the up/down arrows. I just googled around and found that’s it’s darn near impossible to drag/sort table elements (usually this is don with lists). I’m not totally sure there is a page refresh there, but maybe something like this could be used to re-order the rows in a multi-text field.

Going Bonkers: I just gotta sort by my first column. I FEEL like I’m close to a solution by either monkeying with things from line 465-508 in the extension (not totally ideal if I want to use this extension for another field on this site down the line) or sorting the output on the template before displaying.

What exactly is the output of this extension? Can I sort it before display with something like asort() and other clever PHP?

       
Ryan M.'s avatar
Ryan M.
1,511 posts
17 years ago
Ryan M.'s avatar Ryan M.

OK, by slightly modifying the extension I was able to get this to sort for me. You can see my two columns in the CP (attached pic). The first column is the sort number, and the second column is all the info for that ‘entry’ (which may look a little cryptic to people who don’t follow professional bass fishing 😝 ). I as able to do a numeric sort by changing the extension slightly, like so… Around line 469 find:

$row_data = array();
if(isset($row['field_id_'.$f['field_id']]))
{
$row_data = array_filter(preg_split("/[\r\n]{2,}/", $row['field_id_'.$f['field_id']]));
}

Add the following line directly after that, and before the “preg_match_all” line:

asort($row_data,SORT_NUMERIC);

That’s all I did and it seems to be sorting OK with no leading zeros needed. I hope that’s all I needed to do. I would rather do this on the template so that if I want to make another multi-text field and don’t necessarily want it sorted this way, I’m free not to.

I’m using PHP on the template to explode col_2 on the pipe-delimiter. You can see the output in the other attached pic.

       
j25's avatar
j25
47 posts
17 years ago
j25's avatar j25

I am noticing some major slowing of the CP, after enabling this extension. Anybody else experiencing this? Hopefully, it is not this extension, because I look forward to using it. But, it seems to be causing the issue.

Running 1.6.2

       
Richard Frank's avatar
Richard Frank
200 posts
17 years ago
Richard Frank's avatar Richard Frank

It’s been asked before in this thread, but the variable https://ellislab.com/asset/images/team-photo/ doesn’t work (it just prints out “https://ellislab.com/asset/images/team-photo/”. This has fantastic potential for a quick gallery, but I’d need file uploads to work.

       
Michael C.'s avatar
Michael C.
29 posts
16 years ago
Michael C.'s avatar Michael C.

Mark, will this work in a SAEF, too?

       
Will Smith's avatar
Will Smith
76 posts
16 years ago
Will Smith's avatar Will Smith

Hi all -

We’re using the fantastic Multitext extension. It’s awesome. BUT, we’re having a problem.

Adding HTML hyperlinks to any of the cells in a Multitext field doesn’t work. For example, if we input the following in one of the fields:

<a href="http://www.google.com/" title="Google">Google</a>

It comes back out of EE like so:

<a >Google</a>

(I had to add spacing to each of those HTML entities or the EE forum software would render them as quotes.)

Obviously, having the quotation marks show up as the corresponding HTML entity totally breaks the link. I feel like there is a simple fix for this, but I’m at a loss as to what it might be. Any help?

Thanks, Will

       
First 6 7 8 9 10

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.