{"id":19693445,"url":"https://github.com/ezsystems/content-on-the-fly-prototype-bundle","last_synced_at":"2025-04-29T09:31:40.585Z","repository":{"id":60774393,"uuid":"60175883","full_name":"ezsystems/content-on-the-fly-prototype-bundle","owner":"ezsystems","description":"Platform UI Content on the Fly feature","archived":false,"fork":false,"pushed_at":"2018-02-22T08:37:49.000Z","size":94,"stargazers_count":5,"open_issues_count":0,"forks_count":11,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-04-16T09:14:19.396Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ezsystems.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-01T12:40:32.000Z","updated_at":"2021-04-26T12:45:26.000Z","dependencies_parsed_at":"2022-10-04T15:39:38.045Z","dependency_job_id":null,"html_url":"https://github.com/ezsystems/content-on-the-fly-prototype-bundle","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezsystems%2Fcontent-on-the-fly-prototype-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezsystems%2Fcontent-on-the-fly-prototype-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezsystems%2Fcontent-on-the-fly-prototype-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezsystems%2Fcontent-on-the-fly-prototype-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ezsystems","download_url":"https://codeload.github.com/ezsystems/content-on-the-fly-prototype-bundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251473348,"owners_count":21595047,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T19:16:56.302Z","updated_at":"2025-04-29T09:31:38.493Z","avatar_url":"https://github.com/ezsystems.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# content-on-the-fly\nPlatform UI Content on the Fly feature\n\n## Install\n\n1. From your eZ Platform installation, run composer:\n\n  ```sh\n  $ composer require ezsystems/content-on-the-fly-prototype\n  ```\n\n2. Enable the bundle by adding:\n\n  ```php\n  new EzSystems\\EzContentOnTheFlyBundle\\EzSystemsEzContentOnTheFlyBundle()\n  ```\n\n  to `app/AppKernel.php`.\n\n3. Setup routing by adding bundle configuration to `app/config/routing.yml`:\n\n  ```yml\n  _contentOnTheFly:\n      resource: \"@ContentOnTheFlyBundle/Resources/config/routing.yml\"\n      prefix:   '%ezpublish_rest.path_prefix%'\n  ```\n\n4. Clear cache and setup assets with `$ composer run-script post-update-cmd`\n\n   *(if you use prod env make sure that it is set with `$ export SYMFONY_ENV=prod` first)*.\n\n\n## Configuration\nExample application configuration (`app/config/config.yml`):\n```yml\n# ...\n\ncontent_on_the_fly:\n    system:\n        site:                       # Configuration per SiteAccess\n            content:\n                article:            # Content identifier\n                    location:\n                        - 2         # Suggested location(s)\n                default:            # Default, in case of unconfigured content identifier\n                    location:\n                        - 2\n                        - 43\n```\n\nDefault bundle configuration:\n```yml\nparameters:\n    content_on_the_fly.default.content:\n        image:\n            location:\n                - 51    # /Media/Images\n        default:\n            location:\n                - 2     # /Home\n                - 43    # /Media\n```\n\n## Default location for content type\nIf suggested locations are provided for a Content Type (or default) the first location in the list will be preselected.\n\n## Preselected content type\nTo set the Content Type you have to provide the 'contentTypeIdentifier' in the config of the 'contentDiscover' event.\nExample:\n```javascript\n/**\n* ...\n* @param config.visibleMethod {String} which tab should be open. Default: 'browse', possible values: 'browse', 'search', 'create'\n* @param config.contentTypeIdentifier {String} content type identifier. Default: none, example values: 'image', 'blog', 'article', 'blog_post'\n*                                     this parameter is limited to the Create tab, config that works across all tabs will be added in the future\n*/\napp.fire('contentDiscover', {\n    config: {\n        // ...\n        visibleMethod: 'create',\n        contentTypeIdentifier: 'image'\n    }\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fezsystems%2Fcontent-on-the-fly-prototype-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fezsystems%2Fcontent-on-the-fly-prototype-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fezsystems%2Fcontent-on-the-fly-prototype-bundle/lists"}