Gossamer Forum
Home : Products : DBMan : Customization :

templates control

Quote Reply
templates control
How do I control this link in the dbm_templates_html.pl?
Right now it points to www.dd.com/cgi-bin/dbman
$permission_links .= " <A HREF=" . $front_entrance_url . ">Front Entrance</A> |
Quote Reply
Re: templates control In reply to
  
Code:
$permission_links .= qq|<A HREF="$front_entrance_url">Front Entrance</A>|;


2) Then add the following tag definition in the %globals hash:

Code:
permission_links => $permission_links

HOWEVER, I would go about this totally differently, by simply defining "$front_entrance_url" as a link in the following manner:

1) Add the following variable definition:

Code:
$frontlink .= qq|<A HREF="http://www.yourdomain.com/cgi-bin/dbman/db.cgi">Entrance</A>|;

2) Then add the following global tag definition:

Code:
frontlink => $frontlink

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums


[This message has been edited by AnthroRules (edited March 10, 2000).]
Quote Reply
Re: templates control In reply to
Thanks Elliot, but where do I add the variable
$frontlink .= qq|<A HREF="http://www.yourdomain.com/cgi-bin/dbman/db.cgi">Entrance</A>|;
I mean in which section of dbm_template_html.pl?
And do you mean for me to change $frontlink to $front_entrance_url, as it is in the file, in the sub html_footer section?
Quote Reply
Re: templates control In reply to
1) PUT THE CODES AT THE VERY TOP OF THE FILE BEFORE %globals.

2) Yes.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: templates control In reply to
Do I have to delete something in the sub html_footer ?
because I get this:
Front Entrance>Front Entrance
and I get this as the link,
http://www.mmadie.com/mmadiecgi/dbman/<A

thanks
Quote Reply
Re: templates control In reply to
Please provide a link to your database. I need to see what you've done...I think you may have totally misunderstood my suggestions, because the codes I gave you SHOULD work!

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: templates control In reply to
http://mmadie.com/mmadiecgi/dbman/db.cgi
where the script is.
I put dbm_templates_html.pl and default.cfg in http://mmadie.com/public

thanks again!
Quote Reply
Re: templates control In reply to
Okay...the problem is you DID NOT follow my instructions carefully!

Okay...you have the right codes for the $front_entrance_url.

Yet you need to define this in the %global hash underneath pass_it2 => $pass_it2.

Like the following:

Code:
front_entrance_url => $front_entrance_url

You also need to put a comma after $pass_it2, so your %global hash should look like the following:

Code:
%globals = (
pass_it => $pass_it,
pass_it2 => $pass_it2,
front_entrance_url => $front_entrance_url
);


Then in your footer template file, use the following tag:

Code:
<%front_entrance_url%>

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: templates control In reply to
UGH...

Okay...if you want to simply use the <%permission_links%> tag rather than the <%front_entrance_url%> that I have explained in this Topic.

Then simply define the $front_entrance_url variable in the top of the sub html_footer routine, like the following:

Code:
$front_entrance_url = "http://www.yourdomain.com/cgi-bin/dbman/db.cgi";

Hope this now works and helps!

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: templates control In reply to
That works for passing a link to a template.
But further down in dbm_tempaltes_html.pl is this code:
sub html_footer {
# --------------------------------------------------------
# Print the menu and the footer and logo. It would be nice if you left
# the logo in. Wink
#
# We only print options that the user have permissions for.
#

my $font = qq|<font face="MS Sans Serif, arial,helvetica" size=2 color="#FF3333">|;

$permission_links .= " <A HREF=" . $front_entrance_url . ">Front Entrance</A> | ";
$permission_links .= " <A HREF=" . $db_script_link_url . ">Home</A> | ";

I would like to learn how this works. Since this passes to the tag that is in the template.
I am trying to see where $db_script_url, gets its definition as well?
Thank you

[This message has been edited by Bert99 (edited March 11, 2000).]
Quote Reply
Re: templates control In reply to
That works perfectly!
Thanks,
until next time,
regards
Quote Reply
Re: templates control In reply to
GOOD!

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums