292
/repository/node/123/full/
/repository/node/292/full/


https://tfa.ddev.site/repository/node/292/full/

Twig\Error\SyntaxError: Unknown "drupal_add_css_head" function in "modules/drupal_content_repository/templates/drupal-content-repository-entity.html.twig" at line 7. in Twig\Parser->getFunction() (line 7 of modules/drupal_content_repository/templates/drupal-content-repository-entity.html.twig).

1
block 33

53342
53339

---------
sdc

hello_world

https://tfa.ddev.site/sdc/polaris/hello_world/?title=Hello&content=World - SDC with props
The website encountered an unexpected error. Try again later.

Twig\Error\SyntaxError: Unknown "drupal_add_css_head" function in "modules/drupal_content_repository/templates/drupal-content-repository-sdc.html.twig" at line 7. in Twig\Parser->getFunction() (line 7 of modules/drupal_content_repository/templates/drupal-content-repository-sdc.html.twig).


I think its working
but the page has a menu
https://tfa.ddev.site/repository/node/292/full/

https://tfa.ddev.site/repository/node/292/teaser
page with menus header and foother but no content??? test teaser in a view.


test some other entities
paragraph
block


https://tfa.ddev.site/repository/paragraph/53342/full/  GOOD
https://tfa.ddev.site/repository/paragraph/292/full/.   GOOD
https://tfa.ddev.site/repository/block/33/full/  no
https://tfa.ddev.site/repository/block_content/1/full/  GOOD
https://tfa.ddev.site/repository/block_content/33/full/ NOT FOUND

need to get it by itself with css and js
need to add published test for 'node'.
would like block to work

https://tfa.ddev.site/repository/taxonomy_term/4714/full/    yep
https://tfa.ddev.site/repository/term/asian_american_pacific_islander/full/


https://tfa.ddev.site/sdc/polaris/hello_world/?title=Hello&content=World - SDC with props&s1=slot_content

theme_name
0 "polaris"

sdc_name
0 "hello_world"

props
0 array:2 [▼
  "title" => "Hello"
  "content" => "World - SDC with props"
]
slots
0 []
0 Drupal\Core\Session\AccountProxy {#4946 ▼
  #account: 
Drupal\Core\Session
\
UserSession
 {#5982 ▶}
  #id: "1"
  #eventDispatcher: 
Symfony\Component\EventDispatcher
\
EventDispatcher
 {#6400 …3}
  #_serviceIds: []
  #_entityStorages: []
}

saw the content
https://tfa.ddev.site/sdc/polaris/hello_world?title=Hello&content=World%20-%20SDC%20with%20props&s1=slot_content


https://tfa.ddev.site/sdc/polaris/my_cta/?title=Hello&content=World - SDC with props&s1=slot_content


https://tfa.ddev.site/sdc/polaris/my_react_sdc/?title=Hello&content=World - SDC with props&s1=slot_content


https://tfa.ddev.site/sdc/polaris/my_react_button/?title=Hello&description=World - SDC with props&s1=slot_content


paragraph_sdc:entity-sdc

SDC Paragraph Properties (JSON) {
    “entity_type”: “node”,
    “id”: 292,
    “view_mode”: “full”
} 

paragraph_sdc:paragraph-sdc

{
    “entity_type”: “paragraph”,
    “id”: 34841,
    “view_mode”: “full”
}

https://tfa.ddev.site/sdc/paragraph_sdc/entity-sdc/?entity_type=node&id=292&view_mode=full    .    GOOD

https://tfa.ddev.site/sdc/paragraph_sdc/entity-sdc/?entity_type=paragraph&id=34841&view_mode=full    . GOOD

https://tfa.ddev.site/sdc/paragraph_sdc/entity-sdc/?entity_type=node&id=292&view_mode=full

OK this 
https://tfa.ddev.site/sdc/paragraph_sdc/paragraph-sdc/?entity_type=paragraph&id=34841&view_mode=full   . .   GOOD


they work but say 
SDC "paragraph-sdc" not found in theme "paragraph_sdc".

this has a bunch of junk in Corps Placement.

-------------------------------------------------------------------------------------
Both Controllers Work and display content.

both of these work.
drupal-content-repository-entity-with-assets.html.twig
drupal-content-repository-entity.html.twig

this works
drupal-content-repository-sdc.html.twig

Two things should be addressed.

Thing 1
A Setting
For nodes only display if published (default value FALSE).

Only run this if the global is TRUE.
Then For nodes only their publishing status should be checked and only published nodes should
either by loading the node and checking $node->status == TRUE or by a query
SELECT `status` FROM `node_field_data` WHERE `nid` = NID   RESULTS `STATUS` == 1.


Thing 2
The working controllers return content but its not. the only thing on the page.
It is placed in the content area of a page between the header and footer.

Attually need the page to be visually empty other than the rendered content in the upper left of the page.
This seperates the entities from the pages so theres a chance of using the markup elsewhere (in a different project).
The Javascript and CSS would also need to be on the page in order to be rendered or reused.

Could we override the 
page.html.twig or the html.html.twig templates in the module so an empty page might be achieved when
these controllers are used. With the the rendered html css and js on it.

The thing about the slots is they probably would need to embed one or more other SDCs in each slot
each with a /sdc url and props and slots of their own.




