Extract on url to page
Permalink
Hi every one,
I bought the Simple Event add-on and I am wondering if it is possible to extract the ID to the particular event page.
Scenario:
I added an event (via Add Event) as a subpage.
This page was entered in to my DB with the cParentID:152.
On the Calendar presentation page I setup a Event list page.
Now I would like this to work in this way:
At my Event list page, show show text that works as a link to the before mentioned subpage, with the cParentID of 152.
Could this be done somehow?
I tried this, but unsuccessful:
I bought the Simple Event add-on and I am wondering if it is possible to extract the ID to the particular event page.
Scenario:
I added an event (via Add Event) as a subpage.
This page was entered in to my DB with the cParentID:152.
On the Calendar presentation page I setup a Event list page.
Now I would like this to work in this way:
At my Event list page, show show text that works as a link to the before mentioned subpage, with the cParentID of 152.
Could this be done somehow?
I tried this, but unsuccessful:
echo '<a href="'.$cParentID. '">' .$title . '</a>';
Hi Chad,
Thanks for the reply, unfortunately it does not do exactly what I wanted.
I created an event: Wine tasting (bID: 159) and (cParentID: 152)
When I am at the Event list page, I would like to show all the events within this Category as defined.
However your submitted code echoes out the danish name for Calendar and when clicked I end up at the same page (Calendar) and not the page intended page (Wine Tasting)....
I put your code here (event_list\view.php)
I would like this to happen:
At Calendar (event_list), I have these entries shown:
Wine Tasting ---> when clicked goes to (bID 159, cParentID 152) Wine Tasting event
Bubbles and chesse ---> when clicked goes to (bID, 160, cParentID 153)
Combining bubbles and Cheese
Hope this helps ;-)
//Carsten
Thanks for the reply, unfortunately it does not do exactly what I wanted.
I created an event: Wine tasting (bID: 159) and (cParentID: 152)
When I am at the Event list page, I would like to show all the events within this Category as defined.
However your submitted code echoes out the danish name for Calendar and when clicked I end up at the same page (Calendar) and not the page intended page (Wine Tasting)....
I put your code here (event_list\view.php)
I would like this to happen:
At Calendar (event_list), I have these entries shown:
Wine Tasting ---> when clicked goes to (bID 159, cParentID 152) Wine Tasting event
Bubbles and chesse ---> when clicked goes to (bID, 160, cParentID 153)
Combining bubbles and Cheese
Hope this helps ;-)
//Carsten
ChadStrat