Rss and tags issues.

10 views
Skip to first unread message

Iliana Panagopoulou

unread,
Dec 2, 2016, 6:28:38 AM12/2/16
to Mezzanine Users
Hello all,

Sorry for the stupid questions but I can't seem to find any solution to my problems.

The first one is that in my rss feed the <link> apeears to be 127.0.0.1:8000 instead of my domain name. 
I do not find this hardcoded anywhere, what am I missing?

And the second issue, is that when I click on a blog's tag it does nothing, while I would want it to get me to a page where all the blog posts that have the same tag are. Maybe I have messed up with the urls somehow?

Thank you for your time,
Iliana.

Eduardo Rivas

unread,
Dec 2, 2016, 8:25:40 AM12/2/16
to mezzani...@googlegroups.com
Hi Iliana.

For the link issue, make sure you've updated the Site record in the
admin. It's under Site > Sites in the admin sidebar. By default it's set
to the local URL, but you should change it to your production domain.

Regarding the tags in blog posts, Mezzanine ships with linked tags in
the default blog post template (blog/blog_post_list.html). If you've
created your own templates, you'll need to replicate that to generate
the tag links:

{% keywords_for blog_post as tags %}
<ul>
{% for tag in tags %}
<li><a href="{% url "blog_post_list_tag" tag.slug %}">{{ tag
}}</a></li>
{% endfor %}
</ul>

See
https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/blog/templates/blog/blog_post_detail.html#L69-L81

Iliana Panagopoulou

unread,
Dec 2, 2016, 9:57:32 AM12/2/16
to mezzani...@googlegroups.com
Perfect.

Thank you very much.
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Mezzanine Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/mezzanine-users/dOs-Ps6CWrg/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> mezzanine-use...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Ηλιάνα Παναγοπούλου

Iliana Panagopoulou

unread,
Dec 5, 2016, 9:32:49 AM12/5/16
to mezzani...@googlegroups.com
Hello,

I looked at the code a second time, and turns out I was not very clear
as to what I needed.

I do have the tags underneath my blog posts.

But the tags link to an empty page. I want them to link to a page
where all the blog posts with the same tag/word are there.

Like this one [1].

[1]: http://mezzanine.jupo.org/blog/tag/sockets/

Thank you.

2016-12-02 15:25 GMT+02:00 Eduardo Rivas <jeriva...@gmail.com>:
Reply all
Reply to author
Forward
0 new messages