Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I was looking for an option to define a custom URL (node/add/...) to be added to a users' homescreen. Or, I'd like to be able to control where the add to homescreen button shows up, if that achieves the same effect.
It would be great to have a simple "display on all pages / show only on the following pages" field so that site builders have greater control which URL's are added.
Thanks!
Comments
Comment #1
BartNijs CreditAttribution: BartNijs commentedI'm looking for the same functionality.
Comment #2
BartNijs CreditAttribution: BartNijs commentedI ended up adding the condition in the modules code. I edited line 76 and added an extra condition to the if statement.
I only needed the message to show up on the frontpage. So adding drupal_is_front_page() was all it took.
Comment #3
kpojeta CreditAttribution: kpojeta commented@Bartelli - I would like to add this to only show up on ONE particular page within the website (.../beo-mobile)
Can you provide further instructions for adding this code? I made an attempt but I'm sure I'm missing something!