hi,
i using couchCMS with this multilang addon: viewtopic.php?f=5&t=10979
situation is:
i have few languages: en, ru, lt
after changing 'K_PRETTY_URLS', to 1 in config.pp i have one template name with fields output using:
thats okey, it works, it's super great!!
I have fields value on my url domain.com/language/template (example: slo.loc/en/about) its great too !!
question
now have a question:
how to make this feature: domain.com/language/tempalate_customroute_from_field
example:
how I understand, in template i need to make
in admin panel i have this picture:

I didn't have experience with custom route, maybe someone can help me to solve this question?
and I know, after K_PRETTY_URLS changing to 1, i need to visit admin/gen_htaccess.php to copy all text, and paste to /root/.htaccess file..
really, i don't know how to solve this problem using CouchCMS, maybe @KK or @trendoman can help?
i using couchCMS with this multilang addon: viewtopic.php?f=5&t=10979
situation is:
i have few languages: en, ru, lt
after changing 'K_PRETTY_URLS', to 1 in config.pp i have one template name with fields output using:
- Code: Select all
<cms:get "url_<cms:show lc />" />
thats okey, it works, it's super great!!
I have fields value on my url domain.com/language/template (example: slo.loc/en/about) its great too !!
question
now have a question:
how to make this feature: domain.com/language/tempalate_customroute_from_field
example:
slo.loc/en/aboutus - for english,
slo.loc/ru/onas - for russian
slo.loc/lt/apiemus - for lithuanian
... for other pages should be own url after domain/$lang/$own_page
how I understand, in template i need to make
- Code: Select all
<cms:template title="template name" routable='1'>
<cms:each k_supported_langs as='lang' key='lc'>
<cms:editable name="seo_group" label='SEO' type='group' order='200'>
<cms:editable name="url_<cms:show lc />" label="URL <cms:show lang />" type='text' group='seo_group' />
</cms:editable>
</cms:each>
<cms:route name='??????' path="<cms:get "url_<cms:show lc />" />" />
</cms:template>
<cms:match_route debug='1' />
<cms:if k_matched_route="<cms:get "url_<cms:show lc />" />"> ----- ???????
<h2>This is list_view</h2>
<cms:get "url_<cms:show lc />" />
</cms:if>
in admin panel i have this picture:

I didn't have experience with custom route, maybe someone can help me to solve this question?
and I know, after K_PRETTY_URLS changing to 1, i need to visit admin/gen_htaccess.php to copy all text, and paste to /root/.htaccess file..
really, i don't know how to solve this problem using CouchCMS, maybe @KK or @trendoman can help?