Add some list to feuser on back end - typo3

feuser edit page screenshooteScreenshote
Hello, everybody. Can somebody tell me how I can add some list to feuser page on back end? Like it shown on screenshot(list with users). I want to add similar tab with user comments to feuser edit page on back end. So I want to show so user comments. Don't advice other variants please, tell me please how to do it please, if is it possible.
I want to add my table to user edit page, see screenshot, and show rows which relate to this user
TYPO3 7.6.16

You can add any table to Web module page view, via ext_localconf.php
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['cms']['db_layout']['addTables']['tx_myext_domain_model_name'] = [
'default' => [
'MENU' => 'LLL:EXT:tx_myext/Resources/Private/Language/locallang_db.xlf:menuDefault',
'fList' => 'title,description,image',
'icon' => TRUE
]
];
Clear cache, and your done. Adapt listed fields (fList) depend on your needs.

Related

Suite CRM - Add custom field in contacts subpanel of accounts detail page

I wanted to create a 'Call Button' in the contacts sub panel of accounts details page. I could create 'Call button' in the contacts list page with logic hooks. But the same way of implementation is not working in the sub panel. (This button has no connection with the DB, it just trigger a JavaScript function when click on it.). Please help me on this.
Thanks in advance.
Take a look at modules/Contacts/metadata/subpanels/ForAccounts.php.
Why "ForAccounts"? It simply means that this Contacts sub panel will be loaded for the Accounts module. So that you can have different functionality for each module. default is simply the default sub panel used when a calling module is not specified. This is due to the way SuiteCRM handles relationships. You can specify in the relationship which subpanel should be displayed.
Notice the "top_buttons" array. These are the buttons at the top of the sub panel. The widget_class corresponds to the widgets in include/generic/SugarWidgets. Eg SubPanelTopCreateButton is actually SugarWidgetSubPanelTopCreateButton.
'top_buttons' => array(
array('widget_class' => 'SubPanelTopCreateButton'),
array('widget_class' => 'SubPanelTopSelectButton', 'popup_module' => 'Contacts'),
),
If you wish to add your own button you must first create your own widget and then add it to the top_buttons array.
The sub panels use the following to generate the buttons
include/generic/LayoutManager.php
include/SubPanel/SubPanel.php:120
include/SubPanel/SubPanelTiles.php:426
You may have to register your widget with the layout manager.
SugarWidgets are a core feature and currently will not load from the custom directory.
Take a look at SugarWidgetSubPanelTopCreateTaskButton.php as a reference guide.

Wordpress Check-Boxes Filter Custom Category PHP

I am currently working on a website..
I need the following functionality:
I have several categories for colors and photos that relate to these categories
category examples:
red
green
blue
orange
purple
yellow
I am trying to make a form on my wordpress HOME page that will allow me to check a category and then filter my current displayed posts by that category.
I would like to remain on the home page during this process
I would also like to figure out how to eliminate the "submit" button and have the form submit every time a box is checked or un-checked.
I am using the latest version of wordpress and the twentytwelve theme
So far this function will filter post by category:
function filter_color( $query ) {
$query->set( 'cat', '2' );
}
add_action( 'pre_get_posts', 'filter_color' );
I am just not sure how to create the checkboxes that will trigger the filter. I do not know where my form should "submit" to (index.php?) and I'm not sure how to get the submitted data to show up. Also, I would like ALL boxes checked by default and the form to save the data as color options are un-checked or re-checked.
Please, any links to good reference materials and any help with this would be greatly appreciated as I have been stumped currently.
Thanks in advance!

Customize form to make it multipaged

A module I am using provides a single paged configuration form. But for my additional configuration purposes, I am attempting to make it multipaged with one additional page for collecting extra configuration data.
I am implementing hook_form_alter and I included the following code:
$form['next'] = array(
'#type' => 'button',
'#value' => t('next'),
'#page callback' => array('custom_ucreate_profile2'),
'#button_type' => 'button',
);
I have also created the custom_ucreate_profile2 menu link. The configuration page at the end of that link works fine. But the problem is when I click on the "next" button, the current page just reloads and do not navigate to custom_ucreate_profile2.
Instead of rolling your own solution, which can be hard to maintain as time goes on, you could try the field_group module. There's even a video showing how to use the multipage features.

drupal 7 popup window (or how to show links disabled)

I'm just starting drupal and I have a question. I have a main menu but some links/sections have no content yet, and I want to show a pop up window with a 'coming soon' legend when the user clicks it. However the only module that might help does not work with D7 yet and I don't know if there's a way to do it manually.
If it weren't possible, is there a way to have these links without content still appear but have them disabled so users can't click them?
I haven't tested it but this might help you:
drupal_add_js('window.open(url, "name", "height=512, width=512").focus();',
array('type' => 'inline', 'scope' => 'footer', 'weight' => 5));
http://api.drupal.org/api/drupal/includes--common.inc/function/drupal_add_js/7

Changing Title of home page in Joomla

I am totally new to Joomla. I am trying to help a friend whose ISP has stopped support (for some internal reasons). We need to change the title of the home page.
1) The first place i made a change was in the 'Front Page Manager'. I changed the 'Title' column. The 'Show Title' parameter on this page is set to 'Global'. Yet the new title does not appear.
2) I then downloaded the entire site , consisting of 10,000 files and searched for the old title in all the files. I found the old title in one file which seemed to be used for SEO pruposes , since it had a whole lot of companies and their titles. I uploaded this file. No effect.
3) I then browsed through the database (MySQL) and changed old titles found in MetaKey and MetaDescription columns to new title. I think i checked all tables (almost 100 odd tables). No effect.
4) I found the old title in the 'Top Menu' item and changed it too.
I know this is a bit ambiguous but how could i troubleshoot the source of this title which does not get changed ?
Thanks,
Chak
Titles in Joomla come from several places. As Legycsapo said, the first place you should look is the default menu item. In the Parameters (System) the Page Title should override any other setting unless you have an extension that sets the page title. The Show Page Title option determines if the title shows up in the content, it does not affect the page title.
Try to change it in the menu options. In the mainmenu, click on the "Home" link, or whatever you write for Frontpage, and there are options in the right. The last one is the parameters, system, there is a "Website title" input box. Try there !
You need to change the home page title in the Control Panel Configuration.
In the Site tab you have the Site Name which is what will be written in the page title.
Another solution is, if you have SEF urls enabled, joomla has a native plugin called SEOsimple. Look under Plugin Manager, click on it and change the title to either disable so that it takes the title by default from global configuration or your custom one.