[solved] including 'code' in content/page

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
kissack
Forum Members
Forum Members
Posts: 18
Joined: Mon Oct 22, 2007 6:10 pm

[solved] including 'code' in content/page

Post 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
Last edited by kissack on Mon Oct 22, 2007 6:43 pm, edited 1 time in total.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: including 'code' in content/page

Post by RonnyK »

Allan,

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

Ronny
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: including 'code' in content/page

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
kissack
Forum Members
Forum Members
Posts: 18
Joined: Mon Oct 22, 2007 6:10 pm

Re: including 'code' in content/page

Post 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
Last edited by kissack on Mon Oct 22, 2007 6:44 pm, edited 1 time in total.
Post Reply

Return to “CMSMS Core”