Hi all, and KK!
I am trying to implement the above example, but, since I just started with CouchCMS today, I have stumbled across an error. Maybe a quick tip what I did wrong.
So I made a working blog and a list page. Now I would like to make language support with latvian as my primary. This is what I did now:
1. folders "lv" and "en" contain "list.php"
2. lv is the primary, so has this:
and then I have my english copy, with the following:
But I am getting this error in the english page:
What did I do incorrectly, or forgot to do?
I am trying to implement the above example, but, since I just started with CouchCMS today, I have stumbled across an error. Maybe a quick tip what I did wrong.
So I made a working blog and a list page. Now I would like to make language support with latvian as my primary. This is what I did now:
1. folders "lv" and "en" contain "list.php"
2. lv is the primary, so has this:
- Code: Select all
<?php require_once( '../couch/cms.php' ); ?>
<cms:lang_group
lv='../lv/list.php'
en='../en/list.php'
_common_fields='datums | lat | lon | my_multiple_images | veids | tips | garums'
/>
<cms:template title='Apraksts' clonable='1' dynamic_folders='1'>
<cms:editable name='apraksta_teksts' type='richtext' />
<cms:editable name='mazais' type='text' />
<!-- shared tags -->
<cms:editable name='garums' type='text' />
(etc ...)
and then I have my english copy, with the following:
- Code: Select all
<?php require_once( '../couch/cms.php' ); ?>
<cms:lang_group
lv='../lv/list.php'
en='../en/list.php'
_common_fields='datums | lat | lon | my_multiple_images | veids | tips | garums'
/>
<cms:template title='Apraksts' clonable='1' dynamic_folders='1'>
<cms:editable name='apraksta_teksts' type='richtext' />
<cms:editable name='mazais' type='text' />
<!-- related EN page -->
<cms:editable type='relation' name='related_page' label='Related English Page' masterpage='../lv/list.php' has='one' reverse_has='one' />
</cms:template>
<cms:if k_is_page >
<!DOCTYPE html>
But I am getting this error in the english page:
- Code: Select all
ERROR: Tag "related_pages": relation field 'related_page' not defined in en/list.php
What did I do incorrectly, or forgot to do?