× Here you can get community support related to Tag Meta.

How to access the title generated by tagmeta

  • darkhoros
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
11 years 5 months ago #1175 by darkhoros
Hi,
I need to access the title generated by tagmeta in other components of my joomla installation, what I need to do is use the title generated by tag meta as text placed in H1 tag in my webpage.

I use this code to get the joomla title which I thought it would be the title generated by tagmet but actully it is the original title of the website.
----
$mydoc =& JFactory::getDocument();
$mytitle = $mydoc->getTitle();
$pagetitle = $mytitle;

So what should I change to get the titles generated by tagmeta.

Thank you all alot for you help.
Regards.

Please Log in or Create an account to join the conversation.

More
11 years 5 months ago #1180 by admin
Hi,
the title is changed in the onAfterDispatch() event. So if you access to title after this you can get what you want. You can also do in the onAfterDispatch(), just put your plugin after Tag Meta (adjust ordering).

Kind regards.

Please Log in or Create an account to join the conversation.

  • darkhoros
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
11 years 5 months ago #1189 by darkhoros
Replied by darkhoros on topic How to access the title generated by tagmeta
Hi,
I am unable to do what I need, so i will try to explain more what I am after.

The code I posted above I have used inside another 3rd party component to get the title displayed, this component has no plugin for me to put after the tagmeta plugin, so how do you think I can do this, how should I used the onAfterDispatch() inside this 3rd party component?

I apriciate your fantastic help already and I understand that I am asking for your support in area you are intitled to deny support.

Thanks in advance.

Please Log in or Create an account to join the conversation.

More
11 years 5 months ago #1192 by admin
Try something fast, filter all "system" pluging and put Tag Meta as the first one (usually it should be the last one). If this doesn't work, I can help you, but you should provide me a test site where I can access to check the component you are talking about.

To provide me access info, just send me an email at info(at)selfget.com.

Kind regards.

Please Log in or Create an account to join the conversation.

  • darkhoros
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
11 years 5 months ago #1224 by darkhoros
Replied by darkhoros on topic How to access the title generated by tagmeta
Hi,
I have tried what you said but did not work out.
I have sent you the access credintials you need.
Thnak you alot for your super support.
Regards.

Please Log in or Create an account to join the conversation.

More
11 years 4 months ago #1226 by admin
Ok,
thanks for trust, let me check. Hold on...

Please Log in or Create an account to join the conversation.

Time to create page: 0.189 seconds