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.
Is there any way I can configure the default, such as for By Path, to both use the teaser and a global text without having to manually edit every node?
Comments
Comment #1
tsvenson CreditAttribution: tsvenson commentedJust realised I put it in the wrong queue...
Comment #2
tsvenson CreditAttribution: tsvenson commentedI have a text area which I use as teaser. It would have been possible to use this in the By Path / Description field if there had been a '-trimmed' token available for textarea fields in forms. Then it would have been a snap to create a functional global description pattern.
Comment #3
univate CreditAttribution: univate commentedI'm fairly certain that any cck tokens will work in the meta tags - I added all other tokens like cck fields in a separate collapsible fieldset on the module help page so you can see what is availabe on the site. If cck or another module sets up a '-trimmed' token version of the contents of a textarea field that should work in this module.
So this is not really a nodewords_bypath feature as no tokens are defined in this module. It really needs to be added as a token along with the existing cck tokens.
Comment #4
tsvenson CreditAttribution: tsvenson commentedOki, that's understandable.
Would it be possible to add an option so I can, per path, have a global text + the teaser?
As it is now, if I enter anything in the description it will only use that and if I enter nothing it will use the teaser. Would be great if it was possible to combine both somehow.
Comment #5
univate CreditAttribution: univate commentedThere is a token in drupal that provided node teasers - so you can use [node-teaser] with other text in a metatag field.
Otherwise I think your best solution would be to implement another module that creates the '-trimmed' tokens so you can make use of these.