Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I'm new to this so probably a very obvious and basic question. I'm experiencing the same problem with the subscriptions module as outlined at http://drupal.org/node/81593
Hi all,
I have a multilingual site (catalan and castillian) and everything runs perfectly, but I have a problem with the poll. Poll is not bilingual... the results in castillian are diferent of the results in catalan.
There is an old post on this forum asking about the same question, but anyone has responded yet.
---> http://drupal.org/node/85718
Is this a known problem? Is it posible the bilingual polls?
Thanks in advance.
I enabled search module, palaced search field to the left and it works file. Unless I logout. As not logged user I do not see Search field. I tried unchecked all user roles (visible to all), also tried to check all or check only unregistred. Still not showing....
Why?
Hi!
I wonder what the cache tables are for?
I have heard that when I put my local drupal site on the web, I should remove the cache tables first.
As an experiment, I removed them locally (I am only at trying out Drupal) from the database and then the whole site crashed. How can it work on my host without them?
As new to Drupal, I got lost in the modules jungle and I am wondering if the functionnality I am looking for exists.
I am in a situation where I created new content types by using the CCK module. Now, I would like to be able to define relationship between those contents (like 1-1, 1-N, N-N...). For instance, if I create 'project' and 'organisation' as content types, I would like to define that an organisation is linked to multiple projects.
I know this discussion has been had before, but I haven't seen anyone running Smarty templates and PHPTemplates at the same time.
I'm working on a site which has a lot of PHPTemplate (.tpl.php) pages, but I'd like to Smarty templates for new pages that we do.
So I've written a small function to create a kind of smarty_callback (see code below).
Is there something horribly wrong with doing this?
Its hard for our designers to use the current PHPtemplate pages and I want to try and prevent developers from putting php code into template files in the future. (Although its still possible with Smarty's {php} tags).
Here's the function:
/**
* Function to use smarty templates with a callback function
*/
function modulename_smarty_callback($template_file, $vars) {
require_once('smarty/libs/Smarty.class.php');
$smarty = new Smarty();
$module_path = drupal_get_path('module', 'modulename');
$smarty->template_dir = base_path() . path_to_theme();
$smarty->compile_dir = $module_path.'/smarty/templates_c';
$smarty->cache_dir = $module_path.'/smarty/cache';
$smarty->config_dir = $module_path.'/smarty/configs';
foreach ($vars as $key => $value) {
$smarty->assign($key, $value);
}
$html = $smarty->fetch($template_file.".tpl");
unset($smarty);
return $html;
}