Page 1 of 1

[solved] including 'code' in content/page

Posted: Mon Oct 22, 2007 6:21 pm
by kissack
Hello all,

Sorry to dive in with my first post being a question, but I am looking to move one of my sites from mambo to CMS Made Simple and have come unstuck very early on.

The site will illustrate modifications and additions to a firewall product called IPCop.  In the instructions I need to paste changes to the code.  When I tired this I found that CMS Made Simple has interpreted the code and used it for it's own purpose.  THe end result being a messed up content page.

As an example the code section:
# my $LQ_GATEWAY=`netstat -r | grep ^default | awk '{print \$2}'`;
# or I found better...

renders as
#  my $LQ_GATEWAY=`netstat -r | grep ^default | awk ' Print this page'`;
#  or I found better...
#


There are other examples on my first page, but I suspect someone here has the answer to my dilemna

TIA
Allan

Re: including 'code' in content/page

Posted: Mon Oct 22, 2007 6:31 pm
by RonnyK
Allan,

you can wrap {literal}{/literal} around the code-call.

Ronny

Re: including 'code' in content/page

Posted: Mon Oct 22, 2007 6:39 pm
by calguy1000
Anything with { brackets in it, is going to need literal calls.

OR, you can download and install the geshi smarty plugin.  It works well.  Or it did for me.

Re: including 'code' in content/page

Posted: Mon Oct 22, 2007 6:42 pm
by kissack
RonnyK wrote: you can wrap {literal}{/literal} around the code-call.
Hi Ronny

Thanks for the quick reply.  This does exactly what I needed

Thanks too to calguy1000
--
Allan