Contextual links do not work

tsewebdesign's picture
tsewebdesign
Mon, 12/21/2015 - 07:33
#1
Contextual links do not work

Hello,

I've noticed that the contextual links that are displayed above the slider do not work properly.
The links link to admin/structure/md-slider/the_machine_name_of_the_slider/edit while it should be admin/structure/md-slider/id_of_the_slider/edit

This could be solved by modifying the function md_slider_field_formatter_view in md_slider.field.inc.

Original:

$edit_link = l(t("Edit MD Slide"), url("admin/structure/md-slider/{$item["md_slider_id"]}/edit", array("absolute" => TRUE, "query" => drupal_get_destination())));
$configure_link = l(t("Configure MD Slide"), url("admin/structure/md-slider/{$item["md_slider_id"]}/edit", array("absolute" => TRUE, "query" => drupal_get_destination())));

Bugfix:

$slider = MDSlider::get_by_machine_name($item["md_slider_id"]);
$edit_link = l(t("Edit MD Slide"), url("admin/structure/md-slider/{$slider->slid}/edit", array("absolute" => TRUE, "query" => drupal_get_destination())));
$configure_link = l(t("Configure MD Slide"), url("admin/structure/md-slider/{$slider->slid}", array("absolute" => TRUE, "query" => drupal_get_destination())));

Best regards,

Vincent

phuonght's picture
phuonght
Tue, 12/22/2015 - 05:32

Hi Vincent,

Thank you so much for your concern about our product. 

We will check and try to work with this solution to solve problem and develope better verions of Mega slider in the future.

ayalon's picture
ayalon
Mon, 04/11/2016 - 09:51

I can confirm this bug and it is still not fixed. A pity.

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.