Welcome to Geeklog, Anonymous Friday, November 08 2024 @ 08:27 pm EST
Geeklog Forums
Add forms without plugins
Status: offline
alb3rt
Forum User
Regular Poster
Registered: 10/30/06
Posts: 71
Location:Mexico City
Hi guys,
I need to add a simple form to my site, in previous versions of geeklog I added my form through a custom file from the "layout/theme"" and I got it with:
$form_templates = new Template ($_CONF['path_layout'] . 'custom');
$form_templates->set_file('editor','editor.thtml');
...
I have migrated to the most recent version and I see that it does not work, since it does not take into account my form, I have noticed that the class has changed
$form_templates = COM_newTemplate(...
...
I have noticed that it works with these options:
$group_templates = COM_newTemplate(CTL_core_templatePath($_CONF['path_layout'] . 'admin/group'));
...
$link_templates = COM_newTemplate(CTL_plugin_templatePath('links', 'admin'));
...
But it does not work:
$form_templates = COM_newTemplate($_CONF['path_layout'] . 'custom');
...
Is it possible to get a template from layout without writing a plugin?
D Web Studio - www.d-webstudio.net
I need to add a simple form to my site, in previous versions of geeklog I added my form through a custom file from the "layout/theme"" and I got it with:
Text Formatted Code
$form_templates = new Template ($_CONF['path_layout'] . 'custom');
$form_templates->set_file('editor','editor.thtml');
...
I have migrated to the most recent version and I see that it does not work, since it does not take into account my form, I have noticed that the class has changed
Text Formatted Code
$form_templates = COM_newTemplate(...
...
I have noticed that it works with these options:
Text Formatted Code
$group_templates = COM_newTemplate(CTL_core_templatePath($_CONF['path_layout'] . 'admin/group'));
...
Text Formatted Code
$link_templates = COM_newTemplate(CTL_plugin_templatePath('links', 'admin'));
...
But it does not work:
Text Formatted Code
$form_templates = COM_newTemplate($_CONF['path_layout'] . 'custom');
...
Is it possible to get a template from layout without writing a plugin?
D Web Studio - www.d-webstudio.net
14
14
Quote
All times are EST. The time is now 08:27 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content