Forum for discussing general topics related to Couch.
9 posts Page 1 of 1
We have decided that Couch CMS is the best option to help us build a lightweight, flexible site. Our site is to be released in two weeks time and we need to iron out some issues before we purchase the Commercial License.

a) How can you make certain pages unsearchable. We followed the tutorial on data bound forms and have set up a contact page that logs data in a similar way to the application form example. This data needs to be kept confidential and cannot be searchable as part of the search functions.

b) Is it possible to include full html code inside any kind of <cms:editable> region. We have tried the no_xss_check='1' and are using text area type. We need to include <script> and quotation marks inside repeatable regions.

c) Is there a way to reload cms tags on a page without reloading the entire page - we need this function to fetch and reload data without the whole page reloading ever 5 minutes.

d) Finally, for a clonable template is it possible to amalgamate that data and create what I can only compare as a Wordpress homepage whereby the two latest posts are featured and the page is paginated.

Thanks in advance
Hello and welcome, wizardradio.

I'll try to answer your queries -
a) How can you make certain pages unsearchable. We followed the tutorial on data bound forms and have set up a contact page that logs data in a similar way to the application form example. This data needs to be kept confidential and cannot be searchable as part of the search functions.

Did you mean not being searchable through Couch's own search (via the cms:search tag) or not being searchable through search engines like Google?

If it is the former, we can set the 'masterpage' parameter of the cms:search tag to ignore the template in question e.g.
Code: Select all
<cms:search masterpage='NOT application.php' >..</cms:search>

If, however, it was about Google etc., I think using 'robots.txt' to make them skip these pages should help.

b) Is it possible to include full html code inside any kind of <cms:editable> region. We have tried the no_xss_check='1' and are using text area type. We need to include <script> and quotation marks inside repeatable regions

Type 'textarea' with no_xss_check='1' is the only way to prevent inputs from getting sanitized.

We can use such textarea in repeatable regions too.
So, is there some other problem with it that I am missing? Please let me know.

c) Is there a way to reload cms tags on a page without reloading the entire page - we need this function to fetch and reload data without the whole page reloading ever 5 minutes.
Couch is a server-side PHP application, so the round-trip to server cannot be avoided.
You can use AJAX to mitigate this by fetching only portions of the web-page.

In any case, if the page is requiring 5 minutes to reload, you should take a look at what might be causing this.

d) Finally, for a clonable template is it possible to amalgamate that data and create what I can only compare as a Wordpress homepage whereby the two latest posts are featured and the page is paginated.
Of course. We can use cms:pages with masterpage parameter to show cloned-pages belonging to absolutely any template on any other template.

The tag can be used multiple times to show data from multiple templates.
Pagination is fully supported.

Hope this helps.
Do let us know if something is still unclear.

Thanks.
Thanks for such a speedy reply.

a) Thanks. this elucidates and contracts our concerns.

b) We are using no_xss_check='1' and type="textarea" yet full html content is being sanitised and even worse a 404 error pops up.

c) Thanks, we will look into using AJAX to reload parts of the site.

d) Thanks you have been extremely helpful KKK

e) If so then how is it possible to use the <cms:pages> tag to generate a list of pages in which a custom editable tag shows pages which have the same value. At the moment we have a temporary solution using frames as seen below

<li>Posted By <u><cms:editable name="author" label="Author" type="text"></cms:editable></u>
<iframe frameborder="0" scrolling="no" seamless="seamless" src="/<cms:editablename='author' label='Author' type='text'></cms:editable>.php"></iframe>

But this requires us to manually create a new .php file for every 'author' we encounter.

We appreciate the fast response and useful replies.
b) We are using no_xss_check='1' and type="textarea" yet full html content is being sanitised and even worse a 404 error pops up.

Could you please PM me the template (in zip format) where you've defined the region?
There is no reason why the no_xss_check wouldn't work. Let me try out your code myself.

e) If so then how is it possible to use the <cms:pages> tag to generate a list of pages in which a custom editable tag shows pages which have the same value. At the moment we have a temporary solution using frames as seen below....

OK, please let me confess - I couldn't understand completely what you are trying to achieve.
For a moment let us take Couch out of the equation.
Could you please explain to me in general terms the use-case you are trying to implement?
Some screenshots or mockup would help immensely.

Thanks.
e) If so then how is it possible to use the <cms:pages> tag to generate a list of pages in which a custom editable tag shows pages which have the same value. At the moment we have a temporary solution using frames as seen below


I Believe you mean something like This:
Code: Select all
<cms:pages masterpage='blog.php' custom_field=author="<cms:show your Author name field/>"/>

--Variable are available here : for blog with author field filtered by <cms:show your Author name field/>--

</cms:pages>

I load frameworks and write bugs on top of them, after that I rearrange the code so that it looks like a cool product.
I Believe you mean something like this:
Code: Select all
<cms:pages masterpage='blog.php' custom_field=author="<cms:show your Author name field/>"/>
</cms:pages>


Thanks Tomarnst this is exactly what we needed. Having said that, I think the quotation marks go here custom_field="author=<cms:show your Author name field/>",

rather than here custom_field=author="<cms:show your Author name field/>",
Sorry for the typo (didn't check it).
I load frameworks and write bugs on top of them, after that I rearrange the code so that it looks like a cool product.
I have one question and I don't want to open new topic so I'll ask here :)

Is there possibility that I can make my site for some other language, example on English and on German?
For a discussion on creating multi-lingual sites, please see this -
viewtopic.php?f=8&t=74

Hope it helps.
9 posts Page 1 of 1