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?
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.
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:
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.
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.
It’s been asked before in this thread, but the variable {filedir_1} doesn’t work (it just prints out “{filedir_1}”. This has fantastic potential for a quick gallery, but I’d need file uploads to work.
(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?
(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
Try separating your content (the URL and the title) from your appearance (the text of the link). In other words, have a field that holds the URL, and another field that holds the text. Then in whatever template you need it to appear, write something along the lines of:
But I feel like your suggestion could get pretty unwieldy. What if, for example, we wanted to add two links to a Multitext cell? I don’t think we’d be able to with your method. Also, how would we indicate the word or phrase in the Multitext cell that should be linked? It would have to be with some markup, but if we’re going to use markup, why not just have HTML itself do it?
At the end of the day, I just feel like Multitext should probably support the capability to allow HTML links within the cells, and that I have encountered a bug. Is there no other simpler workaround?
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:
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.
Hey mdesign, i’ve been looking for a way to control competition results for a Golf Club site that a client will be updating and this looks like the answer (thank god) i’ve been after. I havn’t had a chance to install this extension yet (site is still in early design stage) but on the screenshot above I noticed the little (+) at the bottom - does this add a new line, and is it part of the extension? Or did you add it in that functionality yourself?
This could be a total noob issue, so please bear with me.
I’m developing locally using MAMP and for some reason I can’t get lang.multi_text.php to load when I click on “settings” in the extension manager. Have I missed something obvious here?