Discussions
link_to single page not working
Hi,
I'm trying to use the [link_to liquid tag](https://doc.locomotivecms.com/docs/tags#link_to).
The documentation linked above makes it seem very simple, but I just can't make it work.
I have a page called "ecosysteme" (that's its slug) and I simply wrote:
```liquid Liquid
{% link_to 'ecosysteme' %}
```
According to the docs this should generate something like `<a href="/path/to/ecosysteme">Écosystème</a>` but nothing is displayed when I use it.
What have I done wrong?
Posted by Grégoire Colson about 3 years ago
How to relate pages handlers in a content type
How to relate pages handlers in a content type to use it as a select field to set links to pages.
Posted by Ricky Fletcher over 8 years ago
path_to result is empty
I have been trying to setup a nav bar in my app (actually migrating locomotivehosting.com to this). I can't get the path_to function to return anything useful.
I have page with the handle of "products". I have tried these with all of them returning nothing.
I have tried these variations.
{% path_to products2 %}
{% path_to 'products2' %}
{{ path_to products2 }}
{{ path_to 'products2' }}
Posted by David Cook over 8 years ago