mediawiki-extensions / mw-calendar

Automatically exported from code.google.com/p/mw-calendar
0 stars 2 forks source link

Links on events #47

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Is it possible for us to have links within the event names?

Original issue reported on code.google.com by Neil.McF...@gmail.com on 10 Feb 2009 at 9:09

GoogleCodeExporter commented 8 years ago
Personally, I would love to see it implemented as two separate parameters for 
the 
calendar, the first being {noeventlink='True'} to prevent events from linking 
back to 
their articles, and the second {dayhaslink='True'} which would cause clicking 
on the 
day link to the article containing the events.

Original comment by Neil.McF...@gmail.com on 10 Feb 2009 at 9:19

GoogleCodeExporter commented 8 years ago
Should have read the help file a little more in depth...

Can I correct myself and instead request a parameter "internaleventlinks"?  It 
would 
function similar to "disablelinks" except it would also transclude any links 
within 
the event itself.  

For example, an event talking about a picnic could then link to the article 
about the 
picnic.

Original comment by Neil.McF...@gmail.com on 10 Feb 2009 at 10:01

GoogleCodeExporter commented 8 years ago
I'm not really sure what you mean Neil. The event link points to the page that 
would 
have the article... unless you mean to have an event point to a completely 
different 
non-calendar page... if thats the case, the calendar supports redirects. You 
would 
click add event and then use #REDIRECT[[Picnic]].

So, anyone who clicks the link would get redirected to the main picnic page... 
is 
that what you mean?

Thanks
Eric

Original comment by kenyu73 on 10 Feb 2009 at 11:43

GoogleCodeExporter commented 8 years ago
...as a follow up, be aware that the event name/link would display what was on 
line 
one on the redirected target page.

Original comment by kenyu73 on 10 Feb 2009 at 11:44

GoogleCodeExporter commented 8 years ago
...sorry...as a follow up to my follow up (=

If you have the preference 'defaultedit', the auto-direct obviously would 
redirect 
you to the target page. Having 'defaultedit' set will bring you right to the 
event 
page that has the redirect code itself

Original comment by kenyu73 on 10 Feb 2009 at 11:50

GoogleCodeExporter commented 8 years ago
Ah, I'll try the redirect tomorrow when I get into work.  Thanks Kenyu.

Original comment by Neil.McF...@gmail.com on 11 Feb 2009 at 12:00

GoogleCodeExporter commented 8 years ago
Howdy Kenyu.

The problem with the redirect is, as you said, it shows the part of the content 
from 
the redirected page.  

In my case, I'd like to put the releases of internal publications on the 
calendar 
("Accounting bulletin 6" for example).  The accounting bulletins, however, use 
templates and such on them for formatting and categorization.  When I use 
redirect, I 
get the first couple of lines from the template itself showing up on the 
calendar.

Original comment by Neil.McF...@gmail.com on 11 Feb 2009 at 1:51

GoogleCodeExporter commented 8 years ago
try doing this...

'add event'
Accounting bulletin 6

{{:Accounting bulletin 6}} <-- this sucks the remote page into the calendar page

Original comment by kenyu73 on 11 Feb 2009 at 1:57

GoogleCodeExporter commented 8 years ago
That works better, only (mild) issue is that the link on the calendar itself 
displays 
as {{:Accounting bulletin 6}}.  Any way we can change what it looks like?

Original comment by Neil.McF...@gmail.com on 11 Feb 2009 at 8:30

GoogleCodeExporter commented 8 years ago
You'd setup the page like this

Accounting bulletin 6 <-- this is the event on line 1
{{:Accounting bulletin 6}} <-- body

Original comment by kenyu73 on 11 Feb 2009 at 10:35

GoogleCodeExporter commented 8 years ago

Original comment by kenyu73 on 22 Feb 2009 at 9:52