Kapow Robomaker - Set Named Tag - tags

i'm a novice on kapow robomaker and maybe someone can help me with named tags.
How shall I configurate the "Set Named Tag" in kapow robomaker if I want to add the specifications "Geschlecht" and "Material Typ" for the frame ?
html code for the named tag

Right click on the tag -> Other -> Set as Named Tag
and change the Finder to locate
Tag Path: .*.div
Tag Pattern: Geschlecht
Match against: Text only
Same for the other one.
It is somewhat more complicated if you mean to name the parent div tag.

Related

Scope open tag only in VSCode/Textmate HTML Grammar

I'm trying to edit a theme to style the opening HTML tags, without using the same style on closing tag. EG make italic like this:
<***div*** class="my-divvy">Here is <***strong***>strong</**strong**> text tags in HTML.</**div**>
There is entity.name.tag.html scope, but that will capture both the open (<div>) AND closing (</div>) tags, which I do not want. There is also meta.tag.structure.div.start.html entity.name.tag, replacing div for every HTML tag, but that would make a long array which I am trying to avoid.
How can I edit the language definition (html.tmLanguage.json file) to provide an open-tag-only scope so I can add a simple rule to the theme please?
Bonus: similar issue with JSX; who to scope only the open tags.
If you use the Developer: Inspect TM Scopes command, you will see that there is a separate scope for start and end tags, like:
meta.tag.structure.div.start.html
meta.tag.structure.div.end.html
Unfortunately, there doesn't appear to be any generic start and end tag scope - you have to include the element name - like div or span in each one. So, this works for the div's and span's ending tags in the settings.json file:
"scope": "meta.tag.structure.div.start.html entity.name.tag, meta.tag.inline.span.start.html entity.name.tag",
but you need an entry like "meta.tag.structure.div.start.html entity.name.tag" for each tag name you want to support - swapping div out each time.
And I had to include entity.name.tag within each tag's scope to get it to work.
Try this in your theme file:
"scope": [
"meta.tag.structure.div.start.html entity.name.tag",
"meta.tag.inline.span.start.html entity.name.tag",
"etc.",
"etc.",
]

Set root path for tags xtype in aem

Am using xtype tag, where I have to select tags in the dialog. Here I need to set the tags path so I can use selective tags from the specified path.
Currently it is defaulted to /etc/tags and showing all the tags.
I can use namespaces but it works with namespaces that you create directly under /etc/tags (like : /etc/tags/maintag)
Is there any way where I can set the root path like: /etc/tags/maintag/subtag?
If it's the tags xtype that you're using, you should be looking at the docs for TagInputField
What you're looking for is the tagsBasePath property. Setting it to /etc/tags/maintag/subtag should do the trick.

How to auto-update matching html/xml tag in Code Mirror

I really like how Visual Studio html editor updates the matching tag. Example:
<h2>Header</h2>
If we replace <h2> opening tag with <h3>, then the closing tag should change automatically to </h3>. This should happen as we type.
I'm trying to implement this on my own, but no luck so far. I thought that matchtags addon would be a good starting point, but it stops working if tag names do not match.
Also, I noticed that xml mode marks closing tag as error on tag name mismatch, but I'm not sure how to use this to update the closing tags.
I would appreciate any help from more experienced CodeMirror users.
Thanks
So once the edit has been done, you no longer have the information needed to find the matching tag (which is why the matchtag addon can't help anymore). A good solution might be to track the current matching tag when editing starts (when the cursor is in a tag name) by using the CodeMirror.findMatchingTag function exported by the addon/fold/xml-fold.js file. Then, on "change" events that look like local editing inside the tag name (i.e. their start and end are inside the tag name), immediately follow up by modifying the matching tag.
add matchtags.js, xml-fold.js
config : matchTags: {bothTags: true}

TYPO3 extension: how to find certain TS setting

I found in typo3 admin side(/typo3), you can have two ways to set up TS,
you can set up through template->root, I think TS here will affect the whole site.
you can set up through template->certain page, it will only affect this page.
So my question is:
If I want to find where(which page) has TS setting such as : code = LIST, how could I do?
Use Web > Template module it has tools, you can for an example use Template Analyzer for the search
Try querying the database in phpMyAdmin or similar. The following looks in Template Setup:
SELECT pid, config, constants
FROM sys_template
WHERE config LIKE '%code = LIST%'
Replace config with constants to look in Template Constants. pid is the page ID.
If it is not set in the TypoScript, it perhaps has been set in the plugin itself. Just check the plugin content element itself.
In the Template module, go to the page where the setting is in effect.
Use the TSOB (Typo Script Object Browser) to search for "list":
This must show you all TS for this page that contains "list".
If you don't see the setting you can run a cmd/ctrl-F Search over the entire results.
You would have to search for "[code] = LIST".
Which will lead you to the following entry:
Hovering over the label will produce the above tooltip. Copy the line number.
Now change to the Template Analyzer. Here, you can click through all cascading templates and search for the line number:
This is definitely the line that sets that value.
From the "Template hierarchy" tree you will easily find the template that contains the setting.

How to control the visibility of objectContribution in popupMenus?

Hi guys,I had create a popupmenu with code above and this menu would be only showed if the folder's name matched "AAA".
Here is the problem:if there is a folder which is also named "AAA" after another folder,this menu would be showed,too.Actually we just wanna our popupmenu be showed in specific main folders,not their sub-folders.So how can i do this?
Define an additional "visibility" tag for that contribution and then use a PropertyTester inside the visibility tag to check the name in more detail.