Page 1 of 1

TemplateLinkButton

Posted: Mon May 04, 2015 2:53 pm
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

Re: TemplateLinkButton

Posted: Tue May 05, 2015 1:00 am
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

Re: TemplateLinkButton

Posted: Tue May 05, 2015 3:14 am
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

Re: TemplateLinkButton

Posted: Tue May 05, 2015 4:20 pm
by sytodave
right got u now still tryn to get to grips with some the functions with in the engine. thanx for the help

Re: TemplateLinkButton

Posted: Tue May 05, 2015 5:12 pm
by a_bertrand
A good start could be found here:
http://nw-engine.com/index.php?c=extract_doc