[TYPO3-content-rendering] Adding non-standard parameters to anchor tags

Michael Stucki michael at typo3.org
Thu Oct 20 08:36:38 CEST 2005


Kai Laborenz wrote:

> Michael Stucki schrieb:
>> Is it allowed to add parameters (just like "href" for example) to an
>> anchor tag which are not standard?
> 
> No, its not ok (if you ask the validator) - maybe with your own doctype
> as sascha suggested.
> 
> Maybe you can use something existing like "rel"?

I don't think that "rel" should be used for this. Here is my idea:

I have a plugin that lists files which refer to a protected directory. The
files need to be downloaded using a plugin which checks user permission,
etc.

What I want to do is to have these files indexed by indexed_search. If I add
the local path of the file as an additional parameter to the download link,
then I can force indexed_search to index the local file but reference to
the download link instead. This is already working pretty well, there's
just the validation problem.

Another idea would be to wrap the <a></a> tag with a custom element. Could I
use custom parameters in that case?

Since the plugin could be inserted on any existing page, changing the
doctype is not a proper solution.

- michael
-- 
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/



More information about the TYPO3-project-content-rendering mailing list