Is it possible to make use of the Fragments API in BASIC4Android? If so how?
Fragments are not really needed in Basic4android. A regular Panel view will give you the same result.
Related
I’m using the TagManagementFeatureModule in version 3.2.2. I was wondering if there is a recommended/documented OOTB way to use Spartacus events (CartAddEntrySuccessEvent, CartRemoveEntrySuccessEvent, CartUpdateEntrySuccessEvent) for GTM.
I don’t think I see that the dataLayer pushed entry contains the event key, which is used by GTM triggers. Same case for the NavigationEvent, is there an OOTB way to use it to capture Page Views?
Edit: Currently I created my own module and extending the GtmCollectorService, where I implement the map function to add this event key based on event.constructor.name, but I was assuming there was a default way to do it with the GtmModule.
Yes, you're right, there is no OOTB way to do this. The reason is simple - it all depends on the TMS solution being used, and on the specific clients needs.
That being said, your approach to override the GtmCollectorService and implement map is correct. However, instead of event.constructor.name I suggest to use the static type property that's present on each of the event classes.
I want my generated Firebase dynamic links be usable just for one time.
After the first person used the link, we need to prevent the second use of that specific dynamic link.
Is there such a feature build in Firebase dynamic link ? or I should implement it manually inside my app
No, Dynamics Links are designed to be useful to anyone who has the link. There is no way to limit their usage. That would be something you'd have to implement yourself with your own backend.
So my question is can I use a bunch of steps defined in another scenario that was used in a different feature file?
eg: I have a feature file that helps create some pages on the website. Now i want a different scenario in a different feature file that will create the pages and also add some other steps to it. In this case, I want to create a page, and this triggers a notification to a particular user, and I want to work with the notifications. But cannot do so without triggering a page creation action by the user. It is just a bunch of 5 steps. but i am trying to reduce steps as much as possible to keep it simple.
Of the top of my head, maybe use tags and then use the tags to combine two scenarios. but i am not sure if we can do that
So i want to know if there is a way of code reuse in this case. And if so, HOW?
Thank you
You could define a new step like ‘I create a page’, and under the hood reuse the steps from other contexts as explained here:
https://behat-docs.readthedocs.io/en/mvp1.0/cookbooks/gathering_contexts_when_using_multiple_contexts.html
i need to create a block View with a search box attach to the header in order to search nodes for one specific content type. I don't know how to achieve this, so i ask for your help. Something like the attached photo.
I'm not exactly sure here, but it sounds to me like you want to:
Create a view;
add a "filter" which limits the view to only your desired content type;
add an "argument," and then expose this argument, for either title, body, or one of your text fields.
Unfortunately:
This alone will not search the whole node. If most of your content is in body, this would probably be a good way to do it. But, for example, if for some reason you have a title like "Bicycles in Timbuktu" with a body that does not contain the word "Timbuktu" - were your users to search for Timbuktu, this item would not appear. That said, it's probably a rather rare case, and if you are simply aiming for happy users, and not rigorous perfection, this will likely be enough.
That said, Kniganapolke's suggestion of checking out Custom Search is excellent. The advice here is more applicable if you want to do this as you've designated and using the power you have with Views (and the other possibilities they offer), rather than a more dedicated-type module. If you don't have other specifications which require you to use Views, I'd guess that Custom Search will likely be the better solution.
Have you tried Custom Search module?
If anybody is interested, i have edited the header block view and load a custom_search_block inside it.
Thanks anyway
create a view with the content you want and then filter it by content. Expose the filter.
http://beeznest.wordpress.com/2011/11/01/create-a-view-to-search-on-content-title-in-7-steps-in-drupal-7/
I'm creating an inbox system for my website which allows basic communication between users. I'm fetching the results with jquery calling a webservice.
Then I'm using a jquery template engine to render the results to the screen. So far this all works good. but now I want to add some click functions on certain parts of inbox messages. For example I want the title of the message to be clickable so it will expand/collapse the fulltext which is hidden in a div beneath it.
But I can't seem to use the jquery selectors on this dynamic json result. It works when I put the function in the href tag itself but I don't really want to. I also tried adding the function after the success function but no luck either. Is it possible at all to use selectors with a template engine?
I hope I made myself clear otherwise feel free to ask more information. Thank you very much
Kind regards,
Mark
Have you tried jquery .live option? http://api.jquery.com/live/
I'm sorry, you'll see it happens all the time, when something goes wrong and I ask a question the minute after it it solves itselves. It is indeed possible to use the jquery selector on dynamic elements. Just make sure u put it after the template processing and in the ajax success function.
Thanks.
Are you trying to select the json that is returned from the webservice or are you trying to use the jquery selector to find an element that you added previously on to the page?