7 of 8
7
Multi Text
Posted: 23 January 2008 05:49 PM   [ Ignore ]   [ # 109 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  574
Joined  08-31-2005

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?

Profile
 
 
Posted: 01 February 2008 11:34 AM   [ Ignore ]   [ # 110 ]  
Grad Student
Avatar
Rank
Total Posts:  58
Joined  03-24-2007

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

 Signature 

.  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .
Mark J. Reeves
Principal, Technology

Profile
 
 
Posted: 04 February 2008 02:38 PM   [ Ignore ]   [ # 111 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  574
Joined  08-31-2005

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

Profile
 
 
Posted: 13 February 2008 01:34 AM   [ Ignore ]   [ # 112 ]  
Lab Assistant
RankRank
Total Posts:  162
Joined  01-22-2007

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.

Profile
 
 
Posted: 23 February 2008 02:18 PM   [ Ignore ]   [ # 113 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1730
Joined  03-26-2006

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.

 Signature 

ryan masuga
—————
Masuga Design | Member, EE Pro Network
My EE Add-Ons | {devot:ee}
Twitter: masuga | masugadesign | devot_ee

Profile
 
 
Posted: 23 February 2008 03:41 PM   [ Ignore ]   [ # 114 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1730
Joined  03-26-2006

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?

 Signature 

ryan masuga
—————
Masuga Design | Member, EE Pro Network
My EE Add-Ons | {devot:ee}
Twitter: masuga | masugadesign | devot_ee

Profile
 
 
Posted: 23 February 2008 05:30 PM   [ Ignore ]   [ # 115 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1730
Joined  03-26-2006

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 tongue rolleye ). 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.

Image Attachments
board_cp.jpgboard_front.jpg
Click thumbnail to see full-size image
 Signature 

ryan masuga
—————
Masuga Design | Member, EE Pro Network
My EE Add-Ons | {devot:ee}
Twitter: masuga | masugadesign | devot_ee

Profile
 
 
Posted: 17 March 2008 11:00 AM   [ Ignore ]   [ # 116 ]  
Grad Student
Avatar
Rank
Total Posts:  57
Joined  09-26-2007

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

Profile
 
 
Posted: 22 April 2008 11:05 AM   [ Ignore ]   [ # 117 ]  
Lab Assistant
RankRank
Total Posts:  172
Joined  06-18-2007

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.

Profile
 
 
Posted: 12 June 2008 02:40 PM   [ Ignore ]   [ # 118 ]  
Grad Student
Avatar
Rank
Total Posts:  39
Joined  11-27-2007

Mark, will this work in a SAEF, too?

Profile
 
 
Posted: 01 July 2008 09:07 PM   [ Ignore ]   [ # 119 ]  
Grad Student
Rank
Total Posts:  80
Joined  02-05-2008

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

Profile
 
 
Posted: 07 July 2008 08:49 PM   [ Ignore ]   [ # 120 ]  
Grad Student
Avatar
Rank
Total Posts:  39
Joined  11-27-2007
Will Smith - 01 July 2008 09:07 PM

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

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:

<a href="{url_field}" title="{title_field}">{text_field}</a>

Profile
 
 
Posted: 22 July 2008 04:28 PM   [ Ignore ]   [ # 121 ]  
Grad Student
Rank
Total Posts:  80
Joined  02-05-2008

Hi Michael:

Thank you for the reply.

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?

Profile
 
 
Posted: 23 July 2008 07:11 AM   [ Ignore ]   [ # 122 ]  
Grad Student
Avatar
Rank
Total Posts:  39
Joined  11-27-2007

Have you tried switching out double-quotes for single-quotes in the multi-text fields?

Profile
 
 
Posted: 08 August 2008 09:06 AM   [ Ignore ]   [ # 123 ]  
Grad Student
Rank
Total Posts:  65
Joined  07-03-2008
mdesign - 23 February 2008 05:30 PM

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 tongue rolleye ). 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.


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?

Thanks,

Birdie

Profile
 
 
Posted: 19 September 2008 05:15 PM   [ Ignore ]   [ # 124 ]  
Summer Student
Total Posts:  9
Joined  03-31-2008

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?

Profile
 
 
Posted: 22 September 2008 11:21 AM   [ Ignore ]   [ # 125 ]  
Summer Student
Total Posts:  9
Joined  03-31-2008

wow… yep a noob issue. lang files go in the language dir… who would have thought.

Profile
 
 
Posted: 01 October 2008 08:29 PM   [ Ignore ]   [ # 126 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1592
Joined  01-05-2007
Mark Huot - 14 October 2006 11:46 AM

You got it place the following around your <ul>

{if members!=""}...{/if}

I haven’t come up with a way to check individual columns yet., but i’ll investigate.


I know this is a bit old now but is it possible to check per column?

I have tried -

{if col_1 != "x"}{col_1}{/if}

and

{if "col_1" != "x"}{col_1}{/if}

But neither seem to work. Any ideas?

 Signature 

 
Steven Hambleton | ExpressionEngine Development for Web & Graphic Design Agencies

Profile
 
 
   
7 of 8
7
 
‹‹ Settings Not Filling      Invisible CAPTCHA ››
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 65011 Total Logged-in Users: 51
Total Topics: 82079 Total Anonymous Users: 47
Total Replies: 441118 Total Guests: 310
Total Posts: 523197    
Members ( View Memberlist )