management page: The code is as follows:Copy code Function hook_admin_paths (){$ Paths = array ('Mymodule/*/add' => TRUE,'Mymodule/*/edit' => TRUE,);Return $ paths;} Method 2 use Overlay PathsYou can also use the Overlay Paths module. It is a simple module. Allows administrators to use non-management pages to Overlay layers. This means that you can reuse Overlay as a pop-up window without adding more JavaScript libraries to your website to implement similar Modal functions.
The code is as follows
Copy Code
$ (' body '). addclass (' Toolbar-drawer '). CSS (' paddingtop ', Drupal.toolbar.height ());
Drupal.toolbar.height () There is a bug in the jquery UI 1.8.11, not returning a height value but an object.
The way to solve this problem is to upgrade the jquery UI to the latest version 1.10.2.
Update JQuery UI to the latest version (1.10.2)
Download this patch, jquery_update.git/patch/d32f50d ">http://drupalcode.org/project/jquery_update
Introduction: This is a detailed page for configuring the clean URL of Drupal. It introduces PHP, related knowledge, skills, experience, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 332640 'rolling = 'no'>
1. Cancel comments before "loadmodule rewrite_module modules/mod_rewrite.so" in Apache httpd. conf.
2. Find
Add in
Rewriteengine onrewritebase/rewritecond % {r
Introduction: This is a detailed page of Drupal template naming rules. It introduces PHP, related knowledge, skills, experience, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 337294 'rolling = 'no'>
Path
TPL
/(Homepage)
Page-front.tpl.php
Node/%/edit (Edit page)
Page-node-edit.tpl.php
/htdocs"Servername localhostDirectoryindex index. php
Jeff in Seattle » Login or register to post comments
Very helpful guideshaunak-March 13,200 9-
Very helpful post.
I wowould also like to add that you also may have to set the "AllowOverride" directive to "all" [around line 224 in the httpd. CONF file] to allow directives in. htaccess to work.
Around that line, you can see,
Options followsymlinksAllowOverride allOrder deny, allowDeny from allSatisfy all
--Cheers,Shaunak. Log
Drupal Install CKEditor text Editor, and configure the image upload function method one describes the CKEditor installation and configuration method, in fact, there is another new method, not IMCE module. But need Ckfinder JS Library, can go to http://ckfinder.com/download download, download and put to Ites\all\modules\contrib\ckeditor folder,Then go to admin/config/content/ckeditor/edit/full and configure it.It's all right.Drupal installs the CKEdito
Install tomcat: The code is as follows:Copy code Apt-get updateApt-get install tomcat6 tomcat6-admin Download and install apachesolr: The code is as follows:Copy code Wget http://mirrors.cnnic.cn/apache/lucene/solr/4.7.2/solr-4.7.2.tgzTar-vxf solr-4.7.2.tgzMkdir/opt/solrSolr-4.4.0/example/solr/*/opt/solr/Cp solr-4.4.0/example/webapps/solr. war/opt/solr/Cp-r solr-4.4.0/example/lib/ext/*/var/lib/tomcat6/shared/ Edit the apachesolr configuration file: The code is as follows:Copy code
Related article: Drupal module explain-authcache caching principle detailed tutorial
This article is about how to implement the personalized content of a cached page if you modify Authcache's core code.Advanced application authcache-Dynamic loading content tutorial "/>Common cache, more or less to be personalized processing, such as user name display, dynamic loading of user information, user friends and so on.In general, this kind of local personali
The status is as follows:1, click the Security button, can not go to the normal page, a blank page appears;
2, refresh the page, issued a number of navigation items have not been, but also the existence of the item can not be clicked into the normal page.
Tested a number of times did not find any problems, many times reload, test, finally appeared a error page hint: "Drupal Maximum execution time seconds exceeded database In/mysqli.inc", A look at thi
Small and medium site simple backup strategy
Based on Drupal's small and medium line website, we can use the Backup_migrate module, which provides the function of the regular backup, the backup time, how many backup and so on, and so on, after setting up, the regular cron can backup successfully. The General Drupal Station, we only need to use SVN can, on the server side, we put back the good data to SVN, we can achieve the purpose of the backup. Bec
every problem, no need to adjust, but the current host space because of the use of php5.1.x, so some features are not supported or changed, including:
sites/default/settings.php file in the $base_url, because the php5.1.x environment in IE browser can not get $_server[' http_host '] variables, so there will be problems, and changed to:
$base _url = isset ($_server[' http_host '))? ' http://'. $_server[' Http_host ']: ' http://imysql.cn ';
Another place is the Str_replace function, and the re
this loophole was found in 2014, in the spirit of learning, I will do a detailed analysis. Although the vulnerability is early, the new version of Drupal has even changed the way the framework is organized. However, the analysis of the vulnerability is not affected at all. This is a classic use of PDO, but improperly handled, resulting in SQL statement stitching resulting in injection problems. Judging from this and many of the loopholes I've seen in
Release date:Updated on: 2013-01-22
Affected Systems:Drupal Live CSS Module 7.xDrupal Live CSS Module 6.xDescription:--------------------------------------------------------------------------------Bugtraq id: 57436The Live CSS module can present and edit the LESS style sheet in real time.
Live CSS 7. x-2.x allows you to upload files with any extension to a folder in webroot, which can cause arbitrary PHP code execution by uploading malicious PHP scripts. The "administer CSS" permission is requ
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.