|
Quotes |
" ... I want to tell you that your thyme product is functional and valuable beyond
words. I cannot imagine why any portal would be without it. It is the cornerstone of our new project ..."
" ... Thanks for such a complete project, its making my job much easier. ..."
" ... I have now deployed 4 different calendars and our users love them ... "
" ... Easy to install and use and a great look/design. ..."
" ... This has to be the easiest to use program I think I've had to deal with at all this year. ..."
|
|
| View previous topic :: View next topic |
| Author |
Message |
steve
Joined: 15 May 2006 Posts: 2
|
Posted: Mon May 15, 2006 12:16 pm Post subject: Event list module with wrapped calendar |
|
|
Is there a way I can make a Joomla Studio event list module link to the event view inside a wrapped calendar? I would like to have custom event lists populated throughout the site that all link to the correct event view in the wrapped calendar.
Thanks
Last edited by steve on Tue May 16, 2006 3:35 pm; edited 2 times in total |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5275
|
Posted: Mon May 15, 2006 5:34 pm Post subject: |
|
|
Hi steve,
I've been thinking on this for a while and I think I've come up with a solution:
1) Create a file in Thyme's folder called index2.php with the following contents:
| Code: |
<?php
if(preg_match("/\&eid=(.+?)\&inst=(.+?)(\&|$)/", $_SERVER['HTTP_REFERER'], $matches)) {
$_REQUEST['event_action'] = 'View';
$_REQUEST['eid'] = $matches[1];
$_REQUEST['instance'] = $matches[2];
}
include("./index.php");
?> |
2) Change your wrapper URL to point to index2.php.
3) Get the URL of your wrapper by copying the link location of the menu item. Let's say it's: http://www.foo.com/index.php?option=com_wrapper&Itemid=28
4) In the event template of your event list in Joomla Studio, use this as the event title:
| Code: |
| <a href='http://www.foo.com/index.php?option=com_wrapper&Itemid=28&eid=$id&inst=$inst'>$title</a> |
Clicking on that should take you to the wrapper page with eid and inst set. index2.php should will look at those and see that you want to view an event. Let me know if you have any trouble. |
|
| Back to top |
|
 |
steve
Joined: 15 May 2006 Posts: 2
|
Posted: Tue May 16, 2006 3:24 pm Post subject: You Rock! |
|
|
| That worked like a charm! You have made my day ian, if only all developers were like you. Thank you very much. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|