-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Internal links from templates #55
Comments
You should review the django-parler app. http://django-parler.readthedocs.org/en/latest/ I'm not sure I understand exactly what you asking but I think this close to what you need:
Where |
@vinnyrose However, I'd like to link to a fluent_page node from another app/template. Say I am in books app and I want to put a link to "about us" page. How can I do that? Thank you in advance. |
If you're looking to render a menu I would look at some template tags: If you just want to link to the about page then you can get the about page in your view by either by |
@vinnyrose Thank you very much. I think you are on the right tangant.
gives me this error:
I am trying to get the node for "uber-firma", which is "de" default language, and then display "about-company" link in the template. Is there any easier way to do this, e.g. a template tag? Many thanks! |
If you have some special page where you want to link to, you can also use If you define I use this to link to a "Terms and conditions" page or contact page. For regular content, I'd use a menu as @vinnyrose suggested. The exception you get happens because PyDev hooks the import code. You can fix this by running |
I have looked around to find out how to link directly to a fluent_page. Say I have 1 page with 2 translations:
How can I link to the root of these pages that when say /de/ is activated it goes to the German version of the content and not the english one?
The text was updated successfully, but these errors were encountered: