Solved

Keywords from Joomla Category....sheesh!

Posted on 2013-01-29
8
247 Views
Last Modified: 2013-05-15
Hi,

I'm  using Joomla (2.5)

I have a Joomla plugin that will serve ads based on the keywords in the source.  I am using a directory component that utilizes Joomla's CORE CATEGORIES and ARTICLES as the directory tree structure..

Within the CORE Joomla you can add keywords to the source at the GLOBAL SITE CONFIG level; and at the ARTICLE level.  All you have to do is fill in the provided META fields and you are set.

Even though the CATEGORY level has the same META fields, the Developers decided that only way CATEGORY's can generate keywords from the META fields is if you publish a menu item for them......(Who develops like that?)

So, I need a custom script that I can place in the head of my template or use as an include that will pull the META DATA from which ever CATEGORY Page is being viewed and places it in the source...i.e. <meta name="keywords" content="keyword1, keyword2...

I thought this was a no brainer and I thought there might be an extension that does this but I cant find one..

Any assistance with the code would be much appreciated.

Thanks
0
Comment
Question by:Mark Harris
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 22

Expert Comment

by:blu
ID: 38831415
I am a little confused. Are you saying that you can get article keywords into the source, but not category keywords, unless the category is set via following a menu item? Can you give me a concrete example of what you want to see?

As to your answer about who would develope like that, Joomla is very menu oriented. It is not surprising to me that the category keywords are set when you are following a menu item.
0
 

Author Comment

by:Mark Harris
ID: 38831514
I am suppressing the Article Keywords by not using them at all.  I am not using the Site Keywords either.

The directory component I use "Reviewsforjoomla" (JReviews), uses the native category structure as the directory tree. So if I create a Cats named "Activities", "Clothing" etc, each with subcategories, JReviews uses them as the Directory it displays.  Each listing is an actual article.  The template that comes with the component configs everything like a true directory.  The problem is that it "skirts" the Menu Item requirement for Keywords at the Category level.

Activities
  |
   Bowling
  |     {articles}
  |
   Golf
  |      |
  |       Mini Golf
  |      |       {articles}
  |      |
  |       Driving Ranges
  |      |       {articles}
  |      |
  |       Courses
  |               {articles}
  |
    Skating
           {articles}


I intend to put keywords only in the Category Meta Keyword fields and display only those.  I need a script that will get the Meta Keywords of the current Category I am in and append it to the meta name tag.
0
 
LVL 13

Expert Comment

by:joomla_php
ID: 38846070
If you do a menu type of category blog, the category meta keywords will display.

Exactly what type of menu are you using?
0
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 

Author Comment

by:Mark Harris
ID: 38863494
I won't be using a menu.
0
 
LVL 13

Expert Comment

by:joomla_php
ID: 38864489
Create a hidden menu and make a menu for the form from that. You'll need some kind of link to make the component appear.
0
 
LVL 25

Accepted Solution

by:
lenamtl earned 500 total points
ID: 39167682
0
 

Author Comment

by:Mark Harris
ID: 39167882
Thanks lenamtl. I will try that.
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question