{"id":21662731,"url":"https://github.com/codesyntax/cs.bodysection","last_synced_at":"2025-03-20T05:48:43.908Z","repository":{"id":9586018,"uuid":"11503301","full_name":"codesyntax/cs.bodysection","owner":"codesyntax","description":null,"archived":false,"fork":false,"pushed_at":"2013-07-18T13:18:49.000Z","size":128,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-01-25T07:27:30.246Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"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/codesyntax.png","metadata":{"files":{"readme":"README.txt","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":"2013-07-18T13:17:59.000Z","updated_at":"2014-03-04T18:16:15.000Z","dependencies_parsed_at":"2022-07-30T01:48:01.068Z","dependency_job_id":null,"html_url":"https://github.com/codesyntax/cs.bodysection","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesyntax%2Fcs.bodysection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesyntax%2Fcs.bodysection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesyntax%2Fcs.bodysection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesyntax%2Fcs.bodysection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codesyntax","download_url":"https://codeload.github.com/codesyntax/cs.bodysection/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244560373,"owners_count":20472219,"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-25T10:17:51.466Z","updated_at":"2025-03-20T05:48:43.885Z","avatar_url":"https://github.com/codesyntax.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"============\nIntroduction\n============\n\nAfter the INavigationRoot fixes in previous versions of Plone, if you install\nLinguaPlone 4.x in Plone 4.x you will end having section-es, section-en, and so\non in your site.\n\nThat's because LinguaPlone 4.x adds root folder for each language in your site \nand sets them INavigationRoot interface.\n\nIn some projects you need content-based section identifiers for your body to get \nthem styled property by your designer.\n\nThat's what you get with this small products. It just have a browser view with \none method. Add it to your main_template in this way::\n\n  \u003cbody tal:define=\"isRTL portal_state/is_rtl;\n                    sl python:plone_view.have_portlets('plone.leftcolumn', view); \n                    sr python:plone_view.have_portlets('plone.rightcolumn', view);\n                    root_content context/@@navigation_root_content;\n                    body_content_class root_content/section_content_body_class;\n                    body_class python:plone_view.bodyClass(template, view) + ' ' + body_content_class;\n                    sunburst_view python:context.restrictedTraverse('@@sunburstview')\"\n\nIn this way your body tag will have an extra content-section-your-items-id class\nand yet preserve the section-es (or the one for your language).\n\nUseful? It is useful for us :)\n\nUse \n====\n\nAdd it to your buildout::\n\n eggs = \n      ...\n      cs.bodysection\n      \nAnd run buildout. No need to install it. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodesyntax%2Fcs.bodysection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodesyntax%2Fcs.bodysection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodesyntax%2Fcs.bodysection/lists"}