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

TOPIC: Short Description in Calendar pop-up

Short Description in Calendar pop-up 11 years 10 months ago #19684

  • pwpstl
  • pwpstl's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
I'm trying to get the short description message to show in the calendar or calendar pop-up, is there any way to do this?

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

Short Description in Calendar pop-up 11 years 10 months ago #19760

  • pwpstl
  • pwpstl's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
Well I figured out where to insert the short description (/components/com_dtregister/views/calendar/tmpl/index.php - around line 400, I'm wanting it after the image but before the rest of the info).
My issue now is determining what I need to put there, right now this is what I have:
if(v[24] != ""){
str += '<br /><?php echo JText::_('Description')?>:&nbsp;'+v[24]+'';
}
I was able to figure out that there is a variable array (as indicated by the v with a number in brackets ranging from 0 to 23) of some kind. The calendar is retrieving the information from the array and using it for each of the pop-up elements (title, img, dates, price, etc.), however I can't locate where the array is being populated. I'm guessing that I should be able to add another field onto the end of the array that would allow me to call the event_describe field from the db_dtregister_group_event table (hence the '24' in the code). I need to figure out where the variable 'v' is coming from.
Looking at the list view was somewhat helpful, though the way that it stores the database information is totally different.
I discovered most of this through trial and error, so if anyone has some insight into it I would be grateful.

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

  • Page:
  • 1
Time to create page: 0.310 seconds