TYPO3 Tabs on Page Properties - typo3
on the page properties in the main language are 7 tabs. On every translated page there are just 4 tabs. The "behavior" tab for example is hidden or missing. On this tab there is the field "link target" which I need in one specific project.
Is there a way to show this specific tab or just the field link target?
Thank's in advance for your help.
You will need to update the palette (TCA - table configuration array) for the pages_language_overlay table and add the field. On top of that, you might need to configure the translation overlay for the link field.
For that you have to adjust the settings for the installation.
So I figured out how it works, but I am pretty sure I did way too much. Anyway, it may help someone you facing the same challenge:
extTables.php
$GLOBALS['TCA']['pages_language_overlay']['columns']['target']['config']['eval'] = 'trim';
$GLOBALS['TCA']['pages_language_overlay']['columns']['target']['config']['max'] = 80;
$GLOBALS['TCA']['pages_language_overlay']['columns']['target']['config']['size'] = 50;
$GLOBALS['TCA']['pages_language_overlay']['columns']['target']['config']['type'] = 'input';
$GLOBALS['TCA']['pages_language_overlay']['columns']['target']['exclude'] = 1;
$GLOBALS['TCA']['pages_language_overlay']['columns']['target']['label'] = 'LLL:EXT:cms/locallang_tca.xlf:pages.target';
$GLOBALS['TCA']['pages_language_overlay']['interface']['showRecordFieldList'] = 'title,hidden,starttime,endtime,keywords,description,abstract,target';
$GLOBALS['TCA']['pages_language_overlay']['interface']['showRecordFieldList'] = 'title,hidden,starttime,endtime,keywords,description,abstract,target';
$GLOBALS['TCA']['pages_language_overlay']['palettes']['5']['showitem'] = 'author,author_email,target';
$GLOBALS['TCA']['pages_language_overlay']['palettes']['links']['canNotCollapse'] = 1;
$GLOBALS['TCA']['pages_language_overlay']['palettes']['links']['showitem'] = 'alias;LLL:EXT:cms/locallang_tca.xlf:pages.alias_formlabel, --linebreak--, target;LLL:EXT:cms/locallang_tca.xlf:pages.target_formlabel, --linebreak--, url_scheme;LLL:EXT:cms/locallang_tca.xlf:pages.url_scheme_formlabel';
$GLOBALS['TCA']['pages_language_overlay']['types']['1']['showitem'] = '--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.external;external,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.title;title,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.access,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.visibility;visibility,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.access;access,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.metadata,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.abstract;abstract,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.editorial;editorial,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.appearance,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.layout;layout,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.behaviour,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.links;links,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.language;language,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.miscellaneous;miscellaneous,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.resources,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.media;media,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.storage;storage,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.config;config,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.extended, --div--;LLL:EXT:lang/locallang_tca.xlf:sys_category.tabs.category, categories';
$GLOBALS['TCA']['pages_language_overlay']['types']['3']['showitem'] = '--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.external;external,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.title;title,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.access,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.visibility;visibility,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.access;access,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.metadata,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.abstract;abstract,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.editorial;editorial,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.appearance,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.layout;layout,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.behaviour,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.links;links,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.language;language,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.miscellaneous;miscellaneous,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.resources,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.media;media,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.storage;storage,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.config;config,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.extended, --div--;LLL:EXT:lang/locallang_tca.xlf:sys_category.tabs.category, categories';
$GLOBALS['TCA']['pages_language_overlay']['types']['4']['showitem'] = '--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.external;external,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.title;title,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.access,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.visibility;visibility,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.access;access,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.metadata,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.abstract;abstract,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.editorial;editorial,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.appearance,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.layout;layout,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.behaviour,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.links;links,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.language;language,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.miscellaneous;miscellaneous,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.resources,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.media;media,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.storage;storage,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.config;config,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.extended, --div--;LLL:EXT:lang/locallang_tca.xlf:sys_category.tabs.category, categories';
$GLOBALS['TCA']['pages_language_overlay']['types']['7']['showitem'] = '--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.external;external,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.title;title,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.access,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.visibility;visibility,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.access;access,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.metadata,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.abstract;abstract,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.editorial;editorial,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.appearance,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.layout;layout,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.behaviour,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.links;links,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.language;language,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.miscellaneous;miscellaneous,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.resources,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.media;media,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.storage;storage,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.config;config,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.extended, --div--;LLL:EXT:lang/locallang_tca.xlf:sys_category.tabs.category, categories';
$GLOBALS['TCA']['pages_language_overlay']['types']['199']['showitem'] = '--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.external;external,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.title;title,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.access,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.visibility;visibility,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.access;access,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.metadata,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.abstract;abstract,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.editorial;editorial,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.appearance,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.layout;layout,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.behaviour,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.links;links,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.language;language,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.miscellaneous;miscellaneous,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.resources,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.media;media,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.storage;storage,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.config;config,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.extended, --div--;LLL:EXT:lang/locallang_tca.xlf:sys_category.tabs.category, categories';
$GLOBALS['TCA']['pages_language_overlay']['types']['254']['showitem'] = '--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.external;external,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.title;title,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.access,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.visibility;visibility,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.access;access,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.metadata,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.abstract;abstract,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.editorial;editorial,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.appearance,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.layout;layout,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.behaviour,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.links;links,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.language;language,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.miscellaneous;miscellaneous,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.resources,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.media;media,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.storage;storage,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.config;config,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.extended, --div--;LLL:EXT:lang/locallang_tca.xlf:sys_category.tabs.category, categories';
$GLOBALS['TCA']['pages_language_overlay']['types']['255']['showitem'] = '--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.external;external,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.title;title,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.access,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.visibility;visibility,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.access;access,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.metadata,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.abstract;abstract,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.editorial;editorial,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.appearance,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.layout;layout,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.behaviour,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.links;links,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.language;language,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.miscellaneous;miscellaneous,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.resources,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.media;media,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.storage;storage,--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.config;config,--div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.extended, --div--;LLL:EXT:lang/locallang_tca.xlf:sys_category.tabs.category, categories';
Related
React native freshchat loading issue while implementing show Conversations
I have installed the react-native fresh chat package and set up the initial configuration. So I need open the conversation widget on the app. Freshchat.showConversations(conversationOptions); I tried the above code to show conversation but I getting a widget with a loader inside it. Loader not stoping. Please help to fix this issue. Thanks !!!!
I resolved this by adding: var freshchatConfig = new FreshchatConfig(APP_ID, APP_KEY); freshchatConfig.domain = "YOUR-DOMAIN"; freshchatConfig.teamMemberInfoVisible = true; freshchatConfig.cameraCaptureEnabled = true; freshchatConfig.gallerySelectionEnabled = true; freshchatConfig.responseExpectationEnabled = true; freshchatConfig.showNotificationBanner = true; //iOS only freshchatConfig.notificationSoundEnabled = true; //iOS only freshchatConfig.themeName = "CustomTheme.plist"; //iOS only freshchatConfig.stringsBundle = "FCCustomLocalizable"; //iOS only Freshchat.init(freshchatConfig); Reference: https://support.freshchat.com/support/solutions/articles/50000000467-freshdesk-messaging-react-native-sdk-integration-steps#Pre-Requisites%C2%A0
Adding local plugin in the left navigation menu in Moodle
I would add my local plugin in the left navigation menu. However, the code block I wrote in the lib.php is not running and not displaying my plugin in the navigation menu. Could you please help me? Here is my lib.php <?php function local_glossary_extend_navigation(global_navigation $navigation){ $main_node = $navigation->add(get_string('glossary','local_glossary'), '/local/glossary/'); $main_node->nodetype=1; $main_node->collapse = false; $main_node->forceopen = true; $main_node->isexpendable = false; $main_node->showinflatnavigation = true; } This is my version.php <?php $plugin->version = 2020061510.00; $plugin->requires = 2020060900; $plugin->component = 'local_glossary'; $plugin->cron = 0; $plugin->release = '1.0'; $plugin->maturity = MATURITY_STABLE; This is my index.php $PAGE->set_url('/local/glossary/index.php'); $PAGE->set_context(context_system::instance()); $PAGE->requires->jquery(); require_login(); $strpagetitle=get_string('glossary','local_glossary'); $strpageheading=get_string('glossary','local_glossary'); $PAGE->set_title($strpagetitle); $PAGE->set_heading($strpageheading);
The "Site Admin" menu? If so, you should add menus via the /local/glossary/settings.php file There is an answer here - Moodle - how to add navigation menu in left side menu bar For more details see - https://docs.moodle.org/dev/Navigation_API#Settings_navigation
Is There any Way To Change Main Headings of Appboy SDK News page from "News and Alerts" To Something else?
I'm currently using appboy SDK in my app.In that we can show News and Alerts Page with the method "displayNews".In this page it is shows a heading with a name "News and Alerts".But i want replace this heading "News and Alerts" with something else according to my client requirement.Is there any way for this ??? Please respond for my problem. Thanks, Prakash
Mark CEO of Appboy here. Feel free to email me directly as well, mark#appboy.com You can't change just the text, but you can add a custom image that you specify. We have some additional options in the current SDK that you can access in AppboySession.h, you'll see a theming object where you can set a few additional properties. Documentation for what each of the below fields configures is in AppboySession.h. [AppboySession theming].sectionHeaderBackgroundImageName = #"table-section-header.png"; [AppboySession theming].navBackButtonImageName = #"navbar-back-btn.png"; [AppboySession theming].navBackButtonHighlightedImageName = #"navbar-back-btn-pressed.png"; [AppboySession theming].navBackgroundImageName = #"navbar-bg-opaque.png"; [AppboySession theming].navBarButtonBackgroundImageName = #"navbar-bar-btn-item.png"; [AppboySession theming].navTitleImageName = #"appboy_title_image.png"; [AppboySession theming].customBodyFont = #"Roboto-Light"; [AppboySession theming].customTitleFont = #"Roboto-Regular"; [AppboySession theming].customHeaderFont = #"Roboto-Condensed"; [AppboySession theming].customImageCornerRadius = 0.0; [AppboySession theming].customButtonCornerRadius = 0.0; AppboySession theming].shouldResizeNavigationBarInLandscape = NO;
SWT Section setTextClient Putting the Composite in the End of the Title Bar
I am trying to put a Combo Box in the End of Section Title Bar , so that I used setTextClient(Control) method of SWT. I am able to see the component in the section title bar but that is in the extreme end but I don't want any much space between Section title and TitleBar. UI- From the figure above, its clear that AND and OR radio buttons are coming in the end and there is a space between Filter Title and Title Bar. Following is the code snippet I used to achieve the same- Composite toolbar = toolkit.createComposite(section, SWT.WRAP); RowLayout rlayout = new RowLayout(SWT.HORIZONTAL); toolbar.setCursor(Display.getDefault().getSystemCursor(SWT.CURSOR_HAND)); rlayout.marginLeft = 0; rlayout.marginRight = 0; rlayout.spacing = 0; rlayout.marginTop = 0; rlayout.marginBottom = 0; toolbar.setLayout(rlayout); Button A = new Button(toolbar, SWT.RADIO); A.setText("AND"); Button r = new Button(toolbar, SWT.RADIO); r.setText("OR"); section.setTextClient(toolbar); section.setText(type.name()); section.setClient(client); section.setExpanded(true);
FOund the solution, It was actually with the Section Declaration. Section section = toolkit.createSection(compositeRightDownContent, Section.LEFT_TEXT_CLIENT_ALIGNMENT | Section.COMPACT); and it worked
Is it possible to interfere with or circumvent Google's GWT JS code generation?
I'm interested in using a static iframe instead of the dynamically one that is created by default. var frameInjected; function maybeInjectFrame(){ if (!frameInjected) { frameInjected = true; var iframe = $doc.createElement($intern_36); iframe.src = $intern_37; iframe.id = $intern_1; iframe.style.cssText = $intern_38; iframe.tabIndex = -1; $doc.body.appendChild(iframe); $stats && $stats({moduleName:$intern_1, sessionId:$sessionId, subSystem:$intern_2, evtGroup:$intern_8, millis:(new Date).getTime(), type:$intern_39}); iframe.contentWindow.location.replace(base + initialHtml); } }
Yes it is possible to customise GWT's JS generation. Research GWT linkers.