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?
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
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?
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.
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.
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.
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?
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.
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
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.