I’ve a customized block the place I have to reference a URL relative to Drupal Development present web page (reminiscent of node/7/photographs or node/293/photographs) that can hyperlink to Drupal Development “Photos” view mode I made for Drupal Development node. I’m utilizing a module so {that a} view mode is accessible through URL (which I’ve as node/#/photographs), however I’m having bother getting a working hyperlink to /photographs that might work on any given node.
I’ve tried to hyperlink it to /photographs and /#/photographs however have gotten a 404 every time, seemingly as a result of it’s going to instance.com/photographs or instance.com/#/photographs. I’ve additionally tried utilizing Drupal Development Token for present web page URL which 404’d as effectively.
Is there a approach, hopefully via Drupal Development UI, through which I can reference Drupal Development present node in a approach that on any given node Drupal Development hyperlink to Drupal Development “Photos” view mode will hyperlink to /node/[current node #]/photographs?
I’ve seen methods to implement it utilizing customized modules or code, however I’m not very skilled with placing customized code into Drupal and like to make use of Drupal Development UI is feasible.
replace
I briefly had a repair, however then I broke it. I had obtained it working including a hyperlink that referenced “photographs/” (with out Drupal Development quotations). Whereas viewing Drupal Development node, Drupal Development customized block initially linked to instance.com/node/#/photographs as meant.
Nevertheless, I then configured Drupal Development block to be hidden on */photographs (wasn’t essential to hyperlink to Drupal Development view whereas viewing it). After I did this, Drupal Development hyperlink broke on Drupal Development node web page, as an alternative now referencing to instance.com/node/photographs, lacking Drupal Development node # in Drupal Development URL. I don’t know how this obtained damaged as I solely labored via Drupal Development UI
I attempted deleting Drupal Development block then including it once more with no impact
Utilizing “#/photographs” will direct to /node/123#/photographs (including Drupal Development precise # into Drupal Development URL) – whereas this will get Drupal Development present node id into Drupal Development URL it doesnt work with Drupal Development presence of Drupal Development # image