Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

about event category description

10 years 10 months ago
  • florent's Avatar
    Topic Author
  • florent
  • Offline
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0
Licenses:
JomSocial Active Socialize Expired

on admin panel, there's a way to insert a description for each category -> some text, url or image:D.

But how to display this description on events list or in details event?

thanks

Florent

10 years 10 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

Hi Florent,

Well, actually that wont be showing in frontend, that category description only for admin references/note not for public.

thank you

10 years 10 months ago
  • florent's Avatar
    Topic Author
  • florent
  • Offline
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0
Licenses:
JomSocial Active Socialize Expired

hum... are you sure ?

on List categories module (file /modules/events/categories.php), using <?php echo JText::_( $this->escape($row->description) ); ?>, i m able to display the description.

but trying to do the same thing on file "events.viewevent.php", nothing works:

  • <?php echo JText::_( $this->escape($row->description) ); ?>
  • <?php echo $this->escape($category->description) ; ?>
  • <?php echo $event->getDescription(); ?>

Any idea to solve my pb ?
It would be great; with <img>, <iframe>... we could imagine a lot

Thanks
florent

: images inserted with <img> & description

Attachments:
10 years 10 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

Hi,

You need create new function for this inside this file components/com_community/tables/event.php

public function getCategoryDesc() {
        $category = JTable::getInstance('EventCategory', 'CTable');
        $category->load($this->catid);

        return $category->description;
    }

and print :
<?php echo $event->getCategoryDesc(); ?>

inside events.viewevent.php

i hope it will help.

thank you

10 years 10 months ago
  • florent's Avatar
    Topic Author
  • florent
  • Offline
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0
Licenses:
JomSocial Active Socialize Expired

that's great !
Hope this function to be include on next jomsocial update !
Hope it will help other jomsocial players :D

thanks

10 years 10 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

You're welcome :)

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW