Intechnic
Users Developers
Home / Forums / In-Portal CMS / General In-Portal Discussions / help with inp2 tag / Topic Posts

In-Portal Forum

This is a place for users of In-Portal to ask questions, discuss various topics, and interact with other members of the In-Portal Community. Please report bugs through the Bugs Team (not the Forum). If you are interested in contributing or joining one of the many Teams for In-Portal, please check out the Contribute section of the website.
 

In-Portal Forum

help with inp2 tag (6)


Posted: 02/04/2006 5:50:10 PM

Reply Quoted  


I need something to work like this to use with a user custom field.

<inp2:m_if check="p_CustomField" name="Features" /> HTML HERE </inp2:m_if>

If there is any data in the user's custom field, I want to display it in a table. If not, I want nothing displayed.

can this tag be modified to use?

Posted: 02/06/2006 10:28:16 AM

Reply Quoted  


lhornaday wrote:02/04/2006 5:50:10 PM
I need something to work like this to use with a user custom field.

<inp2:m_if check="p_CustomField" name="Features" /> HTML HERE </inp2:m_if>

If there is any data in the user's custom field, I want to display it in a table. If not, I want nothing displayed.

can this tag be modified to use?


Hello Luke,

What item type you need this for? users, links or categories? Give me example of the page you want to use this.

Thanks.


Posted: 02/07/2006 11:12:23 PM

Reply Quoted  


It is going to be on the user's profile page. I'm am going to use it for user custom fields.

Posted: 02/16/2006 3:30:35 PM

Reply Quoted  


Any thoughts on this?

If you need to see my profile page:

http://allpilots.com/index.php?env=-33:m0-1-1-1-s&UserId=1

I am trying to hide what is not entered by the user (Job Description, Work History currently on mine)


Thanks!

[Edited By lhornaday on 02/16/06 3:31:14 PM]

Posted: 02/20/2006 10:10:31 AM

Reply Quoted  


lhornaday wrote:02/16/2006 3:30:35 PM
Any thoughts on this?

If you need to see my profile page:

http://allpilots.com/index.php?env=-33:m0-1-1-1-s&UserId=1

I am trying to hide what is not entered by the user (Job Description, Work History currently on mine)


Thanks!

[Edited By lhornaday on 02/16/06 3:31:14 PM]


Hello Luke,

Sorry about some delay.

Example how you can do it for your Job Description custom field:

<inp:m_user_profile_field _field="custom&quot_customfield="fieldcustom_jobdescription" >
&
lt;tr>                                                
                &
lt;td CLASS="field-name-profile&quotvalign="top&quotwidth="125&quotNOWRAP>Job Description:</td>
                &
lt;td class="field-content-profile"><inp:m_user_profile_field _field="custom&quot_customfield="fieldcustom_jobdescription&quot/></span>
        &
lt;/td>
&
lt;/tr>
&
lt;/inp>



Posted: 02/21/2006 1:42:03 PM

Reply Quoted  


Thank you Dmitry. that sure is simple. In-portal is a very functional script