Structured Content Types - Technical Architecture

Todo

Update to current version

Content Types

Helpful Organization

Note

ILAO already has organization profile data that should be used for any organization in our system. New entities should only be added to reference organizations that are not legal services providers within our Organization platform.

Fields will be hidden when an Organization is included.

Field

Type

Cardinality

Description

Title (Name)

Title field

1, required

Description

Text area

1

Address

Address

1

Area Served

Paragraphs bundle

unlimited

Coverage area

Email

Email

1

Telephone

Text field

1

Contact

Paragraphs bundle

unlimited

content managem ent tags

Term reference

unlimited

Current content management tags

request to be translated

Boolean

1, default to No

Should translation be requested

mark translation as outdated

Boolean

1, default to No

Existing field mark as outdated

Last revised

Date time

1

Current last reviewed field

Paragraph Bundles

There are a number of paragraphs bundle created to support the content entities in the schema:

  • LegalCode, used in LegalProblem

  • FormPrepProgram, used in LegalForms

  • Step section, a holder for steps in Legal How-to

  • How to directions and tips, used in Legal Steps

  • CoverageArea, used in Legal Solution, Organization

  • TextBlock, used in various text output where we need more control over structure.

  • Contact point

  • Paired markup to pair a WYSIWYG item with a plain text with footnotes version

Form Prep Program

Field

Type

Cardinality

Description

name

text field

1

Name of the form prep package or Easy Form

url

link

1

link to the form prep

formPrepProgram

term reference

1

Reference to the form prep programs taxonomy

How To Directions & Tips

Field

Type

Cardinality

Description

How-to Type

Select

1, required

Tip or Direction

Body

Paragraphs item

1, required

Paired markup

referencedUrls

Links

unlimited

Links included in markup

Note

There is also a position property in the schema. This is computed in the How-to and not stored in the database.

Structured Text Block

Field

Type

Cardinality

Description

Heading

Text field

1

Body

Paragraphs bundle

required unlimited

Paired markup

List

Paragraphs bundle

unlimited

Item list bundle

Paired Markup

Field

Type

Cardinality

Description

Body

Hidden

unlimited, required

Clean version of body with markup

Body with markup

Text area

unlimited, required

WYSIWYG

Structured Item List

Field

Type

Cardinality

Description

Item List Order

Select

1, required

ascending, descending, or unordered

Item List Elements

Paragraphs bundle

unlimited, required

Paired markup

Coverage Area

Field

Type

Cardinality

Description

Administrative area

Select

1, required

Country, state, city, postal code

Counties

Term reference

unlimited

Region taxonomy

Cities

Term reference

unlimited

Region taxonomy

Zip codes

Term reference

unlimited

Region taxonomy

Countries

Country

unlimited

Defaults to United States

Contact Point

Field

Type

Cardinality

Description

Contact type

Text field

unlimited

Area served

Paragraphs bundle

unlimited

Coverage area bundle

Email

Email

1

Telephone

Text field

1

Hours

Hours field

unlimited

Products Supported

Text field

unlimited

Type of service or product offered through the organization.

Citation

Field

Type

Cardinality

Description

Citation

Text field

one

Citation text

URL

Link

one

Link to citation

Taxonomies

  • life areas (used in legal problem)

  • solution types (used in legal solutions)

  • form prep programs (used in Legal forms)

Technical Notes

  • We can use DrupalCoreMailMailFormatHelper::htmlToText($string) to render plain text with urls as footnotes from the with markup fields.

_images/clean-markup.png