Not sure if we're doing something wrong or if this just isn't possible.
We're disaplaying a number of images as "icons" on our main page in front of the various topics we list there - which are also defined as categories.
Before we started using categories those links just lead to individual pages like "Windows", "Mac", "Printing", etc. We setup the image pages to redirect to /Windows , /Mac, and /Printing and that worked fine.
Now we're trying to have the image pages redirect to /Category:Windows, /Category:Mac, /Category:Printing - but the redirect does not function. When we click on the Windows image we end up at /Image:Windows.Png with Category:Windows displayed at the top of the page.
Is it simply not possible to have an image redirect to a Category or am I doing something wrong?
Here is the redirect I'm trying to use:
#REDIRECT [[Category:Windows]]
Thanks for your time!
On 4/28/05, Mike Stanley utmikestanley@gmail.com wrote:
Here is the redirect I'm trying to use:
#REDIRECT [[Category:Windows]]
BTW, I mistyped that, we're actually using:
#REDIRECT [[:Category:Windows]]
On 28 Apr 2005, at 08:34, Mike Stanley wrote:
On 4/28/05, Mike Stanley utmikestanley@gmail.com wrote:
Here is the redirect I'm trying to use:
#REDIRECT [[Category:Windows]]
BTW, I mistyped that, we're actually using:
#REDIRECT [[:Category:Windows]]
There was a thread on this a while ago. I was trying to do the same thing.
Basically, you Can't Do That(TM).
It would be nice, though. Often I want to have something more than a dead-end link, but don't have time to go write another page. Redirecting to a Category would fill that need.
:::: Growth for the sake of growth is the ideology of the cancer cell. -- Edward Abbey :::: Jan Steinman, http://www.Bytesmiths.com/Gallery
On 4/28/05, Jan Steinman Jan@bytesmiths.com wrote:
Basically, you Can't Do That(TM).
Ah well. Sucks, but just a minor pain in an otherwise awesome product - especially for the price.
Now I have to find an alternative way to handle this. One of my guys is really keen on the idea of keeping the "icons" - but right now his solution is to have them link to a page that itself contains a link to the Category:Windows etc page. His thinking is that people will train themselves to click on the text links, not the icons, but that the icons are visibly attractive enough to keep on the page even if they don't really do what we want them to do.
My preferences were, in order:
Make image to Category redirecting work, if possible (now I know its not)
Make the images unclickable / nonfunctionaly if possible
Get rid of the images
Guess we'll see how it goes.
Thanks for your help.
On Apr 28, 2005, at 12:33pm, Mike Stanley wrote:
Make the images unclickable / nonfunctionaly if possible
The easiest way to make them not clickable links, is to not actually store them in Images: but simply on disk in a directory your web server can access and then just plug the raw url to the image in in place of the [[Image:xxxx]] tags. Which sounds like a reasonable solution in this case since you probably don't really want users of your site replacing them with "updated" versions.
John Blumel
On 4/28/05, Mike Stanley utmikestanley@gmail.com wrote:
On 4/28/05, Jan Steinman Jan@bytesmiths.com wrote: My preferences were, in order:
Make image to Category redirecting work, if possible (now I know its not)
I think that it's not a matter of not redirecting to categories, but that since the Image page has enough other stuff that they made it not redirect.
Make the images unclickable / nonfunctionaly if possible
You could do this by writing an extension that takes an image link as a parameter, and it outputs the image without link. Then you could use syntax like:
[[:Category:Windows|<image>[[Image:Windows.png|42px|The windows logo]]</image>]]
If you need help with this, feel free to ask.
Get rid of the images
Naw. This is pretty much a minor issue.
-- Jamie ------------------------------------------------------------------- http://endeavour.zapto.org/astro73/ Thank you to JosephM for inviting me to Gmail! Have lots of invites. Gmail now has 2GB.
On 28 Apr 2005, at 12:41, Jamie Bliss wrote:
On 4/28/05, Mike Stanley utmikestanley@gmail.com wrote:
On 4/28/05, Jan Steinman Jan@bytesmiths.com wrote: My preferences were, in order:
Make image to Category redirecting work, if possible (now I know its not)
I think that it's not a matter of not redirecting to categories...
Do you know a way of making this work?
In 1.4.0 (at least) redirecting to a Category only shows the editable page text, NOT the actual categorized pages or subcategories.
:::: Given an infinite source of energy, population growth still produces an inescapable problem. The problem of the acquisition of energy is replaced by the problem of its dissipation. -- Garrett Hardin :::: Jan Steinman http://www.Bytesmiths.com/Van
On 4/28/05, Jan Steinman Jan@bytesmiths.com wrote:
#REDIRECT [[:Category:Windows]]
There was a thread on this a while ago. I was trying to do the same thing.
Basically, you Can't Do That(TM).
If you have access to the Apache config (assuming you're using Apache), you can define an interwiki link like:
c => http://yourhost/category/$1
and setup Apache to redirect:
RedirectMatch permanent "^/category/(.*)" http://yourserver/wiki/Category:$1
so you can do
#REDIRECT [c:MiCategory]
I have not tested this with categories, but I have used the exact same setup to do #REDIRECT's to external targets, so it *should* work...
Of course, it is not exactly the same that a true redirect to a Category (backlinks to edit the redirection page won't exist, for example), but as a temporary measure (until MediaWiki implements category redirects) it can be useful.
Mike Stanley wrote:
We're disaplaying a number of images as "icons" on our main page in front of the various topics we list there - which are also defined as categories.
Before we started using categories those links just lead to individual pages like "Windows", "Mac", "Printing", etc. We setup the image pages to redirect to /Windows , /Mac, and /Printing and that worked fine.
That's not a great idea IMHO, as it makes it extra difficult to work with the image pages themselves.
Here's a quick hacky extension I've used on my own personal site: http://leuksman.com/extensions/ImageLink.phps
Is it simply not possible to have an image redirect to a Category or am I doing something wrong?
There's a bug with handling redirects to image and category pages.
-- brion vibber (brion @ pobox.com)
mediawiki-l@lists.wikimedia.org