fbpx
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: (SOLVED)MedicX - where is the "before-after" feature in the Demo ??

MedicX - where is the "before-after" feature in the Demo ?? 3 years 1 week ago #10515

  • Marc
  • Marc's Avatar
  • Offline
  • Premium Member
  • Posts: 97
  • Thank you received: 5
  • Karma: 1
Hi there,
Sorry I could not get back to you sooner.
Eventually I have tested the latest version and it now works fine :)
By the way, how can I translate the "before / after" appearing on the images ? (language strings or is it hardcoded ?)
The topic has been locked.

MedicX - where is the "before-after" feature in the Demo ?? 3 years 1 week ago #10539

  • sumesh577
  • sumesh577's Avatar
  • Offline
  • Moderator
  • Posts: 51
  • Thank you received: 15
  • Karma: 5
Well hello

We have added the option in module now so you can enter whatever you want to add text Before label/After label. options will be shown in Advance tab.

PLease follow the given steps:
1. yourtemplate/modules/mod_jdbeforeafter open the mod_jdbeforeafter.xml added the below code at the line no 44 (screenShot www.screencast.com/t/reuB18mM4I)
           <field
               name="beforeText"
               type="text"
               label="MOD_JDBEFOREAFTER_OPTIONS_BEFORE_TEXT_LABEL"
               description="MOD_JDBEFOREAFTER_OPTIONS_BEFORE_TEXT_DESC"
               default="Before"
            />
            <field
               name="afterText"
               type="text"
               label="MOD_JDBEFOREAFTER_OPTIONS_AFTER_TEXT_LABEL"
               description="MOD_JDBEFOREAFTER_OPTIONS_AFTER_TEXT_DESC"
               default="After"
            />

2 . yourtemplate/modules/mod_jdbeforeafter/tmpl open the default.php added the below code at the line no 98 (screenShot www.screencast.com/t/hlhgqV6CWjtG)
            before_label: '<?php echo $params->get('beforeText',''); ?>', // Set a custom before label
            after_label: '<?php echo  $params->get('afterText',''); ?>' // Set a custom after label       

Thanks
Thank You,
If you like our support and products, tweet us at joomdev and let the world know about it.
The topic has been locked.

MedicX - where is the "before-after" feature in the Demo ?? 3 years 1 week ago #10546

  • Marc
  • Marc's Avatar
  • Offline
  • Premium Member
  • Posts: 97
  • Thank you received: 5
  • Karma: 1
Thank you sooo much Sumesh.
That was quick :)

This is good enough as it is (namely to add a parameter, bc it is easy to customize , not only for translation but also for tor having another word like "2018" versus "2019").

But actually, generally speaking, it would be even better if the two words were "language strings" because then you only have to publish 1 Module for all languages... and the language strings take care of the translation). As it is now, you would have to publish one module for each language, even if the images are the same (which would generally be the case).

Txs again for you good care ane excellent follow-up
The topic has been locked.
The following user(s) said Thank You: admin

MedicX - where is the "before-after" feature in the Demo ?? 2 years 8 months ago #14500

  • Lalit Kumar
  • Lalit Kumar's Avatar
  • Offline
  • Moderator
  • Posts: 781
  • Thank you received: 101
  • Karma: 27
Your welcome, also good to hear that you are happy with the support.
Let us know if you have any other queries we'll be happy to help!
Case closed.

Thanks,
Lalit
Thank You,
If you like our support and products, tweet us at JoomDev and let the world know about it.
The topic has been locked.
  • Page:
  • 1
  • 2
Moderators: chandandeep
Time to create page: 0.373 seconds
Cron Job Starts