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

I've been slowly retrofitting a site with Couch and things are going very well. The documentation is fantastically clear.

Nonetheless, I do have a couple of dumb questions... :)

First off : if I'm not logged in to the backend as a super-admin, when I type the site's URL I just get a blank white page. The source code is completely empty. Is this expected behaviour? I would like my client to be able to see the work in progress. I have a redirect at the root which drops the user into a "fr" folder, as French will be the default language (see code below). What have I done wrong?

Code: Select all
<?php require_once( 'couch/cms.php' ); ?>
<cms:template title='Referral' order='16' hidden='1'>
<cms:redirect url='http://test.study-technologies.com/fr/' />
</cms:template>
<?php COUCH::invoke(); ?>


Secondly : it's not very clear to me how my client will be able to add and remove pages. I currently only have one template which is clonable (for the News section). The other templates are all "singles". I'm struggling to understand how my client would go about adding a new page, or indeed removing an existing one.

Whilst the docs are brilliant from a designer/developer's perspective, there doesn't seem to be much documentation explaining things from a client/user's perspective. I will obviously need to teach my client how to use Couch, and it would help immensely if these questions were elucidated.

Thanks for a brilliant CMS!
cheers,
Ric
2nd question:
Client will be able to do what developer creates for her.
Add-remove pages can be done for clonable templates. For ordinary ones, there is only editing of editables left.

1st question:
Once you actually code some html to reveal your work in progress, it will be displayed on the page. Your redirect code looks valid.
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
trendoman wrote: 2nd question:
Client will be able to do what developer creates for her.
Add-remove pages can be done for clonable templates. For ordinary ones, there is only editing of editables left.

1st question:
Once you actually code some html to reveal your work in progress, it will be displayed on the page. Your redirect code looks valid.


Thanks Trendoman. For your first reply I had begun to understand that this was the case. However, I'm not sure I understand your second reply. What do you mean by "code some html to reveal your work in progress"?

Thanks!
You said that source code is empty.
Please, don't expect Couch to do designer's work and create html code out of nowhere. Empty - means there is nothing there, as i assume there are no other bugs in the setup.

If you have something like
<h1><cms:show my_heading /></h1>
And my_heading is a properly set editable, filled with content in admin backend, then it will show itself, won't it?

I assume you realize that already. So, probably, there is something that needs to be corrected in code. Post it here and I help find the problem that prevents your existing html code to show up.
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
OK, I understand better what you mean now. Much appreciated your taking the time to help out here !

Well, the problem seems to be with the redirect, because if I type the full URL of the page, with "index.php" at the end, it shows up fine :
http://test.study-technologies.com/fr/index.php

However, if I type the URL at the root, which triggers the redirect, then I get a blank page :
http://test.study-technologies.com/

I have changed the code in the redirect to include the full URL, but it makes no difference :
Code: Select all
<?php require_once( 'couch/cms.php' ); ?>
<cms:template title='Redirection' order='16' hidden='1'>
<cms:redirect url='http://test.study-technologies.com/fr/index.php' />
</cms:template>
<?php COUCH::invoke(); ?>


I must confess, I'm a bit stuck.
Move the redirect to outside of the cms:template block. On a phone, apologies for being terse.
:lol: :lol: Yeah, that is a something :)
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
Brilliant. That did the trick! No worries about the terseness, you were super efficient :-)
8 posts Page 1 of 1