Background Image in Google Email Markup - google-schemas

How does Google select the background image from the Reservations email markup? Does it randomly pick an image or the airline company manually set an image for each country? Ex: http://prntscr.com/6ufrni
The code block looks like this:
<div jsaction="__idl_action" class="oh ci pD" style="background-image: url(https://ci4.googleusercontent.com/proxy/d1XpdToqEkmyGy-PqMuMHUtuCVVJ3oAFmPnssyZOBi3ZXGGvxUlVQy9f50LEYV8MvE91nDCSIle9S0NTReIIg_Jbls696ys0KvsG=w620-h360), url(https://ssl.gstatic.com/bt/C3341AA7A1A076756462EE2E5CD71C11/1x/il_flights_conversation_r3.jpg);"

There is no image property for Flight reservation markup, so we cannot set any image. Google puts default image for the back ground image.
After testing the Flight Reservation schema, picture is determined by the destination of your flight. For example, when I set SFO as my destination, I see the San Francisco Bay Bridge as the default picture. When I set JFK NY as my destination, I see New York as the default picture.

Related

How to set Custom Variable tag in Google Analytics w/ iOS

I am trying to add a custom variable to Google Analytics using the iOS Swift library:
let tracker = GAI.sharedInstance().defaultTracker
tracker.set("custom_field" value: "my_value")
Here's what I'm trying to create a filter on:
https://www.youtube.com/watch?v=4WbOtcwgQqE
How do I properly make that a custom variable so I can add a filter in Google Analytics?
They're no longer called custom variables, but custom dimensions (CD).
To configure the CD you've specified in the video:
Go to your GA account, go into Admin, under the property that you'd like to create this CD, click on "Custom Definitions" and click on "Custom Dimensions" Like
When you're in, click on "NEW CUSTOM DIMENSION" in red. Name it whatever you want, in this case "userRoles", you can name it "User Roles" as well. Make sure for "Scope" select "User" to learn more about scope: https://support.google.com/analytics/answer/2709828?hl=en&ref_topic=2709827#scope
Save and note the "Index" number for the newly created CD. This is how you reference it in your code, not by "userRole" or "User Role" most likely it will be something like "1" or "customDimension1", for the value you'd just set it to be whatever you want to use to identify the different user roles.

Does Google AdWords support automatically appending a different query string to a campaign's destination URLs for ads and sitelinks?

I have an existing Google ad campaign that geotargets a particular region. The destination URL of all the ads and sitelinks have the same query string appended to it ("area=astoria").
I now need to copy this campaign to 50 other campaigns, each of which will target a different region. Each campaign will have a different value for the area key, so for instance one campaign might use "area=manhattan" and another "area=bronx".
The campaign I'm cloning has many ads and sitelinks, all of which need to have the query string changed. I know how to manually change the destination urls, but it's an enormous amount of busy work...
As a workaround, is there a way to automatically append a different query string to all the destination URLs for ads and sitelinks in a particular campaign in Google AdWords?
To answer my own question, the answer is to use a Tracking Template on the Campaign level.
To do this, click into the Campaign you want to edit and click on the Settings tab. Then open the "Campaign URL options (advanced)" section and change the Tracking URL to something like this:
{lpurl}?area=whatever
You can click the TEST button to make sure your ads work. Your sitelinks should also have the same query string appended to it. (Note that a Campaign-level Tracking Template can be overridden at the Adgroup-, Ad-, or Sitelink-level, so those more specific Tracking Templates would have to not be used for a Campaign-level Tracking Template to be used.)

Can I display a message when a user wants to start a parameterized build?

I want to display a message to the user when he is about to start a Jenkins build job.
I added the message to the build job description, but the user could also start the job from a view list (where the description is not visible).
Can I add a message to somewhere in the parameters page?
I could use the description field for a parameter, but that's more like a hack, a more prominent position for the message would be good.
Why is the description field a hack? That shows up in the most prominent position - just under the title.
I would just keep it simple and display your message there

abas-ERP: Command in user menu for specific screen priority

I need a command which calls a screen in a specific priority.
In detail:
I'd like to offer a menu entry to our users were they can simple change the work day calendar in employee data sets and nothing else. I know the correct way would be creating a lower prio screen and grand the user such prio for accessing employees. But these users are allowed to change more than the work day calendar! I just like to reduce the fields in screen for a more simple recording and maintaining of absence from work.
So they should be able to view and change the normal employee screen but with a special command (from command view) the should open the same employee but with reduced number of field. Simple: separated screens for different use cases.
I believe I have to solve it by providing a service program in infosystem or similar but I'd like to ask you for a better way of solution before.
In this case you can work with different screen context modes.
Please keep in mind, that screen modes works just within new screen descriptions.
(almost) Every element in the screen editor has an option called visibility scope (Sichbarkeit -> Geltungsbereich)
For example you could define a scope called EXTENDEDPERMISSION.
Then the element would be only visible, when you set the screencontext in FO to "EXTENDEDPERMISION"
..: set one screen context
.formula P|maskkontextfop = "EXTENDEDPERMISION"
..
..: set some screen contexts
.formula P|maskkontextfop = "VIEW1 VIEW2 LIGHTVIEW"
You can set the screen context in every event you'd like to.
For more infos you can search for "maskkontextfop" in the online help.
But keep in mind, that the user still can access all variables over the dynamic selection as long as you grant them the permission to these fields!
So if you really want, that a user (under no circumstances) gains access to some fields, you'll have to configure the right permissions.

How do I make a field required if another field has content in Expressionengine

I have a channel fieldgroup called blog
This fieldgroup has 3 fields
{body}: Textarea, required field
{image}: file field, optional field
{image_credit}: text field, optional field, that turns into a required field, when {image} has content.
Rationale behind this: An entry can be text only, but if an image is published it has to have credits.
As far as I´m aware of, this can´t be done natively with EE and I searched Devot-ee for an add-on, but to no avail.
I´d like to have this fixed on the field level. Ohterwise I have to write some code in the template, that will check for if {image_credit}=="" don´t publish any {image}. But this will lead to confusion, as why an image, that is shown in the CP will not be published...
I don't know of any way to do this natively or with an addon, but an addon may be out there.
I'd suggest writing your own jQuery validation. You can pop it into the instructions for one of the fields on that channel form. Should do the trick nicely
If you have Pixel&Tonic's Matrix add-on installed, you could create a new Matrix field in this Channel's field group.
The Matrix field has zero rows by default, and contains two field columns within:
Image field for the pic (required)
Text field for caption (required)
So, if there's an image with this entry, the client clicks the plus icon to create a row, and must fill in both the image and caption. If there's no image, they leave it as is.
Pixel & Tonic also have this addon which enables you to add your own custom js to the control panel. So you could do a check to see if the image field has content and then prevent the form from being submitted if the caption field is empty.

Resources