Questions tagged [archives]
The archives tag has no usage guidance.
23
questions
1
vote
1
answer
75
views
My month/year archive template code no longer works in 3.2 [closed]
My blog has a date archive page that uses a variation of this code. Here's the code that I've been using:
{% set allEntries = craft.entries.section('entries').type(['posts','reviews']).limit(null)....
1
vote
1
answer
22
views
Displaying a month name in an archive
I'm trying to figure out how I can print the month name i.e April in the below. Currently, it's printing the last three months that contain entries.
{% set year = craft.request.segment(4) %}
{% set ...
1
vote
1
answer
50
views
Archive page date logic stopped working
Edit: This is confirmed as a bug in Craft, that will be fixed in its next release. If you're running into this, please see the temporary fix over at GitHub: https://github.com/craftcms/cms/issues/3772
...
1
vote
1
answer
101
views
Event archives with custom date field
I'm trying to set up a past events archive. Followed the guide provided by PT: craft cms guide to set up an archive.
The only difference is that I use a custom date field (dateAndTime) and not ...
1
vote
0
answers
70
views
Archiving by month and year - timezone could not be found error
Following the answer in this thread -Linking and showing archive by month by P&T has worked fine for previous sites but now I'm getting the following error. I've checked I have a Time zone ...
2
votes
1
answer
34
views
Change order within grouped archive
I have an archive of exhibitions with entries grouped by year. The order of the groups should be descending, the order of the entries within the group should be ascending.
For example: The order of ...
2
votes
0
answers
64
views
Creating an archive with linked asset
I'm trying to create an archive of PDF newsletters in Craft 3. I want to create a list of entries sorted by month and year. Then each year would appear separately. Finally, I want each asset within ...
1
vote
1
answer
652
views
SEO titles/descriptions for tags and archive pages
I have a blog setup with a Categories, Archive and Tags.
In my _layout template I've been using the following to pull in SEO titles from fields, or Page/Category Titles is that's not been defined.
{%...
1
vote
1
answer
41
views
Archive Not Returning Correct Date Variable
I'm using the technique for creating an archive that's in the Craft docs: https://craftcms.com/support/entry-archive
I'm archiving by day, so my code looks like this:
{% set agendaEntries = craft....
1
vote
1
answer
171
views
How do I pass a URL segment to a search parameter?
I'm trying to set up an archive page by passing dates in the URL to the entries search parameter to show events from a specific month. The eventstart is a custom date field. If I enter numbers i.e. ...
3
votes
1
answer
972
views
Filter entries by month
I'm trying to make a archive page for a blog sorted by months. I tried to consult the solution from Linking and showing archive by month, but I can't get it to work like it should. The code I have now ...
2
votes
1
answer
50
views
Is it possible to use same template for index and archive template?
I'm new to Craft from ExpressionEngine and wondered how people handle Month/Year archive pages. I have figured out how to get the archives to display but the code seems overly complex. I wondered if ...
1
vote
0
answers
135
views
How to create an archive dropdown menu
How do I create a dropdown menu that filters all the posts into month and year, and then link to a template that has the entries of that month and year displayed?
This is as far as I've gotten:
<...
0
votes
2
answers
43
views
I can't get Tags and Archive pages to appear
Necessary disclaimer. Web design dilettante, so I ll probably have trouble following your answers if they get too technical.
I am building a blog. I am am trying to use tags bellow posts and when ...
1
vote
1
answer
161
views
Date Archives: Last 6 months
From the Creating an Archive Page for Entries article in the Craft docs. How could I limit it so that it grouped by month but limited things to 6 months?:
{% set allEntries = craft.entries.section('...
1
vote
1
answer
100
views
Changing the order of an 'archive' page
I'm creating a monthly archive page (for a specified year) for a section.
Standard code to output the months and entries as follows:
{% set entriesInYear = craft.entries.section('blog').limit(null)....
7
votes
3
answers
1k
views
Linking and showing archive by month
With a bit of looking around i've got the following code on my News landing page:
{% set allEntries = craft.entries.section('chambersNews').limit(null) %}
<ul id="archive">
{% for year, ...
2
votes
2
answers
213
views
Date conversion returning December for every single digit month representation
I can't figure out what I'm doing wrong, but trying to convert single digit months to their name representations (ex. '4' to 'April' in English) but am just getting December printed out for every ...
2
votes
1
answer
421
views
Archive page - only show posts from certain month
Using this handy thing (http://buildwithcraft.com/help/entry-archive) to create an archive page, but not quite doing what I need it to do.
Set up as a route to call /year/month, replacing year with ...
5
votes
1
answer
905
views
Creating an archive page with full year and month list
Trying to create an archive page for each of my blog types within Craft. The page sorts by year and by month. (year and month are coming from my routes in this code.)
By using the following, I can ...
4
votes
1
answer
170
views
Showing the month on an archive page
I've set up an archive page as described in the docs... so my archive page url looks something like this http://mysite.dev/news/2014/09.
How do I then make the title display Archive for September ...
11
votes
2
answers
1k
views
How can I create a visually weighted tag cloud?
I kind of want a tag archive page where it doesn't just list all the tags and links to entries based on that tag, but where the sizes of the actual tag link vary based on frequency of use.
Any idea ...
5
votes
2
answers
1k
views
Creating a date filtered archive template
I'm trying to create an archive list template that lists entries from a News or Blog Channel based on year/month/day combinations.
However, I get no entries and can't see where I'm going wrong...I'm ...