Jump to content

Field type for a text-based array?


modifiedcontent
 Share

Recommended Posts

Another dumb question:

Is there a field type for a text-based array?

In my case I need to store an array of RSS feeds for SimplePie. Storing that list of links in a textarea - text formatted to look like an array - doesn't work with the script. It works with one link.

The images field is an array. I assumed there would be an equivalent for URLs or text in general.

Or is there another approach for these cases?

Edit:

I guess using the optional (module) Repeater field type is the best solution in this case? I have now a working solution based on that. Still curious about other ideas.

 

Link to comment
Share on other sites

Quote

You mean JSON? Or Serialized array?

Either or both! A JSON field would probably be most useful.

I am watching some of those other threads. Simplepie takes input as a list of comma-separated links, not key => value - does that type of array have a name? I managed to make it work with a repeater field.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...