3 of 8
3
Multi Text
Posted: 15 January 2007 11:47 PM   [ Ignore ]   [ # 37 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  427
Joined  10-10-2004

Was curious if it was possible to easily hack the extension to only show one row (by default it shows two rows of columns). I created a multitext field that will only use one row.

Profile
 
 
Posted: 05 February 2007 02:54 AM   [ Ignore ]   [ # 38 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  254
Joined  05-24-2002

Mark, I’ve finally been able to test your extension and it’s as great as I expected. Nevertheless I ran into two small problems, I really hope you can help us out with this:

1. This is just a minor issue, but it seems that in the publish-section I can’t add any rows with Internet Explorer. As well as in IE6.x as in 7.0…
2. I use this extension to show a list of two columns in an index-template. Because there can be quite a lot of rows, I want our users to show only a list of 5 rows and then the option to continue to a detail-page where they can see all the rows. No matter what plugin I use to show a limited amount of characters/words I have the chance that your plugin will break the layout of my index page. Is it possible to create something like this for your extension:

<ul>
{members limit="5rows"}
<li><strong>{col_1}</strong>: {col_2}</li>
{/members}
</ul>

This way I can use any layout I want without worrying that it might break the overall layout.

Again thank you very much for this extension!!!

 Signature 

You know me better than that, love. I don’t “do” anything. Things just happen.

Profile
 
 
Posted: 05 February 2007 10:32 AM   [ Ignore ]   [ # 39 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1194
Joined  01-05-2006

Ronny, you can now use limit= in the field, like you specified, just drop the “rows”. 

<ul>
{members limit="5"}
<li><strong>{col_1}</strong>: {col_2}</li>
{/members}
</ul>

The new version should also fix the IE problems some people were having (silly tbody).

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 06 February 2007 02:34 AM   [ Ignore ]   [ # 40 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  254
Joined  05-24-2002

Oh wow! I didn’t expect you to be able to fix this so quick. So thank you very much!! Our site will relaunch in a couple of months and I’ll donate some profit of the very first banners to you. Thank you!

 Signature 

You know me better than that, love. I don’t “do” anything. Things just happen.

Profile
 
 
Posted: 06 February 2007 07:29 AM   [ Ignore ]   [ # 41 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1194
Joined  01-05-2006

I’m glad I could help Ronny :-D

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 08 February 2007 01:55 PM   [ Ignore ]   [ # 42 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  785
Joined  07-18-2006

Mark,

Is it possible to use multi-text multiple times? In other words have different multi-text ‘field groups’ in different places in the CP?  This extension looks fantastic and is perfect for the site I’m working on,  only problem is I need it in multiple places for different things!

Thanks!

Profile
 
 
Posted: 08 February 2007 01:57 PM   [ Ignore ]   [ # 43 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1194
Joined  01-05-2006

You sure could.  If needed you can make an entire weblog of multi-text fields wink

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 08 February 2007 01:59 PM   [ Ignore ]   [ # 44 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  785
Joined  07-18-2006

Doh!  Man I need to get some sleep - it says that right in the first post. That’s multiple stupid posts regarding your work today. Sorry Mark!

Profile
 
 
Posted: 08 February 2007 02:01 PM   [ Ignore ]   [ # 45 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1194
Joined  01-05-2006

Ahh, didn’t a grade school teacher ever tell you “there’s no such thing as a stupid post”?  I’m just glad I could help you out.

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 13 February 2007 09:38 PM   [ Ignore ]   [ # 46 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  358
Joined  11-19-2003

Nice extension! Would there be a way to make the name of the columns and name of the columns specific to custom fields?

For instance, I might want to use 2 “multi text” custom fields in the same entry, for 2 differnet things, and with 2 and 3 columns for instance ?!

Profile
 
 
Posted: 13 February 2007 10:04 PM   [ Ignore ]   [ # 47 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1194
Joined  01-05-2006

For a little more control replace the number of columns with a space and the labels with a space.  Then in the edit field page change the field type to a text field and enter the number of columns you would like in the textarea rows.  Then change it to a drop-down list and enter your labels in the drop down list box.  Finally change the field back to a multi text and you’re done.  Field specific settings.

from the first post in the thread, the functionality is built in by default.

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 23 February 2007 06:04 PM   [ Ignore ]   [ # 48 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1841
Joined  03-26-2006

Is there any sort of {switch} I can use with this? Or should I use some sort of PHP modulo count?

 Signature 

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

Profile
 
 
Posted: 23 February 2007 08:27 PM   [ Ignore ]   [ # 49 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1841
Joined  03-26-2006

For the record, I got this “switch” to work with multi-text. I put a sample here in case it might help anyone else out. Note that PHP has to be on for the template.

<ul>
    
<?php
    $count
= 0;
    
$rowclass='';
    
?>        
    {my_multitext_field}
    <?php
        $count
++;    
        if(
$count % 2) {
            $rowclass
= 'even';
        
} else {
            $rowclass
= 'odd';
        
}
    ?>
        
<li class="<?php echo $rowclass; ?>">{col_1} - {col_2}</li>
    
{/my_multitext_field}
</ul>

 Signature 

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

Profile
 
 
Posted: 24 February 2007 07:14 AM   [ Ignore ]   [ # 50 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1194
Joined  01-05-2006

good solution mdesign, and you might mention PHP parsing has to be on output for this to work.

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 27 February 2007 07:57 AM   [ Ignore ]   [ # 51 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  785
Joined  07-18-2006
Mark Huot - 24 February 2007 07:14 AM

good solution mdesign, and you might mention PHP parsing has to be on output for this to work.

Any easy way to get that to work with PHP parsing on input?  I’ve got other PHP that has to be processed on input on the same page I’d like to use this tag with alternating row colors…

Profile
 
 
Posted: 27 February 2007 08:13 AM   [ Ignore ]   [ # 52 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  752
Joined  08-16-2003

Switchplus might be able to help you out if you want to avoid PHP in your templates, or if you run into an input/output problem like The Pie Man.

 Signature 

Pst… have you taken a look at Weever yet?

Profile
 
 
Posted: 27 February 2007 08:33 AM   [ Ignore ]   [ # 53 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  785
Joined  07-18-2006

Thanks Mr. Wilson - I’ll have to check that out.

Here’s a question.  I’ve got the following code:

{board_committee_members}
                    
<tr>
                        <
td><p><strong>{col_1}</strong></p></td>
                        <
td><p>
                            
{exp:query sql="SELECT url_title AS link from exp_weblog_titles WHERE title='{col_2}' AND weblog_id='5' limit 1"}
                            
<p><a href="{path=pages/member_directory_detail}{link}">{col_2}</a></p>
                            
{if no_results}
                            {col_2}
                            {
/if}
                            {
/exp:query}
                        
</p></td>
                        <
td><p>{col_3}</p></td>
                        <
td><p>{col_4}</p></td>
                    </
tr>
                    
{/board_committee_members}

Which works well if there’s an entry in the database, but the {if no_results} isn’t getting parsed.  Is there some way around that?

Profile
 
 
Posted: 06 April 2007 12:47 PM   [ Ignore ]   [ # 54 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  785
Joined  07-18-2006

I’ve got a bug using version 1.09 and EE 1.5.2 build 20070404 - I get some weird behavior in the CP.

The extension works properly when publishing, but when you go back to edit, it inserts an extra line between each entry.

Profile
 
 
   
3 of 8
3
 
‹‹ 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: 66468 Total Logged-in Users: 38
Total Topics: 84863 Total Anonymous Users: 21
Total Replies: 455352 Total Guests: 180
Total Posts: 540215    
Members ( View Memberlist )