What is this inserted code from/for?
Permalink
Not sure this is the right forum for this question, however I'm trying to figure out why the following code is inserted into my code:
http://pastie.org/2404664
Basically I prefer clean and controlled output from my CMS. I am evaluating Concrete5 for future projects with this first commercial project and I am currently just finishing things up.
Thanks in advance to anyone with answers!
http://pastie.org/2404664
<script type="text/javascript"> var CCM_DISPATCHER_FILENAME = '/index.php'; var CCM_CID = 1; var CCM_EDIT_MODE = false; var CCM_ARRANGE_MODE = false; var CCM_IMAGE_PATH = "/concrete/images"; var CCM_TOOLS_PATH = "/index.php/tools/required"; var CCM_REL = ""; </script> <link rel="stylesheet" type="text/css" href="/concrete/css/ccm.base.css?v=048562fb3858d9c3fe0f27594d718d55" /> <script type="text/javascript" src="/concrete/js/jquery.js?v=048562fb3858d9c3fe0f27594d718d55"></script> <script type="text/javascript" src="/concrete/js/ccm.base.js?v=048562fb3858d9c3fe0f27594d718d55"></script> <link rel="stylesheet" type="text/css" href="/concrete/blocks/slideshow/view.css?v=048562fb3858d9c3fe0f27594d718d55" /> <script type="text/javascript" src="/concrete/js/swfobject.js?v=048562fb3858d9c3fe0f27594d718d55"></script>
Basically I prefer clean and controlled output from my CMS. I am evaluating Concrete5 for future projects with this first commercial project and I am currently just finishing things up.
Thanks in advance to anyone with answers!
var CCM_EDIT_MODE = false;
var CCM_ARRANGE_MODE = false;
are really only used in editmode, but the others are used throughout c5 and addons.
var CCM_ARRANGE_MODE = false;
are really only used in editmode, but the others are used throughout c5 and addons.
What is odd is I literally have nothing on the front page except for basic content blocks. And I never had a slideshow block added. I don't really like that Concrete messes with the css path. Interesting that its different name compared to the stylesheet that I used.
I'm used to using Symphony CMS where I have complete control over the output, so this is a different experience for me. It seems that Concrete is also changing the whitespace compared to vanilla html.
I'm used to using Symphony CMS where I have complete control over the output, so this is a different experience for me. It seems that Concrete is also changing the whitespace compared to vanilla html.
C5 doesn't mess with the stylesheet path if you use $this->getThemePath() instead of $this->getStyleSheet() to include it. The latter is only necessary for the "custom styles" feature that lets users change some styles via the dashboard, but this is only useful when you're building general themes to be used by lots of different people for lots of different purposes (like in the marketplace). If you're just building a site for a client though, you will never want to use the custom styles thing because you want to decide what the colors and fonts will be and not let the client change those.
I totally understand the desire for clean code being outputted, but I have to warn you that using any CMS is going to be a bit of a compromise in this regard. With C5 at least the actual <body> of your page stays as clean as you make it in your templates, but worrying about the stuff in the header is going to just drive you insane. I've found that I need to just let go of making the source look perfect, because it doesn't affect the "real" product at all -- end users are only seeing the rendered page, not the source itself.