Page Created - How To Completely Edit HTML/JS/CSS Files

Permalink
Hi All:

I created a page via the Dashboard > Sitemap. My question is, what if I want to completely edit the page's HTML at that particular page path/location? I've tried clicking Edit and Design but that's not what I want to do. I do not want to just add extra CSS, but instead, I want to completely edit that particular page's HTML/JS/CSS code.

Can anyone help me? I'd appreciate it.

Thanks,
Keith

MavenMedia
 
mesuva replied on at Permalink Reply
mesuva
This sounds like you should create a new page type in your theme and apply that to the page.

In the new page type you can specify the HTML you want, as well as include different header and footer elements. In this way you'd have complete control over the HTML and whatever CSS/Javascript it includes. You'd just need to be sure to include in your custom header and footer elements these lines to include the things Concrete5 needs:

<?php  Loader::element('header_required'); ?>
and
<?php  Loader::element('footer_required'); ?>


I've sort of done the same thing for my site, which I doco'd on my blog:http://www.mesuva.com.au/blog/technical-notes/adding-ajax-source-pa...
This example is more for creating very basic/stripped down pages (to be pulled in via Javascript), but the same process applies.