Timeline for How to redirect a node to an external URL?
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 20, 2018 at 12:13 | comment | added | gbmapo |
I added the following code in mytheme_preprocess_views_view_fullcalendar and it works! Thanks for putting me in the right direction.
|
|
Sep 18, 2018 at 9:18 | comment | added | GiorgosK |
@gbmapo I believe this functionality is hardcoded in template_preprocess_views_view_fullcalendar function in fullcalendar_view.theme.inc file. Its a template function so you can probably copy paste it in your THEMENAME.module and rename it to THEMENAME_preprocess_views_view_fullcalendar . I think what needs changing is on line 154 'url' => $current_entity->toUrl()->toString(),
|
|
Sep 18, 2018 at 8:39 | comment | added | gbmapo | I just read your NOTE. Any clue where I can put the code in my custom module? what should be the proper hook_views to be used? | |
Sep 7, 2018 at 22:03 | history | edited | GiorgosK | CC BY-SA 4.0 |
added 423 characters in body
|
Sep 7, 2018 at 19:42 | comment | added | gbmapo | I updated my question... | |
Sep 7, 2018 at 12:53 | comment | added | GiorgosK | @gbmapo your calendar view outputs a field that is the actual link. Change that field to use the external URL output instead, you can post a screenshot of your calendar View configuration | |
Sep 7, 2018 at 12:32 | comment | added | gbmapo |
Sorry. I couldn't make your proposal work. I don't understand your 4th point: Use external url as the link. How do I do that?
|
|
Sep 6, 2018 at 13:54 | history | edited | GiorgosK | CC BY-SA 4.0 |
added 9 characters in body
|
Sep 6, 2018 at 11:48 | history | answered | GiorgosK | CC BY-SA 4.0 |