Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

change the translation uhl

18 views
Skip to first unread message

Sascha

unread,
Sep 12, 2014, 7:32:50 AM9/12/14
to django-...@googlegroups.com
Hi!
I would like to change the translation uhl of: /hello/bonjour/ in /bonjour/ without child...
in the doc I have found "overwrite PagePretender.get_children ()." i have no idea to do this... sorry
It is probably easy and you all will make fun of me

Sascha

Matthias Kestenholz

unread,
Sep 12, 2014, 7:37:54 AM9/12/14
to FeinCMS
Hi,

Any reason why "bonjour" has to be a subpage of "hello"? If you edit "bonjour" and empty the "parent" field, the URL of "bonjour" should be what you want.

By the way, PagePretenders have nothing to do with that. They are only used to _generate_ navigation, not to find or place pages in the tree.


Matthias


Sascha

unread,
Sep 12, 2014, 11:26:27 AM9/12/14
to django-...@googlegroups.com

Bonjour Matthias,

thanks for your support! I made it like this:

the link looks like this /hallo/bonjour/ no reason for subpage.

base.html:

{% feincms_languagelinks for feincms_page as links all,excludecurrent %}
{% for key, name, link in links %}
    <a href="{% if link %}{{ link }}{% else %}/{{ key }}/{% endif %}">{% trans name %}</a>
{% endfor %}

Matthias Kestenholz

unread,
Sep 15, 2014, 3:03:35 AM9/15/14
to FeinCMS
Hey,

On Fri, Sep 12, 2014 at 5:26 PM, Sascha <sasch...@googlemail.com> wrote:

Bonjour Matthias,

thanks for your support! I made it like this:

the link looks like this /hallo/bonjour/ no reason for subpage.

base.html:

{% feincms_languagelinks for feincms_page as links all,excludecurrent %}
{% for key, name, link in links %}
    <a href="{% if link %}{{ link }}{% else %}/{{ key }}/{% endif %}">{% trans name %}</a>
{% endfor %}



Does it work as you want it to when you empty the "parent" field? Just remove the "1" inside, and save.


Matthias


Sascha

unread,
Sep 15, 2014, 10:13:22 AM9/15/14
to django-...@googlegroups.com
Hi Matthias,
yes.. Thank you!
But now is everything in my nav. :-/

what is the best practice?
toplevel 1 == language
suplevel 2 == page (home, contect, products)
supsuplevel 3 == suppage (product 1, 2, 3)
like this?

Sascha


Matthias Kestenholz

unread,
Sep 15, 2014, 10:13:57 AM9/15/14
to FeinCMS
On Mon, Sep 15, 2014 at 4:13 PM, Sascha <sasch...@googlemail.com> wrote:
Hi Matthias,
yes.. Thank you!
But now is everything in my nav. :-/

what is the best practice?
toplevel 1 == language
suplevel 2 == page (home, contect, products)
supsuplevel 3 == suppage (product 1, 2, 3)
like this?


Yes, that's how we do it most of the time.


Matthias


Sascha

unread,
Sep 15, 2014, 11:05:42 AM9/15/14
to django-...@googlegroups.com
 you are great! :-)


Reply all
Reply to author
Forward
0 new messages