drupal-6

How to hide Edit | View tabs?

蹲街弑〆低调 提交于 2019-12-20 09:24:24
问题 Can I hide the Edit | View tabs on top of each node ? I've searched for this option in theme settings (both global and standard theme but I couldn't find it). I still want to be able my customer to edit / administer content, so I cannot just remove the permission for it. thanks 回答1: This really is a presentational thing, not a functionality thing, so it should be done at the theme level. The problem with overriding theme_menu_local_tasks() is that you override/take a hatchet to the entire

How can I theme the template for edit or add a node for a specific content type?

不羁的心 提交于 2019-12-20 09:24:06
问题 I want to theme the template for edit or add a node for a specific content type. For example, to theme all the content type forms I use the file page-node-{add|edit}.tpl.php (depending what I need to do add or edit). But I didn't found the template name for a custom node type, for example Products. I need to theme only for Products, but not for the other content types. I've tried with page-node-edit-product.tpl.php and page-node-product-edit.tpl.php but no luck. 回答1: Hmm. There may be a

How can I theme the template for edit or add a node for a specific content type?

独自空忆成欢 提交于 2019-12-20 09:21:06
问题 I want to theme the template for edit or add a node for a specific content type. For example, to theme all the content type forms I use the file page-node-{add|edit}.tpl.php (depending what I need to do add or edit). But I didn't found the template name for a custom node type, for example Products. I need to theme only for Products, but not for the other content types. I've tried with page-node-edit-product.tpl.php and page-node-product-edit.tpl.php but no luck. 回答1: Hmm. There may be a

Drupal: how can I remove the links from taxonomy terms?

主宰稳场 提交于 2019-12-20 02:38:10
问题 I like the taxonomy terms in my nodes pages, but I don't want user being able to click on them. I just want to remove the links. I'm trying to remove them from taxonomy module php files, but I cannot find them. Thanks 回答1: You never want to edit a core module like taxonomy, as this makes it very complicated to upgrade your Drupal install. See also. You can use hook_link_alter to alter/remove the links in your own module. Adding them back in as non-links is a little more complicated, but can

How can I set a different homepage per language in Drupal?

一个人想着一个人 提交于 2019-12-19 11:43:40
问题 How can I set a different homepage per language in Drupal ? I'm only using locale module (not i18.. or other translations module). thanks 回答1: You can do it without path module in a very simple fashion: First of all, go to sites/default/settings.php and define the frontpage as multilingual variable: $conf['i18n_variables'] = array('site_frontpage'); After that, clear cache and go to admin > Site Information. You will see that below "Default front page" there will be: "This is a multilingual

Drupal Views2 Exposed Form how to change

僤鯓⒐⒋嵵緔 提交于 2019-12-19 10:09:05
问题 I have a View with an exposed form . I am trying to a few things on it. Ideally I would like to have a dropdown that fires the form with no button. If that is not possible then I would like to have the button text something different than apply. I hacked it for now and change views_form in views.module but that does not seem like the right way to do it. I only have one exposed form right now, but what if I add more? Please see http://www.wiredvillage.ca/News for my example. I am poking around

Drupal 7 Browser specific css

时光毁灭记忆、已成空白 提交于 2019-12-18 18:04:13
问题 How can i have a browser specific css in Drupal 7 . I would like to load chrome.css if browser is chrome . Please help 回答1: You can do this in your template.php file with a preprocess_html theme hook and drupal_add_css function. You will find example in drupal 7 theme, for example in bartik : // Add conditional stylesheets for IE drupal_add_css(path_to_theme() . '/css/ie.css', array('group' => CSS_THEME, 'browsers' => array('IE' => 'lte IE 7', '!IE' => FALSE), 'preprocess' => FALSE)); drupal

How to change the label of the default value (-Any-) of an exposed filter in Drupal Views?

ε祈祈猫儿з 提交于 2019-12-18 12:55:24
问题 I created a view which has three exposed filters. Everything works fine except the fact that I can neither translate or change the default string (-Any-) for the dropdowns. Is there a way to change this string to something more meaningful like "Please Select" and make it translatable so the German version displays "Bitte wählen"? I have two screen captures that may be helpful: and A further improvement would be the ability to change the text "any" to something like "please select a (field

Internal server error - Drupal 6

我们两清 提交于 2019-12-16 18:02:56
问题 I have Drupal 6 Site. I have enabled compression of CSS & JS files. Last night I uploaded couple of css files. I cleared the Cache from Drupal site. It was working fine.. But this morning when I opened the site, it is throwing error 500 Internal Server Error. Contact your system administration. I logged into as admin anyhow & disabled the compression so all the css & js files issue got fixed but the images that are under sites/default/files/ are not loading & getting 500 Error for these files

Drupal 6, Views 2: Is it possible to have a filter that only applies to registered users?

夙愿已清 提交于 2019-12-14 03:47:44
问题 Is it possible to create a filter in a Drupal 6 View that is only applied for registered users? For one filter I need I'm using the user vote (With fivestar and votingapi) to know if they user already voted this node or not, and when the user is annonymous, is working as if all the votes from all the annonymous users where from the same. This is why I need to add this filter, but ignore it in case the user is annonymous. Thanks a lot in advance for the help! 回答1: If you're comfortable with