Yes, yes, yes. You can put any kind of text/code you want in a custom
template.
Of course there are other system requirements to make something like
that work in some cases, for example PHP files usually have to have a
..php filename extension, so you would have to make sure you give that
extension to the filename setting in the Edit Page Contents screens.
Your webserver, of course, also has to have PHP installed and working.
Perl scripts usually have to be run from certain directories that have
been specially aliased in the webserver configuration to run cgi's. They
also usually need to have execute permissions set, which is not done by
default on files created by ShopSite's page generation (although a
simple script using the custom template CALL tag might do that easily
enough). JavaScript can be on almost any kind of web page, it is
compiled by the web browser, not on the server, so there usually aren't
the same restrictions as there are with server-side scripting languages.
-Loren
Eddie Caplan wrote:
Can I somehow insert PHP into a custom template? (And get it to run
successfully!)
What about Perl?
What about Javascript?