-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] adds HighlightAuthorViewHelper to highlight an Author ()by … #30
[FEATURE] adds HighlightAuthorViewHelper to highlight an Author ()by … #30
Conversation
…wrapping html) that has been selected in the Filter
one question to karliwalti: beside of the viewhelper, all templates still have to be changed? |
@kfumy yes, as mentioned citestyles need to still be updated, but I wanted to wait until other merge requests are in that might cause conflict. Since they are now in, I will add updates in coming days. @einpraegsam thanks for picking up the formatting conflicts. Happy to resolve this. I tried to maintain style of previous code and will pay extra attention to https://www.php-fig.org/psr/psr-12/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is a mismatch between flexform definition and language definition:
flexform: flexform.pi1.template.highlightAuthors
db.localllang_db.xlf: flexform.pi1.filter.highlightAuthors
template versus filter ;-)
Thank you for picking this up. I am facing the current challenge that citestyle9 is not working on my testenv from branch develop. Is this just mine or a common issue? |
no, citestyle9 is broken for me too (in the FE): (1/1) TYPO3Fluid\Fluid\Core\ViewHelper\Exception Undeclared arguments passed to ViewHelper In2code\Publications\ViewHelpers\Format\MonthNameFromNumberViewHelper: suffix. Valid arguments are: month, limit |
did not find the error yet in the citestyle. |
on line 208 in citestyle9.html there is a suffix=" " declaration. That causes the error. |
ah, it is because the pull request #38, which changes the responsibel viewhelper ist not integrated. |
I removed this now with a comment to add it back when available. |
it works now. in FE there is a strange whiteroom between year and page |
put all on one line to avoid whitespace rendering after year
I noticed a similar thing already with the author list rendering. I do not have a good explanation for it, but the cause is following: The only fix I have for this is to put all on one line without break. Not sure if there is a better way with Fluid. @kfumy could you check whether this fixes the issue for you with citestyle9? |
adds HighlightAuthorViewHelper to highlight an Author.
custom html is wrapped around author name
Example in a citestyle doc:
TODO: (done, but will be pushed later when #27 and #28 are merged to prevent conflicts)