Ditutup

Modify Drupal [url removed, login to view] for additional node author menu link

Hi,

I already have a menu link (node edit) which is only shown to the node author realised in the [url removed, login to view] (code below) and the given menu link path "http://edit/this/node". I would like to have the same for the translate path (so "/node/' . $node->nid . '/translate") but I don't know how to edit the template.php. I guess it is quite simple for someone who knows PHP and Drupal a bit ;)

function venture_theme_menu_tree($variables) {

//global $node;

$arg = arg(1);

$html = null;

if ($arg) {

$node = node_load($arg);

if ($node) {

$link = '/node/' . $node->nid . '/edit';

$html = '<ul class="menu">' . str_replace('http://edit/this/node', $link, $variables['tree']) . '</ul>';

}

}

if (!$html) {

$html = '<ul class="menu">' . str_replace('first ', 'first hidden ', $variables['tree']) . '</ul>';

}

return $html;

}

Kemahiran: Drupal, Javascript, PHP

Lihat lebih lanjut: template php menu icon, modify drupal template, webform template php drupal, webform drupal template php, template php javascript code drupal, modify included drupal template artistically color, modify drupal theme menu, drupal template php, drupal template menu, template php admin modify xml file, converting php code drupal template, drupal template node reference, drupal template node, drupal template include node, drupal template user type node, imageready css drupal template, convertir psd drupal template, setup drupal template price, php mysql drop list menu

Tentang Majikan:
( 24 ulasan ) Norderney, Germany

ID Projek: #15687576

17 pekerja bebas membida secara purata $31 untuk pekerjaan ini

minhhoangduc

Hello, I'm a PHP/Drupal/WordPress CERTIFIED EXPERT coder. And have a lot of experience with System admin + Html + Javascript + CSS + API integration Relevant Skills and Experience Please have a look at my Portfolio an Lagi

$30 USD dalam sehari
(592 Ulasan)
8.1
DSAssociates

Hi i understand the project. Relevant Skills and Experience i have good knowledge on Drupal, Javascript, PHP Proposed Milestones $5 USD - milestone $25 USD - all scope items

$30 USD dalam sehari
(30 Ulasan)
6.4
versacode

We are a group of electrical engineers and web developers. It is unclear what you are trying to do but we understand the portion of code you provided and we might be able to help if you elaborate. Relevant Skills and Lagi

$30 USD dalam sehari
(85 Ulasan)
6.1
arvindkinja

Hello, Hope you are doing well! I have 6 years of experience in the web development area and worked on small to large web application and meet clients expectations. Relevant Skills and Experience [url removed, login to view] contribute Lagi

$55 USD dalam sehari
(26 Ulasan)
5.4
mayankdrupal

Hi, i have read your post and seen code you have written and good code. i am able to do this job very quick with the use of Drupal hooks for translation. Relevant Skills and Experience I have total 8 years of experien Lagi

$19 USD dalam sehari
(36 Ulasan)
5.6
$25 USD dalam sehari
(39 Ulasan)
4.8
ProfSoftStudio

Hello! I modify Drupal [url removed, login to view] for additional node author menu link Relevant Skills and Experience Please check my reviews and profile [url removed, login to view] Proposed Milestones $25 US Lagi

$25 USD dalam sehari
(57 Ulasan)
5.3
salyalankush30

HI I will fix this please ping me back so we can start the project Thanks Relevant Skills and Experience drupal Proposed Milestones $30 USD - Need to discuss

$30 USD dalam sehari
(21 Ulasan)
4.6
Webbleu

As per your requirement of website developer for you are at the right place where you will get all your needs to be done with satisfaction and a quality work will be given to you. Relevant Skills and Experience I hav Lagi

$25 USD dalam sehari
(28 Ulasan)
4.6
techviawebs

we are a web and app developement organization having a expert team in PHP, MySQL,CSS3, HTML5,android ,wordpress wp plugins,and 3rd party API as Facebook, Twitter, Google API, shopping engines, etc. Relevant Skills an Lagi

$100 USD dalam sehari
(2 Ulasan)
3.5
$30 USD dalam sehari
(25 Ulasan)
2.7
ebinaryzone

Hi,I have 8+ years experience in web development did lots of site in drupal with customization if i get proper time and cost I can do any thing in drupal which is logical correct as per requirement. Relevant Skills a Lagi

$30 USD dalam sehari
(7 Ulasan)
2.4
customwebxpert

Hi, Hope you doing well!!! I am available with complete expertise and past experience to meet your job requirement and can start right now. So can you please send me the complete detail so that I can analyze Lagi

$30 USD dalam sehari
(1 Ulasan)
2.2
Pdeveloper44

Hi, I am master Developer, I have worked with all the techs eg. Wordpress, Joomla, Magento, Prestashop, Opencart, Shopify. I have read the Project requirements,I can start work now. Relevant Skills and Experience Dru Lagi

$10 USD dalam 0 hari
(5 Ulasan)
1.6
hiralthakersl

I am zend certified php developer and having 12 year of experience. Relevant Skills and Experience I have experience in drupal 6, 7 & 8 version. So I can do this quickly. Proposed Milestones $25 USD - entire task

$25 USD dalam sehari
(0 Ulasan)
0.0
$25 USD dalam sehari
(1 Ulasan)
0.0
mariancalinro

You can add another rule for the string replacement, which would replace any occurrence of a specific string, like http://translate/this/node to '/node/'. $node->nid. '/translate'. Then you can use the fake url anywhe Lagi

$15 USD dalam sehari
(0 Ulasan)
0.0