i have query like this :
Dapur Marsfam
how to extract 100021477465459 using imacros
i use this tag pos but still error
TAG POS={{!LOOP}} TYPE=A ATTR=HREF:/?fref=pb EXTRACT=HREF
Try the following code:
TAG POS={{!LOOP}} TYPE=A ATTR=data-hovercard:/ajax/hovercard/user.php?id=* EXTRACT=HTM
SET UID EVAL("'{{!EXTRACT}}'.match(/\/ajax\/hovercard\/user\.php\?id=(\d+)/)[1];")
PROMPT {{UID}}
Related
In order to get pages tagged with a certain tag in AEM query builder, we will do as this doc (https://helpx.adobe.com/experience-manager/6-2/sites/developing/using/querybuilder-api.html)
path=/content/...
type=cq:Page
tagid=marketing:interest/product
tagid.property=jcr:content/cq:tags
But how do we get pages that have the same tag title without using the whole tag's ID or full path above ?
For example
path=/content/...
type=cq:Page
tagtitle=product
tagid.property=jcr:content/cq:tags
You could use something like that:
JCR like:
path=/content/..
type=cq:Page
property=jcr:content/#cq:tags
property.value=%tagname
property.operation=like
This would search for cq:tags property with value that ends with "product".
See more about jcr:like function.
Another possible solution:
Full text search:
path=/content/somesite
type=cq:Page
fulltext.relPath=jcr:content/#cq:tags
fulltext=tagname
See more about jcr:contains function
I'm using the flux:wizard.link to select a page from the page tree in Typo3:
<flux:field.input name="page_id" label="Select page">
<flux:wizard.link activeTab="page"/>
</flux:field.input>
Now, I want to fetch this page and render it in a container.
<v:content.render pageUid="{page_id}" />
But the {page_id} has the t3-link saved instead of the expected pageUID (e.g. t3://page?uid=125)
How do I extract the page's UID?
I could let the user enter just the page-id in an input-field, but I'd rather have her select the page via wizard...
One solution could be to cut the string into two parts:
<v:iterator.explode content="{page_id}" glue="uid=" as="newarray">
{newarray.1}
</v:iterator.explode>
The string page_id is cut at the phrase 'uid=' into two parts, which are saved in the array newarray. With {newarray.1} you can output the second part of the array.
This is most likely not the best solution. It depends on the link which should have always the same structure (containing 'uid=xxx'). But so far it seems to be the only way.
I am trying to get the anchor tag from an anchor element link in the page eg
<a href="/page#reviews">
Is it possible to access the href so I can isolate #reviews and use it elsewhere in my Tritum script?
Thanks!
Yes, it's possible, using a two step process.
First, you can grab the value of the href attribute using the fetch() function.
Then, working on the isolated string, you can use regular expressions to replace all the characters that occur in front of the hash/pound sign (#) with a blank.
Here's an example using the Tritium Tester: http://tester.tritium.io/52503bcbe166ca7affa4944d90aae39808c8cd8e.
Note: This assumes that everything after the first # sign in the href attribute is what you're looking for.
*Note this is for VERSION BUILD=6011206
I'm wondering if anyone knows a script for iMacros that would let you append text into an input field without overwriting anything.
To be more specific, this is for an input box used for notes that I would like to update, without losing any of the previous notes. Can anyone provide this script?
You can try to extract the current value of the text, then set it to a variable then add strings in JavaScript and fill the text field.
var macroCurrent;
macroCurrent ="CODE";
macroCurrent +="TAG POS=1 TYPE=some_type ATTR=CLASS:some_class EXTRACT=TXT"+"\n";
var macroAppend;
macroAppend ="CODE";
macroAppend +="TAG POS=1 TYPE=some_type ATTR=CLASS:some_class CONTENT={{text}}"+"\n";
var text_to_fill="something here";
iimPlay(macrocurrent)
var text=iimGetLastExtract();
text=text+text_to_fill;
iimSet("text",text)
iimPlay(macroAppend)
Maybe quite long time ago asked, but i stumbled from google so i guess for someone could be useful.
There is simpler way, without using javascript
First extract from field. The flow is like IceD posted, but purely Imacros:
extract field and store to var. append your text to the var. don't forget to clean up variables whenever needed. The code:
SET !VAR1 {{!EXTRACT}}
SET !EXTRACT NULL
TAG POS=1 TYPE=SPAN ATTR=ID:result_box EXTRACT=TXTALL // the text which to append
ADD !VAR1 {{!EXTRACT}} // append!
When you need to add text in an input you have to do 2 ..
1 -
recording and the imacros will automatically save and remember this text and add it in the input after the play
2 -
use this code // this is the input of email in facebook
TAG POS=1 TYPE=INPUT:EMAIL FORM=ID:login_form ATTR=ID:email CONTENT=-------
change the ------ with your text
I'd like to implement a tag system to a SugarCRM that has the following characteristics:
User can create any new tag just by writing the new tag into the tag field
Existing tags are suggested for user to choose, in order to avoid having similar tags (e.g. if user tried to enter "sugar" as tag, it should be suggested for them to choose "SugarCRM")
Search by tag should result only records that have that tag, but not records that have that tag as a keyword in title or description fields
All record in all modules should have a tag field
It would be nice if a search by tag could be made throughout all modules
Does anyone know if there is already some implementation for this?
There are several on SugarForge. I've used SugarTAGS from CARRENET (http://www.sugarforge.org/projects/sugartags/) as a starting point before.