Monday 15 July 2013

php - Drupal Change Menu url -


With Drupal 7, I have a content type with multiple fields. I then have a watch page which is the content type And displays all the contents on it

then it looks like a blog .. and then a main blog display page.

I set it up so that a menu item can be automatically created in the right place.

I also have a Pathto installed so that it creates a link www.site.com/blog_anchor_node - The Threat

The personal content page will never be used, so I am about the strange url I'm not worried, however, the hashtag has not been supported by Pathto, I anchor

let me template. To replace with a file through a Php file, each instance of anchor is required.

This anchor tag can be automatically added to the main menu, footer, as well as the leap menu on the "blog" page, it is itself

so far, my The closest thing is:

  function bartik_theme_links ($ variables) {$ links = $ variables ['links']; If (! (Strokes ($ link, "_anchor_") === incorrect)) {$ links = str_replace ("http: //", "', $ links); $ Links = str_replace ("_ anchor _", "#", $ link); }}   

This does not work.

First, your theme_links / Strong> should not be included. And the second to cite the previously linked documents page, `$ variable ['links'] is a ?? |

The key for each link is used as its CSS class to be an associative array of links.

Your replacement does not work because you are using strip on an array. P> To do this, copy the code (yes the hole code) and just enter something like the following at the beginning:

  Function bartik_links ($ variables) {$ links = $ variables ['link']; Forex Currency ($ $ link => $ l as your key) // // Here are your replacements // You want to print out $ l to ensure that you need a location. // ...}   

Also make sure that the function is correctly named

No comments:

Post a Comment