Closed

Modify Drupal [login to view URL] 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;

}

Skills: Drupal, Javascript, PHP

See more: template php menu icon, modify drupal template, webform template php drupal, drupal 7 print main menu in page tpl php, drupal authoring information permission, drupal render menu programmatically, drupal 8 hide authoring information, drupal node published date, drupal display author and date information, drupal node created date, drupal submitted by, php, drupal, css html5, 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

About the Employer:
( 24 reviews ) Norderney, Germany

Project ID: #15687576

15 freelancers are bidding on average $32 for this job

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 More

$30 USD in 1 day
(597 Reviews)
8.1
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 More

$30 USD in 1 day
(95 Reviews)
6.2
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 in 1 day
(31 Reviews)
6.4
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 [login to view URL] contribute More

$55 USD in 1 day
(28 Reviews)
5.5
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 More

$100 USD in 1 day
(7 Reviews)
5.5
ProfSoftStudio

Hello! I modify Drupal [login to view URL] for additional node author menu link Relevant Skills and Experience Please check my reviews and profile https://www.freelancer.com/u/ProfSoftStudio.html Proposed Milestones $25 US More

$25 USD in 1 day
(66 Reviews)
5.6
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 More

$30 USD in 1 day
(9 Reviews)
5.1
$25 USD in 1 day
(47 Reviews)
5.0
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 More

$19 USD in 1 day
(38 Reviews)
5.7
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 More

$25 USD in 1 day
(28 Reviews)
4.6
$30 USD in 1 day
(50 Reviews)
3.6
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 More

$30 USD in 1 day
(11 Reviews)
3.1
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 More

$10 USD in 0 days
(5 Reviews)
1.7
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 in 1 day
(0 Reviews)
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 More

$15 USD in 1 day
(0 Reviews)
0.0