Problems, need help? Have a tip or advice? Post it here.
6 posts Page 1 of 1
Hei Guys,

I seem to have problems with displaying content in the front-end.

Basically, after invoking the couch tags, the content disappears from the browser. All that is visible is the pages' LOADING symbol which is endless. From the browser's page source, I am able to see the webpage's code - thus, the content is there, only that something is preventing from fully loading.

At first i assumed that the Javascript files are not been linked, but i have confirmed that they are with this:
Code: Select all
<script src="<cms:show k_site_link />assets/js/main.js"></script>


I even tried to use:
Code: Select all
<script src="/assets/js/main.js"></script>
but it didn't work.

However, i am able to see the editable tags that i have created from the Admin page.

Any assistance would be appreciated.
Seems to be a JS issue to me.

One good way to begin troubleshooting would be to compare the original HTML code and the Couch generated one (as seen by doing a view:source). The portions that are different should yield a clue as to what could be causing the problem.

If your site happens to be online, please PM me the problem page's URL and I can take a look at it.
Thank you for the reply.

I am working on the portable version of couch, unfortunately.

I did however try to re-install couch - basically start all over and to some point, i had the website displaying - index page was working fine, but after invoking the couch tags on the about page, it suddenly went blank.

Its weird as am able to view the webpages well without couch, yet once i install it, everything goes blank.

It is clear that the reason the page is not displaying the content is coz the JS is not being called - but what i don't understand is why it aint coz i have re-checked to confirm that all files are linked well.
See, there is one thing we can be sure of - Couch doesn't inject a single byte of markup by its own accord.

So, for example, taking your index page - keep a copy of it before adding Couch's 'include' statements.
Now add the two PHP statements to hook Couch onto the index page. The output you see on the frontend, at this point. would be 100% the same as the one we had above before Couch was added.

Now move on to add the editable regions. The generated output will now only be different by what was inputted into the editable regions.

Try making incremental changes till you reach the point where the site breaks. You should be able to figure out what caused that.
Again, thanks KK.

I will try to do that and hopefully i will be able to figure out which JS functions are nob being called as i include the couch's tags.

Again, Thanks
@kajoe14:

Just a suggestion, do make sure that you have included the boilerplates, viz.:

Code: Select all
<?php require_once( 'couch/cms.php' ); ?>
     <!-- Website Code -->
          ...
     <!-- Website Code -->
<?php COUCH::invoke(); ?>


As you suggested that all is lost in the about template, even though the links are defined using: "<cms:show k_site_link />", so do check the boilerplates once on that template. They are compulsory on each static page of your site, that you want to be "Couchified".

Regards,
GenXCoders
Image
where innovation meets technology
6 posts Page 1 of 1