Support Forum

  • Page:
  • 1

Show introtext when JBFAQ is closed

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Hello. I'd like to make the JBFAQ module show the introtext of my articles when the status is "closed", than show the complete article when "opened", so the reader can get an idea of what each item is about, and I can provide more extensive information. Thank for your help!

It's a very nice module, I already made some overrides on it very easilly, Great job!
  • carlo15's Avatar
  • carlo15
  • Free Extensions
  • 5 posts
  • Karma: 0
The administrator has disabled public write access.
Hi Carlo,

You would need to hack the module to do this. Its certainly not impossible but not something we can help you with at the moment.

Let us know how you get on.

Thanks Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Ok thank you. Any suggestion about the direction to take you can give me?
  • carlo15's Avatar
  • carlo15
  • Free Extensions
  • 5 posts
  • Karma: 0
The administrator has disabled public write access.
Hey Carlo,

You need to look at lines 20 to 25 of
/modules/mod_jbfaq/tmpl/default.php

<div class="faqtogglerdiv<?php echo $id ?>">
<a class="faqtoggler" href="#nogo"><?php echo $item->text; ?></a>
</div>
<div class="answer<?php echo $id ?>"><?php echo $item->introtext; ?>
<?php if ($readmore == "yes") : ?>
<a class="readon" href="<?php echo $item->link; ?>"><?php echo $readmore_text ?></a>

$item->text gives you the title
$item->introtext gives you intro text
$item->fulltext gives you the entire article.

Good luck.

Jason.
  • Jason D's Avatar
  • Jason D
  • 6 Month Developer
  • 2957 posts
  • 12 Thanks
  • Karma: 75
The administrator has disabled public write access.
Thank you Jason, I'll work on it. As soon as I'll find a solution I'm gonna post it. Thanks again, it's always a pleasure writing on the forum!
  • carlo15's Avatar
  • carlo15
  • Free Extensions
  • 5 posts
  • Karma: 0
The administrator has disabled public write access.
Yes, please do keep us informed of any progress you make. Thank you.
  • Seth's Avatar
  • Seth
  • Moderator
  • 8358 posts
  • 225 Thanks
  • Karma: 202
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers