Variable Visions

Published Thu. Jan. 01, 1970

NetSuite Tag Variables in Themes PART:II

Use php file_get_contents as the tag value to access on an external site.

I started using NetSuite tag variables inside of NetSuite themes in the previous article:

http://www.variablevisions.com/articles/NetSuite-Tag-Variables-in-Themes

Use NetSuite Tag variable in your default theme as well as your custom html pages


Part 2 will allow us to use the same templates on an external site. The NetSuite theme uses the NetSuite tag variables and the external site pages use the php file_get_contents value of the NetSuite tag variable and they all point to the same piece of template code.

I thought first to use a php inlude but inlcludes will only work if the files are on the same server.

 

You'll need an addition to your .htaccess file if your files are .html and you wish them to process php without changing the file extensions.
Read the article about how to set up .html pages to process php here.


<? echo file_get_contents('http://store.interstateproducts.com/includes/test.php'); ?>


http://www.variablevisions.com/articles/NetSuite-Tag-Variables-in-Themes

http://jp2.php.net/manual/en/function.file-get-contents.php

http://forums.htmlhelp.com/lofiversion/index.php/t3874.html

Published Mon. Dec. 17, 2012

Keywords: NetSuite, php file_get_contents