×
Pleas keep in mind that SPAM will be deleted instantly
Output from 2 different tables on one page ?
- sackbut
- Topic Author
- Offline
Less
More
- Posts: 32
- Thank you received: 5
7 years 9 months ago #3958
by sackbut
Output from 2 different tables on one page ? was created by sackbut
Here is my problem, explained by example:
Table "Committee Meetings". Need to put next meeting on home page. So sort table by Date Column ( unix time) and pick one off the top. Easy
Table "Outside Visits". Need to put next visit on home page, using same method. ??
Is this possible ? Don't need code, just a hint oh how to proceed if it can be done.
Anyone got any ideas ?
Thanks
Table "Committee Meetings". Need to put next meeting on home page. So sort table by Date Column ( unix time) and pick one off the top. Easy
Table "Outside Visits". Need to put next visit on home page, using same method. ??
Is this possible ? Don't need code, just a hint oh how to proceed if it can be done.
Anyone got any ideas ?
Thanks
Please Log in to join the conversation.
- Dirk
- Offline
Less
More
- Posts: 1222
- Thank you received: 225
7 years 8 months ago #3961
by Dirk
This message has an attachment file.
Replied by Dirk on topic Output from 2 different tables on one page ?
You could use a plugin to display single entries manually or better two modules and order by event_date descending.
But the problem is that you want the next dates. So normally you want
to sort from event date_ascending but only the upcoming events.
So maybe you should use a modified mod_joodb.php.
Replace the attached file with /modules/mod_joodb/mod_joodb.php
Two hints:
1:) You can override, modify the module output in your template. But that requires programming!
2:) You can use the joomla load module plugin to display modules in content articles.
btw: you shouldn't use timestamp as event date use mysql date.
But the problem is that you want the next dates. So normally you want
to sort from event date_ascending but only the upcoming events.
So maybe you should use a modified mod_joodb.php.
Replace the attached file with /modules/mod_joodb/mod_joodb.php
Two hints:
1:) You can override, modify the module output in your template. But that requires programming!
2:) You can use the joomla load module plugin to display modules in content articles.
btw: you shouldn't use timestamp as event date use mysql date.
This message has an attachment file.
Please log in or register to see it.
The following user(s) said Thank You: sackbut
Please Log in to join the conversation.
- sackbut
- Topic Author
- Offline
Less
More
- Posts: 32
- Thank you received: 5
7 years 8 months ago #3964
by sackbut
Replied by sackbut on topic Output from 2 different tables on one page ?
OK - thanks for that. I just wrote my own module which will do this. I wasn't aware of {loadmodule} so thanks for that hint - I tried it and it works OK with my little module.
I looked at the controller code you sent and it's interesting - I can modify that for all sorts of things, I'm sure, which I can then incorporate into jooDB. Should be able to do the formatting I have just posted a question about ( formatting numbers ) for example. Time to experiment
Thanks
I looked at the controller code you sent and it's interesting - I can modify that for all sorts of things, I'm sure, which I can then incorporate into jooDB. Should be able to do the formatting I have just posted a question about ( formatting numbers ) for example. Time to experiment
Thanks
Please Log in to join the conversation.
Moderators: Dirk, joest