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.
Part 1:
Make option to remove the existing default canonical reference to the original node page of the article so that additional pages may contain their own stand alone seo value
Part 2:
Provide for the custom meta description and keywords of each additional smart paging url
Part 3:
Add words to additional page url
Example:
Output:
PAGE 1 - example.com/topics/health/how-to-eat-healthy
PAGE 2 - example.com/topics/health/how-to-eat-healthy/page/0/1#Breakfast-Facts-for-Nutrition
Comments
Comment #1
arpeggio CreditAttribution: arpeggio commentedI have implemented this feature and already commit/push to GIT.
As for part 1 and 2 we have:
<!--smartpagingmeta {"link_rel_canonical_href":"","meta_name_description_content":"Tips for breakfast facts and nutrition information","meta_name_keywords_content":"breakfast, breakfast nutrition, healthy, healthy eating habits"}-->
Adding this after the <!--pagebreak--> will remove canonical meta, insert meta description and keywords.
As for part 3:
<!--smartpagingurl "Breakfast-Facts-for-Nutrition"-->
Adding this after the <!--pagebreak--> will add Breakfast-Facts-for-Nutrition to the URL of the next page:
Output:
PAGE 1 - example.com/topics/health/how-to-eat-healthy
PAGE 2 - example.com/topics/health/how-to-eat-healthy/page/0/1#Breakfast-Facts-for-Nutrition
For example:
Output:
PAGE 1 - example.com/topics/health/how-to-eat-healthy
PAGE 2 - example.com/topics/health/how-to-eat-healthy/page/0/1#Breakfast-Facts-for-Nutrition
Please use the 7.x-1.3. Thank you.
Additional details:
The placeholder smartpagingmeta data is json like encoded. As in the example above:
<!--smartpagingmeta {"link_rel_canonical_href":"","meta_name_description_content":"Tips for breakfast facts and nutrition information","meta_name_keywords_content":"breakfast, breakfast nutrition, healthy, healthy eating habits"}-->
The key will be exploded with underscore "_" as delimiter and arrange in following manner:
For key "link_rel_canonical_href":
For key "meta_name_description_content":
For key "meta_name_keywords_content":
And the value of the key will be included in the array:
For key "link_rel_canonical_href" value:
For key "meta_name_description_content" value:
For key "meta_name_keywords_content" value:
Note: If the value is empty, that meta tag will be removed from the page header as in the case of 'canonical' in our example above, the meta 'canonical' will be removed from the header.
As another example if we want to add this meta data to the header of the split page by Smart IP:
<meta property="dcterms.title" content="Smart Paging content - pp. 1">
... our Smart Paging placeholders should be:
<!--pagebreak--><!--smartpagingmeta {"meta_property_dcterms.title_content":"Smart Paging content - pp. 2"}-->
Comment #3
AlexBert CreditAttribution: AlexBert commentedHow to use a language other than English in the instruction "meta_name_description_content"?
I try to use Russian for description but it does not work.
With English description it works fine.
Comment #4
AlexBert CreditAttribution: AlexBert commentedComment #5
sokrplare CreditAttribution: sokrplare commented@AlexBert - please open a new issue for this bug with an example of the Russian description used that doesn't work.
Comment #6
arpeggio CreditAttribution: arpeggio commented@AlexBert, yes please open new issue. Thanks.
Comment #7
arpeggio CreditAttribution: arpeggio commentedA module that provides very nice UI for this functionality can be found here.