Gossamer Forum
Home : Products : DBMan : Discussions :

Post deleted by seasky

Quote Reply
Post deleted by seasky
Quote Reply
Re: Automatic ID In reply to
Simply set $db_track variable in the default.cfg file to 1.

Good luck!

Regards,

Eliot Lee
Quote Reply
Re: Automatic ID In reply to
Thank you, Eliot, I knew it, but with your confirmation I tried again and it worked. Must have been a cache problem.

Now, something that I don't understand is the following:

In the html.pl you can read
sub html_record {
# --------------------------------------------------------
# How a record will be displayed. This is used primarily in...

The problem is that one can't have control of the printout layout here!
What's even worse is that the variables appear, example:

<TR><TD ALIGN="Right" VALIGN="TOP"><$font_color>School URL</FONT></TD>

<TD> <$font><A HREF="$rec{'URLToSchool'}</A></Font></TD></TR>

URLToSchool does not only display its content but shows up itself instead of the text School URL.

So the display is:
Variable-> URLToSchool: http://www.domain.com

instead of:
Text -> School URL: http://www.domain.com

I have had this problem from the start and can't figure out any solution...

Help!

/Seasky


Quote Reply
Re: Automatic ID In reply to
You need to use the following codes:

Code:

<a href="$rec{'URLToSchool'}">$rec{'URLToSchool'}</a>


See the blue codes...compare them with what you have.

Welcome to the wonderful world of HTML. Wink

Regards,

Eliot Lee
Quote Reply
Re: Automatic ID In reply to
Thanks Eliot,

I am a bit embarassed, since I do HTML since 1984, so what I need is not HTML-school but a bit more overview.
I focused on a possible problem in the modified PL-code...

Seasky

Quote Reply
Re: Automatic ID In reply to
I see now that I wasn't as bad on HTML, I simply gave you a faulty example. Here's the real one:

<TR><TD ALIGN="Right" VALIGN="TOP"><$font_color>School URL</FONT></TD>

<TD><$font><a href="$rec{'URLToSchool'}">$rec{'URLToSchool'}</a></FONT></TD>

THIS doesn't print out the way I want, because (see red letters) it does NOT print the text School URL but it prints out the variable URLToSchool instead!

Seasky

In addition (edited this message after posting):

It simply seems as if the screen printout section is somewhere else than in html.pl under sub html_record !!!

It's the same with the email variable: Script displays email (variable) as the email post name and not E-mail, which is my own way to spell email.

Quote Reply
Re: Automatic ID In reply to
(This gives me a headache!)

This might be a more straightforward explanation why:

I chose the variable (DB's definition field name) URLToSchool...

Had I chosen the variable URL, I hadn't realized anything unless I wanted to change layout in html_record_form AND sub html_record, because URL text and URL variable are the same word there.

Now since I have the variable URLToSchool and I chose School URL as the text, I can see that the records mentioned above aren't editable to show-what-I-want-to-be-seen.

So, WHERE do I change the display layout?
At least I now know its not in the subroutines mentioned above, but WHERE???

/CSkI


Quote Reply
Re: Automatic ID In reply to
By now, I hope you didn't read through all my posts.
Anyway, the mistake I made was to assume that autogenerate was the code in the html.pl.
Now I understand that autogenerate is a quite untouchable display code.

Thanks for reading!
I'll be in touch with the next problem, I am sure will arise rather sooner than later...

/CSky