basically what i want to do is the move my pages "Feature Article" from View tab to Browse Tab but i got no idea to do it although i already google for whole Day. what should i do now inorder to move it to Browse Tab?
<asp:Content ContentPlaceHolderId="PlaceHolderAdditionalPageHead" runat="server">
<meta name="GENERATOR" content="Microsoft SharePoint" />
<meta name="ProgId" content="SharePoint.WebPartPage.Document" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="CollaborationServer" content="SharePoint Team Web Site" />
<script type="text/javascript">
the code above is part of my code but i not sure this is helpful or not, or maybe i dont really need to look the code at all
Related
I develop ASP.Net Core 2.1 RazorPages web application. I want parametrize the the value of asp-page tag helper.
So I use following code in cshtml file. There is a del_link local variable defined in begining of file. This variable is late used as parameter for second asp-page tag helper.
#page
#{
string del_link = "/UnloadDelete";
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body>
<div>
<a asp-page="/UnloadEdit">Details</a>
<a asp-page=#del_link>Delete</a>
</div>
</body>
</html>
ASP.Net Razor generate following HTML code.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body>
<div>
Details
Delete
</div>
</body>
</html>
As you can see in HTML code, asp-page="/UnloadEdit" is properly rendered to HTML code, but asp-page=#del not, it is rendered to <a href="">. How I can use local variable for asp-page tag helper in Razor Pages?
Thanks in advance.
You must pass a page name to the asp-page attribute. So what you are trying to do is not supported. If #del_link renders a relative URL, you can pass that to the href attribute instead. There may be other suitable solutions, depending on why you feel the need to use #del_link at all.
For most keywords google search results point to main page of my website (like example.com). But I would prefer google to point to pages with stuff specific for the keyword (i.e. keyword "product1" pointed to example.com/product1.html). Pages for specific products are well optimized for the adequate keywords, but results point to main page.
Is it any way to change that?
UPDATE:
My site is about window blinds. I've got main page that contains a general information (i.e. example.com) and many other pages that contain specific information (i.e. example.com/roller_blimds.html). If someone types "roller blinds" in google search box at this moment in results there is link to main page (example.com), and I would prefer it was a link to file connected to rollers: example.com/roller_blinds.html.
I'm not sure if i got your point correctly, but here's some help.
First of all i would like you to try search for Paraleb on google.
This is my own website, and here's the search result
http://i.stack.imgur.com/obXGL.png
As you can see it has the main domain/directory paraleb.com listed at the top, and below it there are subpages, like About, Clients, Contact us, Work.
What i did here is not that hard, i just used metatags on all pages, but make sure to use different keywords and description for each page.
(ex: in the html code of the contact us/or your product's page, but the meta description, a breif description about your product, its title, and the relevant keywords).
Helpful meta-tags i'm using:
<title>Paraleb | Creative Digital Agency</title>
<meta name="description" content="Creative Digital Agency">
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="#paraleb">
<meta name="twitter:title" content="Home">
<meta name="twitter:description" content="Creative Digital Agency">
<meta name="twitter:creator" content="#Paraleb">
<meta name="twitter:image" content="/static/img/social/twitter_360.png">
<meta property="og:title" content="Home" />
<meta property="og:type" content="article" />
<meta property="og:url" content="" />
<meta property="og:image" content="/static/img/social/facebook_og_720.png" />
<meta property="og:description" content="Creative Digital Agency" />
<meta property="og:site_name" content="Paraleb" />
My Facebook sharing plugin does not work right for this blog post page at https://www.tradesumo.com/Home/LearningsFromLaunchingAStartupWhileAtUniversity at the bottom of the page under "Like our blog post? Share this with your friends!" When I try to share it, it loads up our error page (you will see lots of pandas) instead of the specified image and the right title and description.
I don't understand why this isn't working coz the code we used is pretty similar to what I used for https://www.tradesumo.com/Home/Blog where the FB social sharing icon is working fine, and propagating the right things from the meta tags of that view.
Just FYI, the following are the meta tags and code for the FB sharing plugin respectively, for the blog and the blog post:
BLOG:
#section AdditionalMeta
{
<meta name="robots" content="noindex,nofollow"/>
<meta property="og:type" content="website" />
<meta property="og:title" content="TradeSumo | Blog" />
<meta property="og:image" content="~/Scripts/Landing/assets/img/custom/meta.jpg" />
<meta property="og:url" content="https://www.tradesumo.com/Home/Blog" />
<meta property="og:description" content="Latest news, updates and events about TradeSumo." />
}
<li><img src="~/Scripts/Landing/assets/img/flat_web_icon_set/color/Facebook.png"></li>
BLOG POST:
#section AdditionalMeta
{
<meta name="robots" content="noindex,nofollow"/>
<meta property="og:type" content="website" />
<meta property="og:title" content="TradeSumo | Learnings From Launching A Startup While At University" />
<meta property="og:image" content="~/Scripts/Landing/assets/img/blog/startupweekend1.jpg" />
<meta property="og:url" content="https://www.tradesumo.com/Home/LearningsFromLaunchingAStartupWhileAtUniversity" />
<meta property="og:description" content="People always ask me what launching a tech startup while studying or working is like. It is definitely possible as long as you have a committed team with a united vision." />
}
<li><img src="~/Scripts/Landing/assets/img/flat_web_icon_set/color/Facebook.png"></li>
Would be great if someone could tell me why it is wrong.... I also tried debugging the plugin through the URL at https://developers.facebook.com/tools/debug/og/object?q=https%3A%2F%2Fwww.tradesumo.com%2FHome%2FLearningsFromLaunchingAStartupWhileAtUniversity but dunno what is the problem!
I discovered that the problem was with the image meta tag. It needs to have the full URL:
<meta property="og:image" content="https://www.tradesumo.com/Scripts/Landing/assets/img/blog/startupweekend1.jpg" />
rather than this:
<meta property="og:image" content="~/Scripts/Landing/assets/img/blog/startupweekend1.jpg" />
Somehow the plugin cannot find the image and returns an error page coz of the image. It is weird that I have to treat the blog and blog post views differently for the image meta tag, coz I used the latter meta tag for the blog view and it works okay, and both the blog and the blog post views reside within the same Home Controller, so by right, they SHOULD work the same way. Anyway, problem fixed!
I'm wondering how if I can check the head of a HTML-document for existence of a particular string with cucumber.
Actually I'm interested in specific robots directives, so I launch in the first of my steps a browser (atm Firefox) and open a local site.
In the second step I check the entire html-code for a string:
#b.html.include?('<meta name="robots" content="noindex, follow">').should == true
And see my scenario failing at the second step. (expected true, got false)
Surprisingly a check for an partial string is succesfull:
#b.html.include?('name="robots"').should == true
But as soon as I check for
#b.html.include?('<meta name="robots"').should == true
or just
#b.html.include?('a name="robots"').should == true
I get a false again.
So, I thought the presence of whitespaces causes this behavior.
A quick check with only a bonus whitespace
#b.html.include?(' name="robots"').should == true
and the testscenario is green.
A search for a whole sentence in the document body
#b.html.include?('<h1>Yarr, that "is" supeb!</h1>').should == true
is also passing.
I've also tried to move the h1 heading into the head of the document (test still passing) and the meta-tag into the body (test is still failing)
I'm using cucumber 1.2.0 and ruby 1.9.3p0 with Firefox driven via watir-webdriver and wondering if I'm doing something wrong.
Actually I have just one feature with this simple steps and a minimal html-site with meta-data and this one "Yarr" sentence. No rails, no rake. OS X 10.7
Please tell me if I should provide more information… I'm tinkering with this stuff for hours.
Edit1: added the HTML of the site I check.
<!DOCTYPE html>
<html>
<head>
<title>Home</title>
<meta charset="utf-8">
<link rel="stylesheet" media="screen" href="/public/stylesheets/main.css">
<link rel="shortcut icon" type="image/png" href="/public/images/favicon.png">
<script src="/public/javascripts/jquery-1.6.4.min.js" type="text/javascript" charset="utf-8"></script>
<link rel="canonical" href="google.de">
<meta name="robots" content="noindex, follow">
</head>
<body>
<h1>Yarr, that "ist" superb!</h1>
</body>
</html>
The Problem:
It seems that the properties of HTML tags will not always be in the order that they were written. See this:
puts #b.html
#=> <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<title>Home</title>
<meta charset="utf-8" />
<link href="/public/stylesheets/main.css" media="screen" rel="stylesheet" />
<link href="/public/images/favicon.png" type="image/png" rel="shortcut icon" />
<script charset="utf-8" type="text/javascript" src="/public/javascripts/jquery-1.6.4.min.js"></script>
<link href="google.de" rel="canonical" />
<meta content="noindex, follow" name="robots" />
</head>
<body>
<h1>Yarr, that "ist" superb!</h1>
</body></html>
Notice that the <meta content="noindex, follow" name="robots" /> is not the same order as your HTML file. This explains why your tests are giving the results they are.
Suggest Solution:
Assuming that you only care that the particular meta tag appears in the header (and not the particular order the tag is written), I would suggest using:
b.head.meta(:name => 'robots', :content => 'noindex, follow').exists?.should == true
I have a page that Google Chrome insists on thinking is in French.
Here's a snapshot of it:
http://yootles.com/outbox/overcleverchrome.html
Note that I'm including a meta http-equiv tag to tell it that it's in fact in English:
<meta http-equiv="Content-language" content="en">
But it doesn't help.
Is there anything else I can do to prevent this?
Google Chrome currently requires several tags to make an (HTML5) document opt out of translation. Before doing this, you should be sure that you know your audience's language, as otherwise it will prevent foreign sites from properly translating your site.
The relevant tags are:
<meta charset="UTF-8" />
<meta name="google" content="notranslate" />
<meta http-equiv="Content-Language" content="en_US" />
And here is a full example:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="google" content="notranslate" />
<meta http-equiv="Content-Language" content="en_US" />
</head>
<body>
Dies ist ein Test Deutsch
</body>
I found a post which might help you: http://www.blogsdna.com/4593/how-to-stop-google-from-translating-your-website-or-webpage.htm
You can either use a meta tag:
<meta name="google" value="notranslate">
Or you can use a class:
<span class="notranslate"></span>
I hope that answered your question.
EDIT: I Just checked my blog which I offer in German and English. On each language version Chrome doesn't ask me for translation: http://kau-boys.de
I checked my source code and the multilanguage plugin only included this code:
<meta http-equiv="Content-Language" content="en_US" />
So maybe your locale needs to have a subregion, like US in this example.
You guys should be referencing http://support.google.com/webmasters/bin/answer.py?hl=en&answer=79812 and not guessing what works
<meta name="google" content="notranslate" />
Adding <meta name="google" value="notranslate"> (not W3C by the way) or <meta name="google" content="notranslate"> doesn't avoid the annoying translate popups.
BUT I have tried the following and it seems to work:
You can avoid translation of the page by adding class="notranslate" to the <body> tag!
I have success with <meta name="google" content="notranslate" />
remember to open the page in a new tab or a new window after insert
<meta name="google" value="notranslate">
otherwise it looks not work, but it actually works well.
On an older version of Chrome (18.x), the Content-Language meta tag seems to have no effect on the translation popup, unless it is lowercased:
<meta http-equiv="content-language" content="en" />
(to be clear --http-equiv="Content-Language" did not work; neither did name="content-language")