5 users online. Create an account or sign in to join them.Users

Search

I have a url like this http://test.tamarawobben.nl/2005-02 which should be displaying all articles of febr. 2005

In my ds I have this date filter : earlier then {$value}.

But I still get a 404 page not found error message.

What do i do wrong ?

I found a partillay answer when I make a filter of {2005-02} I see all the articles of febr. 2005. Now find out how I can use the numbers of the url.

nobody who can tell me how I can achive to display articles of a month in the url ?

Your post was only made a little over 3 hours ago. I suggest you give it a little longer before bumping. :)

I apolize

@roelof, can you post a screenshot for us?

Omit the earlier than from your filter.

Here is a screenshot of my last attempt

Ok, so you need to clarify what it is that you're doing, originally you had one $value which would work with just using {$value} in the date field filter of your datasource.

This would allow you to filter with values such as:

http://test.tamarawobben.nl/2005
http://test.tamarawobben.nl/2005-02
http://test.tamarawobben.nl/2005-02-10

as examples.

To do what you show in your screenshot, firstly you need to remove the -$month-$day part of your 'Required URL Parameter' as you can only specify one parameter here.

Oke,

I would use the second one. So 2005-02 will display all articles of febr. 2005. As I understand you right. I need to use the ($value) and remove the reguired url paramater so it will be empty.

Edit 1 : When I do this I get a 404 error message when entering http://test.tamarawobben.nl/article-details/2005-03

You can have a required URL parameter of $value if you're only going to use one parameter to do your date filtering.

I've tested this and it does work as required:

  1. Page parameter of value.
  2. Filter the date filed by {$value} in the datasource.
  3. Set the required parameter to $value.

Thanks but maybe a stupid question but how do I set the page-parameter to value on the DS screen?

No, that's what you call the parameter when you set up your page, in the 'URL Parameters' input field.

Sorry should have been more clear there.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.2 or above
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.0 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details