How/Where can I add my <link href="https://plus.google.com/{+PageId}" rel="publisher" /> tag in my Website with Common Spot?
Not familiar with Common Spot but did a little investigation. You would likely want to edit your base template (/templates/template-basepage.cfm). All of the pages on the site should inherit from this file. You would insert your link element into the <HEAD> of that template so that the setting was picked up by all the pages on your site.
If you have a more complicated site with subsites that have different Google+ Pages, you would probably use the subsite's template instead and put the different link's in each subsite template.
Related
I've been just brought on to a grails project and I'm unfamiliar with the language. In one of my gsp files there is a <g:layoutBody/> tag that seems to be generating a lot of content somehow. How does this tag work?
The g:layoutBody tag is usually used in layout files, it renders the content of the body of the page which is using that layout.
Together with g:applyLayout, g:layoutHead and g:pageProperty it makes the basics of GSP templating functionality, it's worthy to check out more closely how to use them.
I am in the process of adding help to my Lazarus application. I am using WebHelp rather than CHM help to aid in cross-platform utilisation.
WebHelp essentially uses a pair of html pages within a frameset - an index on the left, and the associated topic on the right. To open the help system at a specific page in the web browser, it is called as:
file:///path_to_help_files/index.htm#specific.htm
The Lazarus form has a THTMLHelpDatabase component, and a THTMLBrowserHelpViewer component as per the instructions at http://wiki.freepascal.org/Add_Help_to_Your_Application.
Individual components have their HelpType set to htKeyword, and the HelpKeyword set to HTML/index.htm or HTML/index.htm#something.htm
Whatever I enter, the help files are only opened at the default page (i.e. index.htm).
Does anyone have any ideas on how to get the help pages to open at a specific page?
[I can't specify a HelpKeyword of HTML/something.htm because that would omit the topic index. Effectively, I have to go through index.htm to get the frameset appearing.]
I have found one solution, but it is a bit clunky, so if anyone has a better idea, I'd like to hear it.
Essentially, I've created a redirect for something.html that looks like:
<!doctype html>
<html>
<head>
<title>Something</title>
<meta http-equiv="REFRESH" content="0;url=index.htm#something.htm">
</head>
<body>
Redirect to index.html
</body>
</html>
I then point the relevant Lazarus control at HTML/something.html in HelpKeyword so that when help is called, it redirects to the correct URL. (And yes, I am using a .html extension for the redirects, while the real files have .htm extensions - forced by the help authoring application).
The real hassle about this is that I've got to have a redirect file for every topic in the help system that I want to access directly from the Lazarus application.
i have developed my website using ASP.MVC3 platform, please provide exact solution for below concerns.
If User visit my website After new resource updates[style changes,script] in our site, they can view only old resources in website .
For getting new resource updates in site they need to manually refresh the page several times for get it to render properly with new changes. This doesn't happen on any several sites.
SO anyone suggest How to avoid refresh the page again and again for getting new updates site in programmatical way. and also suggest any possibility to do this in my site global.axjax file MVC application while website loading?
Please don't tell like this "clear your browser cache "
One of the most common technique people use is to update the reference to the source files by adding random query string in the end of link, like this
<link href="/Content/all.min.css?d=20090107" rel="stylesheet" type="text/css" />
you can do the same for Javascript files. For more details on why this helps, check the following link
What does '?' do in a Css link?
I inherited the management of a Symfony site and need to add some HTMl form tags to one of the "static" pages via the CMS. The scenario I have is:
/index.php/splash/welcome pulls up the welcome screen.
We want to be able to add a subscription button on that page.
The HTML has been supplied for us by the company that handles the subscriptions.
The form post method has an action that references a script on a remote site (no lectures on the security implications please ;-).
When I add the <form... and <input... tags via the CMS admin panel, the tags get removed automatically by Symfony.
Is there a way to tell Symfony to allow these tags?
Thanks in advance,
Marty.
This is goign to depend completely on how the developer set up the CMS. Youre using a rich text editor in source mode i would take a look at that editor's config file and documentation because its probably the one responsible for stripping the tags.
If its just a plain text area i would check the submit action for the edit form and take a look at the code... he may be using something to strip them in there.
If youre using one of the Symfony CMS plugins (Diem, Apostrophe, Sympal) i might be able to help further if i know which one youre using. If its something custom we would need to see the code. This isnt really indiciative of the Symfony core, but rather the CMS youre using.
I have no experience whatsoever with asp.net. I'm just starting out with asp.net MVC without passing through webforms at all. I do have experience with web developing but with php+codeigniter.
What's the purpose of having the runat attribute inside the head tag of my html?
Should I remove it?
Because, if you're using Master Pages, you can give yourself the ability to add further meta-data to the <head> tag by adding the runat attribute.
It's also used to inject Javascript references to the head tag for ASP.NET AJAX (and custom script injection that you might create on your page via ScriptManager).
EDIT
As the comments have pointed out, this is needed so that you can modify any of the contents of the <head> group in your code. I listed two of the more complex scenarios.