I just wanted to describe a book series consisting of three books. When describing the 2. book I noticed that there is a restriction of 1000 characters for an entry in the ld module. Thus I cannot create my book series. 1000 characters is much too few for many cases. How should I create a carousel? Why is there any restriction at all? Google encourages webmasters to add as many attributes as possible to their structured data.

It is also not possible to create a second entry with the same node-id. That was my first idea as I recognized the restriction. I thought I'd create one entry for the book series and one for the books (or 3 for the books). The ld module doesn't come up with an error message, instead it processes only the last entry with the same node-id.

Is there any way to get rid of the 1000 characters restriction?

Reiner

CommentFileSizeAuthor
#7 extend_the_limitation-2903359-7.patch367 bytesYago Elias
#5 LD.png70.33 KBRFMP
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

RFMP created an issue. See original summary.

Yago Elias’s picture

Version: 7.x-1.2 » 7.x-1.x-dev
Assigned: Unassigned » Yago Elias

Analysing

Yago Elias’s picture

@RFMP Could you please provide a step-by-step of the issue that you are trying to report? I could not understand the complete problem.

Yago Elias’s picture

Status: Active » Postponed (maintainer needs more info)
RFMP’s picture

FileSize
70.33 KB

Hi Yago,

it's very simple. I use the LD-module to describe structured data on my site so that Google hopefully displays rich snippets in search results. In my case those are the object types "Book", "BookSeries" and "ItemList" for carousels. Thus I enter the JSON script in the field "Page Selector". If the script is longer than 1000 characters LD-module comes up with an error message wich says that I must not enter more than 1000 characters.
This is a terrible restriction because most JSON scripts are longer than 1000 characters. In the last days I did more detailed research on Google. I found out that Google definitely wants a certain structure and various properties for the object type "Book", otherwise Google won't show rich snippets in search results. This results in a JSON script which is longer than 1000 characters for each book. That means that I can't even describe one single book with JSON-LD using the LD-module.

Thus I ask you if's possible to extend the module that way that the user can enter at least 10,000 characters (instead of 1,000) in the field "Page Selector", or that way that there is no restriction of length at all.

I hope this is comprehensible. ;-)
Reiner

Yago Elias’s picture

Status: Postponed (maintainer needs more info) » Needs work

Analysing

Yago Elias’s picture

Status: Needs work » Needs review
FileSize
367 bytes

Good catch RFMP. Was a really terrible idea strict to 1000 character the page selector. I hope this patch could solve this!

I will try to move into a new release, after I check if this problem happens on 8' version.

Thanks.

RFMP’s picture

One more questions ;-)

1. I'm not familiar with applying patches. :-( How do I do that?
I'm rather a simpe user of drupal than a developer.

Reiner

Yago Elias’s picture

@RFMP Hi! I don't recommend you to use a hacked module in your site! Its better wait the release :)

Yago Elias’s picture

Status: Needs review » Reviewed & tested by the community

RTBC

Yago Elias’s picture

Status: Reviewed & tested by the community » Fixed
Yago Elias’s picture

Hi @RFMP, checkout new release :)

RFMP’s picture

Hi Yago,

the new release seems to work properly. :-) Thank you!
Additionally, I'd like to propose two things that are not critical for my work but should be included sometime.

1. As mentioned in my first comment the module accepts multiple entries (pages) with the same node-id. But it processes only the last one. When the page is rendered you see only the last entry in the LD module. If you have more than one schema.org-objects on one page it would be handy to create an entry for each object because the object descriptions can become very long. On the other hand it's not a clean solution that the module accepts multiple entries per node but processes only one.

2. It would also be very handy if I could enter the word front in the path field, as it is usual in Drupal. There are a couple of things related to the front page while the nodes displayed on the front page may change. The funny thing is that I can enter front in the path field without error message, but the module actually doesn't do anything with that entry.

As I said, those are no critical points, therefore I won't create a new issue. Maybe you wanna keep these points in mind and create a new release when you spare time.

Reiner

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.