Archives: Find items by date
I cant see if it is possible or not? We have a list of archive months on a page, and when clicking on one of those, I would like to show all blog posts published that month. We have three blogs on our site, and since the append function is not working, I have no clue how to do this.
Anyone?
Comments are currently closed for this discussion. You can start a new one.
2 Posted by John Nunemaker on 10 Apr, 2011 09:00 PM
We need to do a better job documenting it (only in the sample site right now), but a posts variable is automatically injected into the template for each blog archive date. You can just loop through that like so:
3 Posted by Haakon Langaas Lageng on 11 Apr, 2011 02:36 PM
Thanks. That should definately be documented :)
How abou this? It does not work, I need the friendly url to the label, not
the label name... {{label}} => does not work in a url.
<em class="tags">Tagged:
{% for label in item.labels %}
<a href="{{item.blog.label_folder_path}}{{label}}">{{label}}</a>,
{% endfor %}
</em>
2011/4/10 John Nunemaker <
***@tenderapp.com>
4 Posted by John Nunemaker on 11 Apr, 2011 02:38 PM
There is actually a filter for link to labels:
http://docs.harmonyapp.com/harmony-templates/filters/html-filters/#...
5 Posted by Haakon Langaas Lageng on 12 Apr, 2011 07:14 PM
Hi,
I just changed the Published date on a blog post from April to March, and
the blog post is moved from the April to the March archives correctly. But
the item.published_at still shows the April date.
We are experiencing an EXTREMELY slow page load. I don't know anything about
your hosting, but I would like to hear what you have done for European
customers, or if you will do anything at all to make your solution work for
European customers. At the moment it is close to useless...
--
Best regards,
*Haakon Langaas Lageng*
*
*
*Monkeybin*
Office: +47 94 00 83 00
Direct: +47 997 90 091
monkeybin.no
6 Posted by Haakon Langaas Lageng on 12 Apr, 2011 07:17 PM
I created a data field - a file upload - but later changed my mind and
deleted it. Then I created a short text with the same name. That field did
not work, nothing we wrote in it was possible to reference in the templates.
The solution was to create a new short text with a different name.
--
Best regards,
*Haakon Langaas Lageng*
*
*
*Monkeybin*
Office: +47 94 00 83 00
Direct: +47 997 90 091
monkeybin.no
Support Staff 7 Posted by Steve Smith on 12 Apr, 2011 07:38 PM
Thanks for reporting this bug. We'll add it to our internal ticket system.
8 Posted by Haakon Langaas Lageng on 12 Apr, 2011 07:54 PM
Which one? Published date or data field? I dont care about the last one, but the first one is bugging me. Need to migrate some data from old web site, but I dont want everything to get todays date.
Support Staff 9 Posted by Steve Smith on 12 Apr, 2011 08:16 PM
Ah, I didn't see there were two questions appended to this thread. The first issue is because in your date.inc you use item.created_at. I've changed this to be {{ date | date: '%B %-d, %Y' }} to use whatever date you passed in.
10 Posted by Haakon Langaas Lageng on 12 Apr, 2011 08:19 PM
Thanks a lot, a miss there from my side.
The finally, what about the speed issue? It is really, really bugging me
that it takes 30 seconds to load our page from Europe.
Haakon
2011/4/12 Steve Smith <
***@tenderapp.com>
Support Staff 11 Posted by Steve Smith on 12 Apr, 2011 08:25 PM
We're not seeing any sign of slowness from our end from Europe, we have several customers in Europe and Australia with no reported issues. I also tested from http://www.websitepulse.com/help/testtools.website-test.html from Germany and Australia, and all requests to your site came back in a very reasonable time.
Jonathan Hoyt closed this discussion on 07 Oct, 2011 01:44 AM.