Module Questions

  • hbcrosby
  • hbcrosby's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 7 months ago #728 by hbcrosby
hbcrosby created the topic: Module Questions
Hello! I have been testing Simple Calendar and have 2 questions about the upcoming events module.

1) I am using ({START_DATE}): {NAME} for the fields and would like to essentially put a "<br />" between them. What is the proper syntax?

2) When I click on the {NAME} link (which is located on the front page of my site), it places the details page on the front page of my site. How can I have the details page open on a page of it's own?

Thank you!!
The topic has been locked.
More
1 year 7 months ago #729 by admin
admin replied the topic: Module Questions
1) You will most likely need to tweak the template of the module, since Joomla natively removes all tags from input fields. You can edit /modules/mod_simplecalendar/helper.php and add a '<br />' tag before or after the desiderd piece of code. For example (in this case it's line 159, butworks for all other options as well):
'{NAME}' => $name . '<br />';
2) Edit /modules/mod_simplecalendar/helper.php line 151, add ' target="_blank" ' to the anchor tag. Should look like this:
$name = '<a href="' . $link . '" target="_blank">' . $row->name . '</a>';

Best regards
Fabrizio
The topic has been locked.
More
1 year 3 months ago #821 by Rumpel
Rumpel replied the topic: Module Questions
First part of your question could be solved by making the "Fields"-field accepting HTML-code. See this suggestion for how to do it.
The topic has been locked.
More
1 year 3 months ago #824 by admin
admin replied the topic: Module Questions
Hi 'Rumpel',
thanks for the suggestion, I will look into it ASAP.
Fabrizio
The topic has been locked.
More
10 months 2 weeks ago #893 by admin
admin replied the topic: Module Questions
Accepted and to be released with module version 3.1.1
Thanks & best regards
The topic has been locked.
Time to create page: 0.243 seconds
Powered by Kunena Forum