Main menu

Forum


× Help Forum English

Icangeda Popup window`s link redirects to an existing article - It is possible?

  • outwork
  • Topic Author
  • New Member
  • New Member
More
10 years 10 months ago #6790 by outwork
Hi. It is possible to redirect the ICagenda`s Event popup link to an existing article (made by me from the Article manager). Right now Icangda creates a separate page to every event created with it, which is not what I am looking for. There is an option for this? Or i need to edit the php files to accomplish this feature? Thank you!
Attachments:

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

  • Lyr!C
  • Lyr!C's Avatar
  • Administrator
  • Administrator
  • Lead Developer
More
10 years 9 months ago #6807 by Lyr!C
Hello,

This is not the main purpose of iCagenda, but i've planned this option in the future (no deadline today, as not planned in the current developpement).

But, if you don't need the website field, it could be used to do this, but needs to edit core file of module iC calendar and theme pack used.

To do this hack :

in modules/mod_iccalendar/helper.php, add this line 'article' => $r->website, arround lines 952-973 :
$event=array(
				'id' => (int)$r->id,
				'registered' => (int)$registered,
				'maxTickets' => (int)$maxTickets,
				'TicketsLeft' => (int)$TicketsLeft,
				'Itemid' => (int)$mItemid,
				'url'=> $urlevent,
				'article'=> $r->website,
				'title' => $r->title,

And in the theme pack (components/com_icagenda/themes/packs/NAME_OF_YOUR_THEME_PACK/NAME_OF_YOUR_THEME_PACK_day.php :

Replace this :
$e['url']

By this :
$e['article']

And so, you can copy/paste the url of the article in the field website, admin side. ;-)

Lyr!C

Latest version : iCagenda 3.9.8
We recommend every user to keep iCagenda updated.
Don't forget to have your Joomla!™ up-to-date!

Do you like iCagenda?
I would appreciate if you could take 5 minutes to post a review on JED (Joomla Extensions Directory) .

File Attachment:

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

Moderators: Lyr!C
Time to create page: 0.077 seconds

 

Follow Us

Create your Joomla templates with Template Creator CK

acymailing logo new