load page with template id in url?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
martinneil
Forum Members
Forum Members
Posts: 15
Joined: Thu Mar 12, 2009 6:02 pm

load page with template id in url?

Post by martinneil »

Hi guys

Is it possible to load a page with a template d in the url so the page forces that template to be shown?

I'm using the CGCalendar on my page. Couldn't get it to scroll through the months independantly without the whole page reloading and losing content, so I built a little iframe with it's own bare template.

It's included on my index page, something like 200px by 200px, and allows the calendar to be scrolled stand alone. I've set the months to scroll with the _self target, and the highlighted dates with the _parent target, so the user is taken to the blank page with event dates.

This is where the problem is - because I've set up that basic bare calendar iframe template, this is what the parent is showing as when the user clicks a date. I'm thinking this could be resolved if I could tag onto the end of the date like so

Code: Select all

{if isset($day.events.0)}{foreach from=$day.events item=event}
<a href="{$event.url}" target="_parent" class="hintanchor" onMouseover="showhint('{$event.event_title}', this, event, '150px')">{$key}</a>
{/foreach}
{else}{$key}{/if}
I could have "{$event.url}forcetemplate-code-here", like "{$event.url}?templateid?=21" or something?

Would any of this work? Would I need a UDT or javascript to do so?

Please help, I've come so far with this all day and all tonight, with a great tooltip hovering the dates (still to complete). I feel This is the last stretch.

see the index page here: http://alturl.com/bvve

(please dont post any direct links to the site)
martinneil
Forum Members
Forum Members
Posts: 15
Joined: Thu Mar 12, 2009 6:02 pm

Re: load page with template id in url?

Post by martinneil »

here is an example of the page when clicked on an event. http://alturl.com/6wkf

i need this page to be in a different template...
Post Reply

Return to “Modules/Add-Ons”