Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Filtering by Category

Filtering by Category 15 years 10 months ago #3318

  • mbailey
  • mbailey's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 18
  • Thank you received: 0
I am looking to display the categories (and the items within the category) in an article page. My first thought is to use an iframe to display a stripped version the listEvents function. However, I want to display only specific categories, depending on the article (example: An article on \"art\" would display listEvents showing only the events in the \"art\" category). My question is:

a) is there an easier way to display the listEvents function other than using an iframe and a stripped version of listEvents?

b) how can I pass the category variable to dt_register.php? My initial hope was that the pull down menu on the page would add to the url giving me the ability to simply use the correct url for the iframe to display the information within the article, but it looks like the pull down menu passes the variable back to itself rather than posting it in the url.

--
Max.
[url=http://www.myprimer.ca:1vds45it]www.myprimer.ca[/url]

Please Log in or Create an account to join the conversation.

Filtering by Category 15 years 10 months ago #3402

  • sinnary
  • sinnary's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
I\'m looking for the same thing. Have you gotten a response for this?

Please Log in or Create an account to join the conversation.

Filtering by Category 15 years 10 months ago #3404

  • dthadmin
  • dthadmin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 5470
  • Thank you received: 3
Hello. We\'ll incorporate this change for the next release, but you can do it by modifying this file:

/components/com_dtregister/dtregister.php

Around line 2068 find:

mosGetParam($_POST, \'category\',0 );

Replace it with:

$sort = mosGetParam($_REQUEST, \'category\',0 );

Now after saving and loading your changed file, you should be able to generate a url that looks like this:

http://www.yoursite.com/index.php?optio ... ategory=xx

Obviously, put in your own domain name, input the appropriate Itemid, then input the category id number. The category ID can be found in the category management area.

This url will give you a list of events only from the specified category.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.627 seconds