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
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.
I can confirm this bug and it is still not fixed. A pity.