How to write javascript code inside TPL file in smarty template Language

Just you have to add javascript code between LITERAL special Tags



// Some javascript code here//



Open article page in Frontend in joomla

You can open joomla aricle page direct in joomla by add this URL with some changes

http://Yoursitename/index.php/19-sample-data-articles/joomla/Article id in backendArticle Alias


1- go to backend – articles page

2- just hover the aricle and you will get somthing like that


3- copy id of article which is 188 in this example

4- get article Alise From article page details which is test_article  in our example

5- now you can make url to article page as following