Skip to content
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

How to show preview and link to Django CMS Page? #91

Open
pinksharpii opened this issue Oct 18, 2018 · 1 comment
Open

How to show preview and link to Django CMS Page? #91

pinksharpii opened this issue Oct 18, 2018 · 1 comment

Comments

@pinksharpii
Copy link

I'm using this plugin to add search to a client site. It successfully searches CMS Pages, Aldryn Blog Posts, and my custom Location "pages". The Blog output looks great - links to the blog post and shows the Lead In.

However, with CMS Pages, the {{ result.object.get_absolute_url }} as noted in the Haystack documentation, doesn't produce any value, when trying to link to the page. Also how can we get a description for the page? I assume it pulls the Meta Description on the page? I try using {{ result.object.body }} like in the documentation but it's nothing.

@alexandrenorman
Copy link

In my templates, this works :
{% page_url result.object.id %}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants