Page 1 of 1

SEO and alt tag

Posted: 28 Sep 2009, 22:36
by hefestus
Hi Jan,

First thanx for the great gallery system, and brilliant documentation. Really much appreciate your afford, and I hate to tell you this:

Unfortunately I found one huge drawback, for my use.
I have celebrity site with lots of images. Alt tag is created from title field. On the other hand title field is created from file name, which can not contain spaces (???). e.g.

Adding image (no space) apple-green.jpg will result in alt"apple-green" which is useless for SEO.
Manually editing 200+ images daily is out of the question. So i prepare my images (bulk renamer) spaces with hyphen (-) and I have to write little script which will replace (-) with 'space" in title field in jos_phocagallery table.

You put so many features (1 - 2 many) and neglect such a vital feature?
You cold easily solve the space problem with rawurlencode and some string manipulation for the spaces in file namase, or at least in tite field. As you strip extension from the filename, you could strip (-_.) ect that ppl. use to connect words in file names.

Error handling is quite poor. Sporting a space in long file-name is not so easy sometimes. When Phoca gallery script find such occurrences, just returns to control panel (back end) and do nothing.


regrads
Hef

Re: SEO and alt tag

Posted: 01 Oct 2009, 22:45
by Jan
Hi, sorry I don't understand, the title tag is created from Title not from filename?

Re: SEO and alt tag

Posted: 02 Oct 2009, 06:55
by hefestus
Hi Jan

The title field in jos_phocagallery is populated by file name stripped for extension in Multiply add method.
And this field is used for alt tag. Since there is no spaces in file names alt tag is unusable. And this method questionable since you have to go back and open every single image again to alter the title!

To make it usable as alt tag or image title, after this batch add, you have to go to every single image as alter the title.

That's OK if you have few galleries with 10-20images an lot of time. But if you want to publish 20+ galleries with 20-30 images daily than ... clicking on every image?

All Word press galleries have batch title edit (which is alt tag too) Select all images and one edit all titles. News publishing have special demand for this.

Gallery that cover one event e.g Salma Hayek arriving at Oscars ... Riots in Kabul....

That event is category, and all images usually have category title, which is alt tag too. No need for dif, image title in same category (event) e.g Salma turn right, Salma turn left ... :) it's enough that every image in this gallery have title (alt) Salma Hayek arriving at Oscars, and it's good for SEO 2.

Hope this is clear now.
This is not criticism just to let you know that modern publishing tools need fast tools. WP have this all, Joomla is very old fashion, and quite unsuitable for fast publishing (blogging). But my clients insist on Joomla.

I made a small hack and this is solved. but now my embedded galleries in articles are not visitable in feeds!

And show:
{phocagallery view=category|categoryid=20|limitstart=1|limitcount=3}

instead of 3 thumb images. Actually any call to plug ins in curly brackets are just rendered as some text in {}

Re: SEO and alt tag

Posted: 06 Oct 2009, 13:05
by Jan
Hi, thank you for your ideas. But I still don't understand what is the goal to rename all the alts on the site as category title? In fact this doesn't make any sense, it is better to rename it to "" (nothing), I think.

Yes, the alt are titles and if you will use multiple add, the titles are the same as filenames. But I think filename as title makes more sense as to name all alts the same (e.g. with category name). It is great if you can e.g. in wordpress gallery use batch title edit, but does it make any sense. It is like you will display e.g. 20 the same images. Because there is a possibility to use batch image adding, you will paste 20 images on the site which all will be the same? These are my ideas. But I accept your view on this problem, so for you maybe some system solution will be better. E.g. you will customize the title creating, so the titles will be created as you need. Maybe this will be bette solution as using some batch title edit, as then you will need to edit it anymore :idea:

Jan