Skip to main content

Timeline for Get Path from node ID

Current License: CC BY-SA 3.0

5 events
when toggle format what by license comment
Jul 11, 2016 at 17:27 vote accept Amy
Jul 11, 2016 at 17:27 comment added Amy I ended up getting the path by using your code within the Block plugin file.
Jul 11, 2016 at 15:23 comment added Amy I can get the path to show up on a page template when using the reprocess_page hook but for some reason when I use it in the preprocess_block it doesn't appear in the block template. Could that have something to do with the custom block being created within a custom module?
Jul 11, 2016 at 14:59 comment added rooby I would also advise against writing the image paths like that. See drupal.stackexchange.com/q/185572/10729 for information on how to safely get the path to the public files directory.
Jul 11, 2016 at 14:50 history answered Tobias Krause CC BY-SA 3.0