How to put settings into groups - iphone

I am having issues with the settings bundle on iPhone. I want to create groups like shown in the image below (Measurement, Data Entry..etc.), however I can't work out how to do this.
I have found the 'Item' type 'Group' and I know how to create the individual settings, I just can't figure out how to put them into a group.

You should just have to specify an Item0 (Title = Measurement, Type = Group) then all the subsequent entries after that (Item1, Item2, etc) will be added under that group. This can all be entered in the plist editor of Xcode.
One thing to note is all items you add will appear under that group until you specify a new group.
Refer to the image attached.

Related

Custom CTypes: Position in type dropdown

Is there a "quick" way to change the sort order of new content elements in the type dropdown? It seems, that new content elements are pushed to the end of the array, so they appear at the end of the list.
Current position (at the end of list):
Should be:
At the end of group "Standard".
Question:
Is is possible to register a content element to a specific group like "Standard" or "Lists" or a new group?
P.S.: Content element registered correctly in TCA/Overrides/tt_content and in Page TS Config for Wizard. Let me know if the code should be relevant, I will add it then.
Try out ExtensionManagementUtility::addTcaSelectItem() and see argument #3 and #4.
If I want to add a custom group at a certain position, I usually loop over $GLOBALS[TCA][tt_content][CType][config][items] and place it in the right position, if the API is not sufficient in some cases.
You can add new groups using ExtensionManagementUtility::addTcaSelectGroup().
For example,
ExtensionManagementUtility::addTcaSelectItemGroup(
'tt_content', 'CType', 'my_new_group', 'Label for my group', 'after:default');
Other possibilities for position are before:some_group_id, bottom, and top.
Then there is an optional fourth array value in the $item parameter for ExtensionManagementUtility::addTcaSelectItem() which allows you to specify which group you are adding to.
The fourth and fifth parameters to addTcaSelectItem() allow you to specify a position relative to another item in the drop-down.
ExtensionManagementUtility::addTcaSelectItem(
'tt_content', 'CType',
['Label for my item', 'my_new_item', 'my-item-icon', 'my_new_group'],
'some_other_item', 'after');
The "Standard" group is called default. If you reuse an existing group ID, addTcaSelectItemGroup() will return without changing anything.

Group AEM (6.2) component configurations

I'm currently building a component that has TouchUI configuration properties separated with three tabs (Standard, CASL, GDPR). Each tab has the same set of options available and my current config names are similar to the following:
./standardMarketingText
./standardThirdpartyText
./gdprMarketingText
./gdprThirdpartyText
./caslMarketingText
./caslThirdpartyText
(There are several other options for standard,gdpr,casl but I left them out for brevity)
While this works, I'm hoping to instead store the values in the JCR as a JSON node per category. For example:
casl = {"marketingText"="m test", "thirdpartyText"="tp test"}
gdpr = {"marketingText"="gdpr m test", "thirdpartyText"="gdpr tp test"}
This way I can load all "casl" (or others) options at once when I need them (there isn't a case where I would only load one "casl" option)
I have attempted using granite/ui/components/foundation/form/multifield however, it asks to "Add field". I only want one set of each, and not provide the ability to add another set of properties under each tab. Is there a way to accomplish this without overriding the multifield resourceType?
There are multiple ways to achieve what you are looking at, I would look at the reusability as there are similar named properties for different categories (in your case tabs). To group them you could do that at node level by correctly defining the name property for each tab.
For above provided values, you could do something like -
./standard/marketingText
./standard/thirdpartyText
./gdpr/marketingText
./gdpr/thirdpartyText
./casl/marketingText
./casl/thirdpartyText
Your each tab stores the properties in named node (standard, gdpr, casl). In addition you could have a single SlingModel/WCMUsePojo that can adapt to these nodes to provide the Pojo with accessor to property values.
As far as getting JSON is concerned, your SlingModel or WCMUsePojo can provide a method to return JSON based string for the values.

how to filter asset and meta-data property values using query builder in aem

type:nt:unstructured
path=/content/dam/en_us
node=jcr:content
group.1_property=Cmg_name
group.1_property.operation=exists
group.1_property.value=Web Standard
I have assets like pdf and images inside \content\dam\en-us and also i have meta data for respective assets .i want to get pdf or image by asset metadata property values .but i am notable to get exact output.I have asset c012666.png inside jcr:cotent inside metadata.now, if give property value i have to get that pdf file.so, pls can any one help???
if you want to list the properties of a hit you have to use p.hits = full. And if you want to list all it's children you have to use the p.nodedepth = AMOUNT_OF_SUBLEVELS.
For example the query http://localhost:4502/bin/querybuilder.json?p.hits=full&property=jcr%3atitle&property.value=Default%20Design&p.nodedepth=2
will list the properties of the the node called "Default design" and also list the children of it
Hope that this suits your needs
Here's some documentations https://hashimkhan.in/2015/12/02/query-builder/

How to find a particular Sublayout assigned to which content item in Sitecore.?

I have one Sublayout called "A" and i have more number of Content items. I just wanted to find out which content item that "A" Sublayout assigned to. How can i do this.?
You can select chosen sublayout in your content tree, and select Links option from the Navigate tab in ribbon:
You will see all the items which links to your sublayout.
Be aware, that if you see any __Standard Values item in that list, your sublayout may be also used by items which use that template.
Screenshot is from Sitecore 8, but it works the same in Sitecore 7.2.

Drupal 7 Views add list of authors as exposed filter

I have a view with a number of exposed filters that I want to add an exposed filter for the author, so that the user can limit a list of nodes by the creator of the node (in addition to a number of other filters).
What I've done so far:
I've added an exposed filter of the author and set the operator to "contains any word" (so the usernames could just be a + separated list)
This is by default a text field, but I would like it to appear as a list of checkboxes (similar to taxonomy)
Using hook_form_alter I've added the following code to change it to a list of checkboxes (harcoded for now but I'll fix shortly)
$form['name']['#type'] = "select";
$form['name']['#size'] = "3";
$form['name']['#multiple'] = TRUE;
$form['name']['#options'] = array(
'admin' => 'admin',
'tyler' => 'tyler',
'test' => 'test'
);
$form['name']['#theme'] = "select_as_checkboxes";
When this form is submitted it changes the url to &name[]=tyler&name[]=admin, what I would like to do is combine these with a foreach so that url would look like &name=tyler+admin, but I'm really not sure how exactly to achieve this in the API.
I tried adding a function to $form['#submit'], and changing the value of the field in there, but that still didn't change the output.
Any advice?
Quick Edit
For the time being I have switched this to use radios instead of checkboxes, which solves the issue that I was having.
To break down the issue I was having a bit further, the names of the checkboxes where getting set to name[]= instead of name= because of the multiple inputs. The name filter in Views does not know how to handle multiple values for the name field.
For now I will see if this flies with the client, but if anybody has an answer for the original question of adding checkboxes for all authors to an exposed filter that would be awesome!
Use Better Exposed Filters module.