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

Get meta keywords from a div on the page

  • darkhoros
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
7 years 2 months ago #6340 by darkhoros
Get meta keywords from a div on the page was created by darkhoros
Hi,
Is it possible to pull the meta keywords from a specific div on the page,
say I have a div with ID tags, I need to pull the text inside this div with ID tags and put it in the meta keywords.

Can this be done, or any thing similar?
Thank you.

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

More
7 years 2 months ago #6341 by admin
Replied by admin on topic Get meta keywords from a div on the page
Hi,
it is curious because just yesterday I've got the same request from another user and I am adding this new macro now. I will release a new version of Tag Meta Enterprise in a couple of days max.

Kind regards,
Luigi

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

More
7 years 2 months ago #6346 by admin
Replied by admin on topic Get meta keywords from a div on the page
Hi,
the new 1.9.0 version is available. You can use the new macro {nodevalue}.
{nodevalue itemprop,headline} => <div itemprop="headline">Title</div> => Title
{nodevalue class,header} => <h1 class="header">Hello Joomla</h1> => Hello Joomla

Kind regards,
Luigi

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

  • darkhoros
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
7 years 2 months ago #6347 by darkhoros
Replied by darkhoros on topic Get meta keywords from a div on the page
Hi Luigi
Like always you are the best.
But I have a small issue, I understand that all current versions are J3 only and no support for J2.5.
I need to have this macro on a J2.5 website, which is impossible to upgrade to J3 as main components on that website have no J3 versions.

I hope for you help here to allow this macro in J2.5
Thank you.

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

More
7 years 2 months ago #6348 by admin
Replied by admin on topic Get meta keywords from a div on the page
I understand,
but unfortunately due to my very limited time I cannot mantain older version (moreover, those are not supported anymore by Joomla itself).

But if you are familiar with PHP programming you can make the change by yourself, it's just a small portion of code to add to the existing on Tag Meta plugin. Search "nodevalue" occurrences in the new code and you will see the snippets to add.

Kind regards,
Luigi

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

  • darkhoros
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
7 years 1 month ago #6353 by darkhoros
Replied by darkhoros on topic Get meta keywords from a div on the page
Hi Luigi,
Doing as you told me, I am getting the following output where I should have the content of the target div, i am using this in my rule {nodevalue class,item-tags} and getting this:
plgSystemTagMeta::manageMacroParams('tableselect', array(0 =&gt; 'nodevalue', 1 =&gt; 'class'))
So it seems I am doing some thing wrong or there is more to it, I have searched the tagmeta.php plugin file ad copied the required code and modified it to match how the J2.5 plugin and pasted it.
But it is not working.
Please advice.
Thank you.

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

Time to create page: 0.175 seconds