TemplateLinkButton

General Chat, Comments
Post Reply
sytodave
Posts: 4
Joined: Sun Mar 02, 2014 9:54 am

TemplateLinkButton

Post by sytodave »

Hi this may seem noob question. how does the TemplateLinkButton work and how would i implament it in the to the script am making instead of using linkbutton and also styleing it with css

sorry inadvance for a noob question
User avatar
gmoore
Posts: 212
Joined: Wed Jun 04, 2014 5:40 pm

Re: TemplateLinkButton

Post by gmoore »

I have never used this routine 'yet'.

Looking at the code, if your template has a 'functions.php' file in the template directory it will allow you to call your own function:

TemplateLinkButton($id, $label, $url, $javascript, $target, $enabled);

which will allow you to override the normal link button. The code that you return is then added to the outgoing page.

Greg
Running a game is like riding a bike ... well it should be!

New Worlds Engine / FunMayhem.com
Helping you get your game concept up and running. Now.
User avatar
KyleMassacre
Posts: 573
Joined: Wed Nov 27, 2013 12:42 pm

Re: TemplateLinkButton

Post by KyleMassacre »

Correct. How the link and submit buttons work is that it checks your current template directory for a functions file and if the Template*(); functions is there it will use that, other wise It will use the default styles which is like a link type text
sytodave
Posts: 4
Joined: Sun Mar 02, 2014 9:54 am

Re: TemplateLinkButton

Post by sytodave »

right got u now still tryn to get to grips with some the functions with in the engine. thanx for the help
User avatar
a_bertrand
Posts: 1536
Joined: Mon Feb 25, 2013 1:46 pm

Re: TemplateLinkButton

Post by a_bertrand »

A good start could be found here:
http://nw-engine.com/index.php?c=extract_doc
Creator of Dot World Maker
Mad programmer and annoying composer
Post Reply

Return to “General”