-
Notifications
You must be signed in to change notification settings - Fork 12
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
cHash Typo3 8.7 #75
Comments
solution approach: config: <part needle="tx_news_pi1[action]" for="detail">
<parameter>cHash</parameter>
</part> for all action / controller <part needle="tx_myext[action]">
<parameter>cHash</parameter>
</part> Translate.php if(!empty($ppart['needle']) && !empty($ppart['for'])){
if(array_key_exists((string)$ppart['needle'],$uri->originalparams) && $uri->originalparams[(string)$ppart['needle']] == (string)$ppart['for']){
unset($uri->params[(string)$ppart->parameter]);
}
}elseif(!empty($ppart['needle'])){
if(array_key_exists((string)$ppart['needle'],$uri->originalparams)){
unset($uri->params[(string)$ppart->parameter]);
}
}else{
unset($uri->params[(string)$ppart->parameter]);
} |
Hi,
you wouldn't need this if you'd map all URL parameters. Well, I can
undestand that with some extensions this can be impossible.
Anyway, there's always option of userFunc on every parameter, why not go
with that?
It'd look like
function myChashHandler($lConf, $cHashValue, $originalParams) {
if (!empty($originalParams[...])) {
return $cHashValue;
}
return ''; // or maybe null, I'm not sure
}
Jan
Dne 15.10.2017 v 2:53 prdt3e napsal(a):
… solution approach:
config:
<part needle="tx_news_pi1[action]" for="detail">
<parameter>cHash</parameter>
</part>
Translate.php
544
|if(!empty($ppart['needle']) && !empty($ppart['for'])){
if(array_key_exists((string)$ppart['needle'],$uri->originalparams) &&
$uri->originalparams[(string)$ppart['needle']] == $ppart['for']){
unset($uri->params[(string)$ppart->parameter]); }
}elseif(!empty($ppart['needle'])){
if(array_key_exists((string)$ppart['needle'],$uri->originalparams)){
unset($uri->params[(string)$ppart->parameter]); } }else{
unset($uri->params[(string)$ppart->parameter]); }|
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#75 (comment)>, or
mute the thread
<https://github.com/notifications/unsubscribe-auth/AGfXg1lRLNHLE2pxByBghNGgDOchcajWks5ssVd9gaJpZM4P5iPb>.
|
Hi, Yes, I know the function userfunc.
Return back to the problem. thanks |
Well, people would need to know what's the problem in order to use the new attributes. And having to iterate just the attributes that may be excessive is not the way to go I think. |
Very good idea. |
We need a condition in the Configuration-File for cHash.
In Typo3 8.7 need tx_indexedsearch_pi2 the chash. Powermail too.
Example:
If is setting "for" you can check the combination for chash and ext-key.
Setting pageNotFoundOnCHashError is not nice.
The text was updated successfully, but these errors were encountered: