make new link to new page

English! place to talk about development, programming and coding
Post Reply
rinfuunyaw
Znuny newbie
Posts: 5
Joined: 09 Aug 2010, 07:32
Znuny Version: 1.2

make new link to new page

Post by rinfuunyaw »

someone please help me to make a link that will be connected with my newly-self-made .pl page.
I have tried to make this link
<a href="$Env{"BaseLink"}&Location=$LQData{"test"}">Test LInk</a>
but I didn't know how to connect it with other .pl file. I have tried everything but it didn't work.

please help me I really need the help :(
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: make new link to new page

Post by crythias »

What are you trying to do?
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
rinfuunyaw
Znuny newbie
Posts: 5
Joined: 09 Aug 2010, 07:32
Znuny Version: 1.2

Re: make new link to new page

Post by rinfuunyaw »

My company wanted me to separate the customer.pl page into three different pages, they were login, lost password and create account pages.
so the looked maybe looked like this one :
username :
Password:
(Login)

Create Account <--link
Lost Password? <--link
I have tried to make new .pl file but it didn't work. Perl is new for me so I really didn't now what should I do with the link D:
Daniel Obee
Moderator
Posts: 644
Joined: 19 Jun 2007, 17:11
Znuny Version: various
Real Name: Daniel Obée
Location: Berlin

Re: make new link to new page

Post by Daniel Obee »

$Env{"BaseLink"} contains the value of the linkpart following your FQDN, default being /otrs/index.pl?

Whatever this might be:
&Location=$LQData{"test"}"

it requires to define "test" upfront and a way to interpret &Location= as something usefull.

Another - much easier - way to achieve your goal woul be to alter the original CustomerLogin.dtl (create your own theme!) using css to mimic different screens.

Greets,
Daniel
rinfuunyaw
Znuny newbie
Posts: 5
Joined: 09 Aug 2010, 07:32
Znuny Version: 1.2

Re: make new link to new page

Post by rinfuunyaw »

do you mean that I should make the other pages with css?
Anyway, how could the link work?
Daniel Obee
Moderator
Posts: 644
Joined: 19 Jun 2007, 17:11
Znuny Version: various
Real Name: Daniel Obée
Location: Berlin

Re: make new link to new page

Post by Daniel Obee »

rinfuunyaw wrote:do you mean that I should make the other pages with css?
Anyway, how could the link work?
No link at all. You create one page with hidden features and a minimal fake navigation that reveals the features on demand.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: make new link to new page

Post by crythias »

I agree with Daniel/tisar ... Since the ability to recover password and create account are already on the first page, and perhaps the idea is to "clean up" the login page, you might better and easier be served by Googling "javascript hide show div" and applying that to anchor <a href="javascript:togglevisible">Create User</a>

Take a look at http://www.netlobo.com/div_hiding.html
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
rinfuunyaw
Znuny newbie
Posts: 5
Joined: 09 Aug 2010, 07:32
Znuny Version: 1.2

Re: make new link to new page

Post by rinfuunyaw »

I see..
I'll try it now. Thanks for your help! :)
Post Reply