What’s the best way to extend the attribute href programmatically in Typo3?
The links were setted by RTE like
<a class="download" target="_blank" href="fileadmin/ablage/test_material/pdf_1.pdf">
and shall be changed to
<a class="download" target="_blank" href="fileadmin/ablage/test_material/pdf_1.pdf#zoom=100">
Untested code:
you could try to add the section to the parameter
or you can try to use “section”
BUT the most important issue is the “if” statement. I assume that the first parameter is the name of the file (i do not remember). The last 3 charachters should be “pdf”. If you use DAM you need to retrieve the UID and get the filetype from there.
Just a rought guess, this could give you a hint, which params do you have:
Just a side note: this would be affect all RTE fields!