Gossamer Forum
Home : Products : Links 2.0 : Customization :

Post deleted by 3denterprises

Quote Reply
Post deleted by 3denterprises
Quote Reply
Re: Suppress Blank Fields In reply to
not sure if this is what you are referring to or not but in my link.html I have something like

Code:
<%if Graphic%>
<%if URL%>
<a href="<%db_cgi_url%>/jump.cgi?ID=<%ID%>" target="New"
onMouseOver="window.status=' Click here to visit this website'; return true"
onMouseOut="window.status=' '"><img src="<%Graphic%>" width="90" height="120"
alt="<%Title%>" border="0"></a>
<%endif%>
<%ifnot URL%>
<img src="<%Graphic%>" width="90" height="120" alt="<%Title%>" border="0">
<%endif%>
<%endif%> 
to use if/ifnot like the above you need to install the Enhanced Templates mod in the Resources center

Gene
Quote Reply
Re: Suppress Blank Fields In reply to
I think he was meaning in the admin area "List-All"

Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/

Quote Reply
Re: Suppress Blank Fields In reply to
yep, I was asleep when I read the post...


I knew I had answered this before....I'm begining to feel like Eliot - "this is a recording"

But if it is the first time you've heard the recording, then it is a new song to you.

I digress...

Check 'em out...!

http://www.gossamer-threads.com/...250&Old=allposts

http://www.gossamer-threads.com/...250&Old=allposts

Gene
Quote Reply
Re: Suppress Blank Fields In reply to
I appreciate any help but I don't think that solves my problem. If in the admin section I want to it hide the fields per link that are blank and show fields that have data in them. How might I go about doing this? I know how to do it for the templates section but not sure about the admin section. My only thought would be is to edit the code in the admin_html.pl section but not sure where to begin. Maybe refrasing it this way will help.

I'm doing this because I too have alot of fields which if I could hide only those that are with data when I select List All that would help tremendously.

Thanks for all your input!


http://www.3denterprises.com
http://www.3denterprises.com/link.swf
Quote Reply
Re: Suppress Blank Fields In reply to
I'm sure some of the experts will be able to point you in the right direction...probably even to do it on a record by record basis, which i guess is the only way to do it.

Once it is working and you no longer see fields that have no data in them, just remember you won't be able to enter data in those hidden fields thru the admin panel. Since you haven't indicated why you want to hide the fields, I assume you have a good reason for hiding the empty fields and thus not being able to enter data into them.

Everyone has different ways of using the program.

Good luck and I hope someone can help you with the code....


Gene
Quote Reply
Re: Suppress Blank Fields In reply to
Thanks Gene, I appreciate your help. My reasoning behind it was this. I have about 50 fields that I use and when I do searching or List All's in the Admin area I just wanted to suppress the blank fields temporarily to view the data easier. It's more a less a convenience factor. I don't necessarily need it but I will have some co-workers which could benefit from seeing only what they need to see.

But I do appreciate your help!
Thanks



http://www.3denterprises.com
http://www.3denterprises.com/link.swf
Quote Reply
Re: Suppress Blank Fields In reply to
What you want is two different screens - one for you and one for your co-workers. Kinda like a login screen where each person would enter a code and based on that code certain processes and screens would be customized just for them. For example, if you put in your login number, you would see all the fields. If a co-worker keyed in their login number, they would see only fields that had data.

That makes sense...

I was thinking that you just wanted to hide blank fields. That made no sense, since no one would be able to add data to those fields thru the admin panel.

The place to start would be when admin.cgi is called, the user has to enter a login number. In the admin_html.pl file the build_html_record_form routine ( which is in the db_utils.pl file ) gets called by the add, modify, validate, etc routines. That seems like the logical place to test for blank fields based upon the login number.

Maybe some of the perl experts in the forum could help you.


Gene
Quote Reply
Re: Suppress Blank Fields In reply to
You could do this by editing admin_html.pl and changing the form input you want to suppress to a hidden input <INPUT TYPE="HIDDEN" NAME="Name of field"> a value put in by the program would be entered but no one would see it on the form such as the hits field. Hope this helps