How to implement metadata keyword tags

Can someone please advise me on how to implement meta keyword tag <meta name="keyword" content="..."> for individual community page? We have a set of keywords for each community page. I know we can just add the line above to base page layout if they are common keywords to all the community page but not sure whats the best way to add unique set of meta keyword tags to individual community page? FYI - We are using UCM for managing content for our site.

I always did this using a property on the page object.
1. Create a new property called "meta-keywords" and associate it to the community pages object through the global object property mapper utility.
2. Edit your community page and add any keywords you desire.
3. Write a custom tag for said property that takes a uuid as input (this way you can migrate and the tag remains the same.
4. same idea works for any meta tag.
Note: you are limited to 255 characters this way.
Or you can probably code some kind of tag that reads from UCM as well, but i always did it the above way.
Here is a tag example:
public class MetaPropertyCurrentPage extends ATag {
     private OpenLogger log = OpenLogService.GetLogger(
               OpenLogService.GetComponent(PTDebugHelpers.COMPONENT_PORTAL_COMMON),
               "customizations.tag.standard.MetaPropertyCurrentPage");
     public static final RequiredTagAttribute UUID;
     public static final ITagMetaData TAG;
     static {
          TAG = new TagMetaData("currpageproperty",
                    "Displays the value of the property in the current page from the uuid.");
     UUID = new RequiredTagAttribute("uuid", "The UUID for the property you want to open.",
AttributeType.STRING);
     @Override
     public ATag Create() {
          return new MetaPropertyCurrentPage();
     @Override
     public HTMLElement DisplayTag() {
          log.Info("Entering meta lookup");
          String objectid;
          String classid;
          HTMLElement result = new HTMLElementCollection();
          IEnvironment env = GetEnvironment();
          AActivitySpace owner = TaskAPIUICommon.GetEnvTypeObject(env);
          //get pageid
          int pageid = TaskAPIUICommunity.GetCurrentCommunityPageID(owner);
          //check if not a community page
          if (!TaskAPIUICommunity.IsCurrentPageCommunityPage(owner))
               return result;
          //convert to objectid
          try
               Object[] objectAndClassId = ((IPTMigrationManager)(((IPTSession)GetEnvironment()
               .GetUserSession()).OpenGlobalObject(PT_GLOBALOBJECTS.PT_GLOBAL_MIGRATION_MANAGER,
               false))).UUIDToObjectID(GetTagAttributeAsString(UUID));
               objectid = objectAndClassId[PT_MIGRATION_OBJECT_COLS.PT_MOC_OBJECTID].toString();
               log.Info( "found objectid" + objectid);
               classid = objectAndClassId[PT_MIGRATION_OBJECT_COLS.PT_MOC_CLASSID].toString();
               //check to make sure its a property
               if (Integer.parseInt(classid) != PT_CLASSIDS.PT_PROPERTY_ID)
                    return new HTMLComment("UUID does not belong to a property");
          catch (Exception e)
               log.Error(e, "error getting the objectid from the UUID.");
               return null;
          //now get the property from it
          IPTSession session = (IPTSession)GetEnvironment().GetUserSession();
          IPTObjectManager objMgr = session.GetPages();
          IPTPage page = (IPTPage)objMgr.Open(pageid, false);
          log.Info("Page name: " + page.GetName());
          IPTQueryResult qresult = page.GetObjectProperties().GetSinglePropertyData(Integer.parseInt(objectid), PT_PROPIDS.PT_PROPID_PROP_VALUE);
          if (qresult.Data() != null)
               IPTObjectManager objMgr2 = session.GetProperties();
               IPTProperty prop = (IPTProperty)objMgr2.Open(Integer.parseInt(objectid), false);
               String propName = prop.GetName();
               log.Info("Property name is: " + propName);
               String value = (String) qresult.Data()[1][0];
               if (lang.equalsIgnoreCase(propLocale) && value != null && !value.equalsIgnoreCase(""))
                    result.AddInnerHTMLString("<meta name=\"" + propName + "\" content=\"" + value + "\" />");
          else
               log.Info("Property Value not found.");
          return result;
     }

Similar Messages

  • How do i import keyword tags from PSE12?

    I have just downloaded PS and LR5 from Adobe CC. I was using Photoshop Elements 12. How can I import my keyword tags from the PSE Organizer. I saved them as .txt files but they will not import because they contain "special characters." What do I do?  Please do not tell me I have to start over... ~

    is there a way to import tags from PSE 12
    The PSE 12 Organizer and LR 5 use different file formats for exporting and importing keyword hierarchies. PSE uses XML format, while LR 5 uses a tab-separated format.  If you're a programmer or technically minded, you could convert from one to the other using your favorite scripting language.
    But the approach suggested by dj_paige can be modified to accomplish what you want without scripting, by copying the keyword hierarchy from the "upgraded" LR catalog that was created from your PSE catalog to your "good" LR catalog:
    1. Make a manual backup of your "good" LR catalog: Lightroom Help | Back up a catalog.
    2. In LR, open the catalog that you created previously by upgrading (converting) the PSE catalog -- you can usually get to that catalog by doing File > Open Recent.
    3. Go to grid view in the Library by doing Window > Library followed by View > Grid (usually you're already in Library grid view, but just in case...)
    4. Make sure the Keyword List panel is showing on the right by doing Window > Panels > Keyword List.
    5. You should see the keyword hierarchy from your PSE catalog.  If you don't, stop and post a screen shot of the entire LR screen.
    6. Do Metadata > Export Keywords to export those keywords as a LR-format text file.
    7. Open your "good" LR catalog by doing File > Open Recent.
    8. Do Metadata > Import Keywords and select the file you exported in step 6.
    9. All the keywords that were exported in step 6 will be added to the current catalog, and there will be duplicate keywords if there were already keywords of the same name in the catalog.  Those new keywords will not be attached to any existing photos in the current catalog.

  • Computer died...now how can I retrieve keyword tags from my old hard drive?

    I got a new computer and installed Elements 9.0 on it.  I am retrieving the pics from my old hard drive just fine but I seem to have lost the majority of my old keyword tags.  Any help?  Thanks.

    If you didn't write the keyword tags to all the photos when your old computer was working, you can't get the tags back by simply retrieving the photos.
    You'll need to retrieve the entire catalog directory.  When you open that old catalog on your new computer, all your photos will be listed as "missing".  Use the Reconnect All Missing Files to connect them by browsing to their current location.
    Ken

  • How to search by Keyword Tags

    I have just installed PS El:11 and convered the catalogue from PS El:10 however whilst all the photo's are showing none appear under the tags created in PS El:10 However all the tags have transferred to 11 but no photos appear to be linked - what have I done wrong and how do I get them linked without going through 4k + of photo's to re-tag them!
    Message title was edited by: Brett N

    To search keywords you need to click on the chevron (see image); click clear before starting a new search.

  • How to implement use bean tag in servlet technology

    hello,
    i want to use application scope for variables in application . i know about use bean tag but i want to use servelet technology. how could this be done

    The application scope corresponds to the servlet context. From your servlet, use getServletContext().getAttribute() and getServletContext().setAttribute().

  • How to Implement jsp:useBean tags

    Hi,
    I hav a trouble with using the Tag jsp:useBean
    Actually im using Tomcat4.1 webserver'
    I created a java file and compiled that
    When i included that class file,The Jsp Compiler seeming me a error that the Required class in not found
    Actually wht my problem is that i cannot find out the storage locations for the corresponding files
    I know where to save the jsp
    but i need to know where to put the class file and its source.Bcz that one which i want to use in that tag{<jsp:useBean>}
    I want to know what should i do
    With Regards
    Ganesh B

    Beans are regular Java classes that follow particular conventions defined by the JavaBean's specification. The don't extend from a particular class, they aren't packaged in a particular package, and - germane to the question - they aren't located in a special place on the server. The classes which are loaded into the JSP by the <jsp:useBean> construct are located in the same location as other classes in a web application. They are located in the classes directory of the WEB-INF directory of the web application directory itself. Or, if you bundle your classes into a jar file, then the jar file will be located in the lib directory of the WEB-INF directory. In either case, remember to use packages for your classes including your beans.

  • How to customize the order of Keyword tags

    How to I import keyword tags attached to files into elements organizer in a non-alphabetical order? The keyword tags that I import are alphabeticalized and I do not want it this way.
    Message title was edited by: Brett N

    Hi,
    I believe that the tags can be displayed in any order you wish if you set the preferences for tags to manual.
    You can then just drag them to the order you want.
    Brian

  • How do I transfer Face tags that I have on iPhoto '09 to Elements Organizer 10?

    I have spent a ridiculously long time tagging photos in my iPhotos but I would now like to transfer all my photos to Elements Organizer and preserve all the work I had done.
    From Adobe's help website (http://help.adobe.com/en_US/elementsorganizer/using/WS73c05ee9864270ea -417df45c129593bfa05-8000.html) it says I can import the tags along with the photos but does not explain how:
    "Elements Organizer 10 supports importing photos, along with their associated captions, tags, and ratings, from iPhoto. You also have the option to import information such as events and albums to maintain the organization of your library"
    When I follow the steps outlined on the website my photos are imported but there are no tags attached to them. I am particularly interested in keeping my facial tags but I suppose it would be useful to know how to keep other keyword tags and ratings as well.
    I have tried contacting Adobe directly and using their forums but I keep getting told that Adobe offers this service as a "courtesy" and that I should contact Mac/iPhoto for further assistance.
    Has anyone tried going from iPhoto to Elements Organizer with their tags?
    Please Please help!
    Many thanks
    D.M.

    There is no standard field for faces. To transfer information you must put it in the standard place that the new program will use. That does not exist for faces. One work around would be to use keywords. You include the available metadata in a photo by checking all if the boxes when you export the photo(s). What the receiving program is determined by the authors of that program. All iPhoto can do is write what it offers to the IPTC &amp; EXIF fields which it will
    LN

  • Keyword Tags PS Elements 8

    How do I stop keyword tags running. I dont want it and it uses too much resource. Can anyone help.

    Go to Edit - Preferences - Auto Analyzer (bottom of list) and then deselect everything you can.

  • Why aren't album keyword tags written to metadata using Write Keyword Tag... command

    When I display file properties within organizer it shows albums as keyword tags but after using the "Write Keyword Tag and Properties Info to File" command, the album keywords do not make it to the metadata.
    Why is this?  I would really like for it to work.
    I am using PSE version 8.  Does it change in version 9?
    Thank you!

    Ken,
    Thanks for your reply.
    I think the way that Adobe has implemented albums is a little more like keywords than a saved search.  The reason I say this is because of the following:
    1. They appear with the keyword tags to the bottom right of the photo in the organizer.
    2. When you right-click on a photo and choose "Show Properties", they are listed with the other keywords.
    3. If you try to create a keyword with the same name as an album (to get the album name written to the metadata), PSE warns you that you already have a keyword with the same name.
    I see what you are saying but I think the Adobe should either make a clear distinction between albums and keywords or at least give you an option to write the album keywords to the metadata if you choose.
    Do you know how to submit product enhancement requests?
    Thanks again for your time.
    Patrick

  • How can reattach keyword tags to photos after switching to PSE11

    I recently upgraded from vista to windows 8.
    I then upgraded from Photoshop elements 9 (I think) to Photoshop elements 11.  I had catalogs and pictures scattered in different places so one of the options was just too gather all of the photographs on the hard drive and start a new catalog.  It worked, and so all of my pictures are under one catalog name which is perfect.  The key word tag categories are listed as I had sent them up in the previous version, but none of the photos are actually labeled with their keyword tax.  How can I reattach the tags to the pictures.
    I appreciate any help I can get with this thank you.

    Here is the link:
    http://johnrellis.best.vwh.net/psedbtool/
    and mor precisely
    http://www.johnrellis.com/psedbtool/#_Writing_File_Metadata
    Unfortunately, as you can see, that tool has not been updated to PSE9. Its advantage for writing the tags is that the organizer (all versions) does only add tags to the files without replacing the old tags while psedbtool replaces the tags.
    If you have not yet used the 'write metadata to files' feature in PSE9, you don't need psedbtool.
    Another note for PSE11 users:
    That behaviour of the organizer has not been changed, but you can use another tool to erase tags for a batch of selected files.
    In the information panel on the right, expand the 'metadata' section, and click on the rightmost icon to get detailed view. Expand the IPTC section. Click on the 3 dots icon to open the IPTC dialog. There you can choose to delete all keywords.
    Or:
    After selecting your pictures, click on the 'Add IPTC data' button in the information panel.

  • Saving Albums, Keyword Tags & Metadata in Photoshop 11

    In Photoshop 11, when I create a new Album name or category, do I need to choose "Save Albums to File"?   Do I need to do something similar with Keyword tags "Save keyword tags to file"?  If I don't do this, would I lose my album names and keyword tags when I upgrade to a new Photoshop program?  What about my photo captions?  How are those saved?  Do I need to select all the photos in the album before I do this?
    Also, under File, if I select "Save Metadata to Files", exactly what is saved?
    I want to make sure that no matter what program I use my info goes with my pictures.

    Most important to understand with the organizer (any version) is that if you want ALL additional information you have added to your catalog to be saved or backed up, and then restored totally, you have to backup your catalog from the organizer menu. Everything is stored in the 'catalog' folder: the catalog itself, a copy of all your media files and a backup.tly file which enables you to restore either on the same location or a new one (new computer, drive, new OS, new OS or PSE version...)
    Tripgal wrote:
    In Photoshop 11, when I create a new Album name or category, do I need to choose "Save Albums to File"?  
    No, the wording is misleading. That command only saves the names and properties of your album panel, not the contents, in a text file. You can restore that structure in another album.
    Do I need to do something similar with Keyword tags "Save keyword tags to file"?  If I don't do this, would I lose my album names and keyword tags when I upgrade to a new Photoshop program?  What about my photo captions?  How are those saved?  Do I need to select all the photos in the album before I do this?
    You don't need to if you have a PSE backup, but it may be a good idea, especially if you want to share your tags and ratings with another software (slideshow editor for instance). It's an additional safety measure.
    There are three categories of data:
    - what is stored automatically in the metadata section of the files (or in .xmp sidecar files) : mostly captions and file 'date original'
    - what is stored manually via the 'write metadata to file' command : mainly tags, categories, ratings, notes, captions...
    - what can't be stored because it's not information pertaining to individual files : albums, stacks, version sets. That's why you should prefer to use tags instead of albums if you don't need a custom sort order.
    As you have seen, you also can save your album structure, and, more important, your tags and categories in text files to copy them in new blank catalogs.

  • How do I find photos without a keyword tag?

    How do I find photos without a keyword tag?
    And by the way a further question regarding keyword tags remains unanswered...Why is there a difference between the number next to the keyword and the actual index number in the keyword folder?

    I will try and explain in more detail to ensure we don't talk past each other.
    I'm in "Catalog" and "All Photographs" is highlighted.
    I selected to show the "Index Number" under "Library View Options".
    In "Keyword List" I have main keywords such as Europe, Africa and Asia with no number to the right of it.
    If I open the Europe keyword I have a list of countries each of them with a number next to them.
    Next to Spain there is now showing the number 46.
    I open "Spain" by clicking on the arrow to the right of the number.
    Now all the photos with the Spain tag is shown but there are only 23 photo.  Under Portugal there is 80 shown but only 40 photos is shown.  Under Ireland the keyword only 11 is shown but once open there are 1132 photos.
    There is not one keyword with the correct number next to it.
    As a fairly new LR user it just appears to me that the two function don't "speak" or "correlate" with each other.

  • How do I add a keyword tag in iPhoto on the iPad?

    I looked through the Help for iPhoto and couldn't find a section on how to add keyword tags to my images.
    Things like the names of the people in the photos, etc.
    The screen shots of iPhoto show a Face Taggging feature.
    How do I get to that?
    Thanks for any help or advice!

    I talked with Apple Support.
    The iPhoto app on the iPad is not the same as iPhoto on the Mac.
    It doesn't support adding keyword tags.
    Possibly a feature to be added in the future.
    I have iCloud enabled for PhotoStream.
    So my iPad picture was sent automatically to my download folder on my pc.
    I can take it from there into PhotoShop Elements and add the tags.

  • How can I stop thumbnails and keyword tags from rapid movement?

    PSE 10 for Mac: When going through catalog thumbnails or trying to locate a particular keyword tag, the images or the tags just whiz by rapidly.  How can I prevent this?  Thank you.

    I think even using Get Info may not reveal the change, though it is possible the behaviour has altered since I last tested it. Playing or updating the tracks location in a script such as UpdateTagInfo seems to get iTunes to re-evaluate the tag.
    Assuming WMP is involved it may be best to make the necessary settings adjustments to prevent further changes, use the script to get all of the background changes exposed within iTunes, then correct as you see fit. Alternatively I do have another script called ExportImport that could be used to back up the current state of your tags (you should temporarily rename the media folder during the export phase), after which you would then run UpdateTagInfo and then use ExplortImport in its import mode to restore the corrupted data.
    tt2

Maybe you are looking for

  • ARE THESE USER-ACCOUNTS BY DEFAULT: ADAMS...

    Hi everybody, I was doing a round of all the views in the SYS adminstrator account. I came across the following user-accounts in the view ALL_VIEWS: ADAMS, JONES, CLARK and BLAKE Maybe the guy who was using Oracle before me had created these user acc

  • Foreign currency transfer in COPA

    Hello friends, I have a question on foreign currency in COPA document when I do the sales order settlement. I have a sales order where I mentioned that document currency is EUR and maintained exchange rate. My Operating, controlling and company code

  • X121e randomly wake up from suspended status and real time clock error

    Hi all Previously I considered my x121e suffer from overheating issue and causes real time clock error (RTC). However, after more testing and investigation, I believe the problem is related to other hardware issues and I like to hear people opinion b

  • Switching from pc format to mac format

    i recently bought a macbook and started using my video ipod on the mac. wheni downloaded movies from the itunes store it said that the vio could not be put on my ipod because it needed to be updated. when i tried to update it it said only macintosh f

  • The sample audio files in Final Cut Pro X will not play

    How can I hear the sample audio in Final Cut Pro X without dragging the clips onto the timeline. They used to play, but stopped after the computers were connected to Tenaka.