Problems, need help? Have a tip or advice? Post it here.
7 posts Page 1 of 1
Hi guys,

I am new at using your cms system and at the start I am having problems. CMS is installed on my localhost and it's up & running but what ever I do it wont to recognize any templates which I made. There is still error message: No templates are being managed by the CMS. Does anyone what I am doing false and can anybody tell me where to add my template? Should I add in Couch folder (i have already tried this and still it is not running).

Thanks!
Hi goramljak,

I'm sorry you are finding the going difficult.
I'll try to answer your questions -

It is explained in detail in our tutorial (http://www.couchcms.com/docs/tutorials/ ... -site.html) but I presume you've already gone through that and things are still not clear.

Let us try this out -
1. Place a blank file named 'my.html' in your site's root.
2. Simply place <h1>hello<h1> in it - nothing else (no body tag etc, nothing).
3. Access the file using your browser. You should of course see 'hello'.
4. Note the URL you used to access the file. Assuming it is something like -
http://localhost/my.html
your Couch installation should be situated at
http://localhost/couch/
5. Visit http://localhost/couch/ and login as super-admin (i.e. the account you created at installation).
6. Open another tab of the browser you used above (i.e the same browser that has the admin-panel open)
5. Rename my.html to my.php
Access http://localhost/my.php
You should still see 'hello'
6. Add
<?php require_once( 'couch/cms.php' ); ?>
and
<?php COUCH::invoke(); ?>
to the very top and bottom of my.php and access it through the second tab we opened above.
You should still see 'hello' (with perhaps 'Powered by CouchCMS' if you have not turned it off in config).
7. Come back to the admin-panel and refresh it.
8. you should see 'my.php' listed in the sidebar.

Follow the steps precisely and if you still don't see the template registered, there must be something wrong that I won't be able to help you with on localhost. Please move to a hosted server where I can login to see what could be going wrong.

Hope this helps.
Hi KK,

thanks for quick feedback. I solved the problem but my way. I did it all right but the problem was when made all the changes then the new page wasn't appearing in the menu of the template. I did not knew that user need firstly to load the "newly made template" and only then it will appear in cms menu. But now the problem is solved.

I have just one more question. The problem is as following, I am trying to combine gallery with lightbox (thumbnails) and other content (text and so on). I've already made gallery with lightbox which is working but unfortunately I am not able to edit my content (the rest of it). How can I solve that and can you pls help me.

Here is pre header content (hopefully it helps you to see situation):

<?php require_once'couch/cms.php'; ?>
<cms:template title='Gallery' clonable='1' dynamic_folders='1' gallery='1' order='6'>
<cms:editable
name='gg_image'
label='Image'
desc='Upload your main image here'
width='500'
height='500'
show_preview='1'
preview_height='200'
type='image'
/>

<cms:editable
name='gg_thumb'
label='Image Thumbnail'
desc='Thumbnail of the main image above'
width='250'
height='250'
enforce_max='1'
assoc_field='gg_image'
show_preview='1'
type='thumbnail'
/>

<cms:editable
name='my_thumb_2'
label='Image Thumbnail 2'
desc='Second thumbnail of the main image above'
width='250'
height='250'
assoc_field='gg_image'
show_preview='1'
type='thumbnail'
/>

<cms:editable
name='my_desc'
label='Description'
height='60'
type='textarea'
/>

<cms:editable name='slider' label='slider' desc='Slider' type='richtext' />
<cms:editable name='klijenti' label='klijenti' desc='Klijenti' type='richtext' />
<cms:editable name='opis' label='opis' desc='Opis' type='richtext' />
<cms:editable name='preporuke' label='preporuke' desc='Preporuke' type='richtext' />
<cms:editable name='kontakt_info' label='kontakt_info' desc='Kontakt info' type='richtext' />
</cms:template>
Hi,

There is nothing out-of-place that I could spot in your code.
unfortunately I am not able to edit my content (the rest of it)
Exactly how does that happen? You don't see the new editable regions? Cannot save values in them? Or the values do not appear on the front-end?

Please do remember to refresh your template as super-admin every time you make some structural change (like adding/modifying some editable region) for the change to appear in the admin-panel.
As you can assume I can not see saved content in new editable regions, it just not appears on the front-end. What could that be?

And one other question regarding this span protection. When I add requested <tag> elements this message is shown to me when I hit send msg.

ERROR! Unknown tag: "check_spam"

Here is html structure http://jsfiddle.net/0t0fL9am/
ERROR! Unknown tag: "check_spam"

Please edit 'couch/addons/kfunctions.php' and remove the leading '//' from the following line -
Code: Select all
//require_once( K_COUCH_DIR.'addons/data-bound-form/data-bound-form.php' );

This will enable the Databound-form module that makes the cms:check_spam tag available.

Regarding the original problem -
The values in editable regions are available only in 'page-view' (i.e. when you visit a cloned page of a template as opposed to the template itself).

To make sure you are visiting the page-view, click the 'magnifying glass' icon in the listing pf pages shown in admin-panel. That'll will load the template in page-view.

If the contents still do not appear, place a <cms:dump_all /> tag on the template and you'll see all the data that is available. Your regions should be in there too.

Make sure you are using the <cms:if k_is_page> check in your template's code (see http://www.couchcms.com/docs/concepts/views.html if you are unclear about this).

Hope this helps.
.

Attachments

7 posts Page 1 of 1