6
Views
13
Comments
Add meta tags in <head>
Question
Hi everyone!

So... since the Internet Explorer 9 issue is solved, I'm trying to create a JumpList and defining the pinning configurations. But to do so I need to insert meta tags into the <head>. Is there any way to do it?

2011-08-23 22-04-05
Tiago Simões
Staff
Hi Miguel,

Yes, you could use HTTPRequestHandler.AddPostProcessingFilter("<\/title>","<\/title><meta.../>") in the preparation of your web screen.

Cheers,
Tiago Simões
2011-06-15 10-52-46
Miguel Ribeiro

Thanks! I forgot to check the references to look for methods to do it... My bad..
But I found the "AddMetaTag" action... shouldn't this do what I want?

2011-08-23 22-04-05
Tiago Simões
Staff
Hi Miguel,

Yes you are right, that's even better.

Cheers,
Tiago Simões
UserImage.jpg
Guilherme Jesus
Hi Tiago,

If we use the AddPostProcessingFilter action of HTTPRequestHandler extension the parameters in this case would be matchingRegexp = "</title>" and replacement = "</title><meta.../>"?


Kind Regards,
Guilherme Jesus
2011-08-23 22-04-05
Tiago Simões
Staff
Hi Guilherme,

As Miguel pointed out the AddMetaTag action is more adequate.
Regarding AddPostProcessingFilter I'm not sure, but I believe you need to escape the / in the </title>, making it matchingRegexp ="<\/title>".
Try it out and let me know what you find.

Cheers,
Tiago Simões
2011-06-15 10-51-22
Joop Stringer
Tiago Simões wrote:
Hi Guilherme,

As Miguel pointed out the AddMetaTag action is more adequate.
Regarding AddPostProcessingFilter I'm not sure, but I believe you need to escape the / in the </title>, making it matchingRegexp ="<\/title>".
Try it out and let me know what you find.

Cheers,
Tiago Simões
 
 If I want to add a default text behind the current page title, how should I do that
Like the title is "<title>Item</title>" and I want to change it into "<title>item | COOLProfs</title>"

2023-03-30 10-13-40
Miguel Antunes
Joop Stringer wrote:
 
 If I want to add a default text behind the current page title, how should I do that
Like the title is "<title>Item</title>" and I want to change it into "<title>item | COOLProfs</title>"
 
 
 Hi Joop,

for your case, can't you use the SetPageTitle action from HttpRequestHandler?

this action has a string input parameter, so you just need to build the string you want, and it will be added as the page title.

let us know if this is what you're looking for!

Cheers,
Miguel
2011-06-15 10-51-22
Joop Stringer
Miguel Antunes wrote:
 
 Hi Joop,

for your case, can't you use the SetPageTitle action from HttpRequestHandler?

this action has a string input parameter, so you just need to build the string you want, and it will be added as the page title.

let us know if this is what you're looking for!

Cheers,
Miguel
 
Would be nice, if there was a "getPageName" as well ...
I want to use the title-property of the webscreen and add something to it.
UserImage.jpg
Guilherme Jesus
Tiago,
Before i make this changes, do you know if this action is valid for adding robots metaname in header for spiders don't follow/index my pages?

Kind Regards,
Guilherme Jesus

2011-08-23 22-04-05
Tiago Simões
Staff
Hi Guilherme,

So far I've only used robots.txt for that, but it looks like you are right, you can also do that with meta tags.

Cheers,
Tiago Simões
2012-03-16 12-21-09
João Rosado
Staff
Hi Joop,

You should be able to replace "<\/title>" with "| COOLProfs</title>".
Did you try that?

Regards,
João Rosado


2011-06-15 10-51-22
Joop Stringer
João Rosado wrote:
Hi Joop,

You should be able to replace "<\/title>" with "| COOLProfs</title>".
Did you try that?

Regards,
João Rosado

 
 
Have to check !
Thanks, life can be so easy sometimes !
2011-06-15 10-51-22
Joop Stringer
Works Perfectomundo !!!!
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.