tag:help-archives.hannonhill.com,2010-02-09:/discussions/velocity-formats/13965-publish-a-file-without-escapingCascade CMS: Discussion 2016-04-06T16:59:44Ztag:help-archives.hannonhill.com,2010-02-09:Comment/395663652016-04-05T18:11:45Z2016-04-05T18:11:45ZPublish a file without escaping<div><p>Hi Brendon,</p>
<p>You should be able to simplify your Template to the
following:</p>
<pre>
<code><!--#cascade-skip--><pass-through><system-region name="DEFAULT"/></pass-through></code>
</pre>
<p>Then, in your Format simply surround the PHP content inside of
<code>#protect-top</code> code sections to push that content to the
top of the rendered page content. For additional information, check
out <a href="http://help.hannonhill.com/discussions/how-do-i/20628-output-data-from-datadefinition-to-json#comment_38616233">
my response to this similar discussion</a> which deals with
outputting a JSON file. In your case, it's the same setup only you
are outputting PHP.</p>
<p>Please let me know if you have any questions.</p>
<p>Thanks!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/395663652016-04-05T18:39:51Z2016-04-05T18:39:51ZPublish a file without escaping<div><p>Perfect, thanks Ryan.</p></div>birwintag:help-archives.hannonhill.com,2010-02-09:Comment/395663652016-04-05T18:42:41Z2016-04-05T18:42:41ZPublish a file without escaping<div><p>Actually, there is one small issue still, the links do not
convert into non scade links, they still contain the site:// and no
file extension.</p>
<pre>
<code>array(
"title" =>'Faculty of Arts',
"link"=>'site://www.wlu.ca/academics/faculties/faculty-of-arts/index',
"cid"=> 'e2437e070a0a4ab0227deb18d24cbbce',
"children" => array(
"title"=>'Ancient Studies',
"link"=>'site://www.wlu.ca/academics/faculties/faculty-of-arts/department-of-global-studies/index',
"pid"=>'e2437e070a0a4ab0227deb18d24cbbce'
,
"title"=>'Anthropology',
"link"=>'site://www.wlu.ca/academics/faculties/faculty-of-arts/department-of-history/index',
"pid"=>'e2437e070a0a4ab0227deb18d24cbbce'
,
"title"=>'Archaeology',
"link"=>'site://www.wlu.ca/academics/faculties/faculty-of-arts/department-of-archaeology-and-classical-studies/index',
"pid"=>'e2437e070a0a4ab0227deb18d24cbbce'
)
)</code>
</pre></div>birwintag:help-archives.hannonhill.com,2010-02-09:Comment/395663652016-04-05T19:26:48Z2016-04-05T19:26:48ZPublish a file without escaping<div><p>Hi Brendon,</p>
<p>In order for the links to be tracked, you will need to surround
them with <code>[system-asset]</code> pseudo tags. Note; however,
this will produce relative links by default, but you can enable the
<strong>Maintain Absolute Links</strong> option on the page. If you
need a fully qualified URL, you will need to append a URL onto the
front of the link (before the pseudo tag).</p>
<p>Please let me know if you have any questions.</p>
<p>Thanks!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/395663652016-04-06T13:33:57Z2016-04-06T13:33:57ZPublish a file without escaping<div><p>That did the trick. Thanks Kindly Ryan!</p></div>birwintag:help-archives.hannonhill.com,2010-02-09:Comment/395663652016-04-06T16:59:43Z2016-04-06T16:59:43ZPublish a file without escaping<div><p>Not a problem at all, Brendon. I am glad to hear that did the
trick.</p>
<p>I'm going to go ahead and close this discussion, please feel
free to comment or reply to re-open if you have any additional
questions.</p>
<p>Have a great day!</p></div>Ryan Griffith