Mathjax plugin in category view

More
6 years 10 months ago #71976 by Solinfo
Hello

Mathjax plugin don't work in category view even if I enable trigger plugin in setting.

Try this page : www.matholo.ca/cours/mathematiques/secondaire-2

I try same page in category view with blog layout (article of joomla) . It work.

Any idea of the bug?

Thank you.

Normand

Please Log in or Create an account to join the conversation.

More
6 years 10 months ago #71980 by ggppdk
Hello

i do not know how you are loading it
you do not say how you added it in the flexicontent view

are you using a Joomla plugin that adds it ?
if so you can also the author of the plugin

what i can see inside the page is that the mathjax library is loaded twice

once you load version v2.7.1 of mathjax
once you load version v2.7.2 of mathjax


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
6 years 10 months ago - 6 years 10 months ago #72010 by Solinfo
Hi

Thank you for your anwser.

Plugin to add in content I use is : Content - JExtBOX Equation

I will put more info as soon as possible.

Normand
Last edit: 6 years 10 months ago by Solinfo. Reason: add info

Please Log in or Create an account to join the conversation.

More
6 years 6 days ago #75454 by Solinfo
Hi

Sorry for long delay.

I found more information on this "bug". I found another topic in this forum which talk about strip html in category view. That it's, it a workaround for my bug.

It appear that category strip html code to reformat page in right layout. But it also strip { } which are very very important tag for Mathjax to rendering mathematic contain.

Is there a place I can look to enable strip html but without stripping some tag lik { } ?

Thank you

Please Log in or Create an account to join the conversation.

More
6 years 6 days ago #75456 by Solinfo
Bonsoir

Je vais écrire en français si ça ne dérange pas.

Dans le fichier, "components\com_flexicontent\classes\helpers\html.php", dans "static function striptagsandcut( $text, $chars=null, &$uncut_length=0, $options = null)"

il y a :
// Clean Joomla Plugin code
if ( empty($options) )
{
$patterns = array();
$patterns[] = '#\[(.*?)\]#';
$patterns[] = '#{(.*?)}#';
$patterns[] = '#&(.*?);#';

la ligne en gras est celle qui strip le code nécessaire pour que mathjax fonctionne correctement!
Je ne sais pas trop ce qu'il faut faire, autrement que de la mettre en commentaire pour éviter qu'elle enlève mes codes.

J'ai tenté en mettant "strip html" à yes dans les options du template sauf qu'en faisant ca, il ne met plus le layout "category" correctement (le texte n'est plus coupé). Et je ne trouve pas où mettre l'option "keep_jplugins_code" à true. A mon avis, cette option devrait toujours etre "true" non ?

Je peux le forcer à true par défaut mais j'aimerais savoir l'impact que ca aurait sur le reste du site! ;)

Merci

Normand

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.396 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline