Package org.opoo.press

Examples of org.opoo.press.Tag


      String nicename = n.attributeValue("nicename");
      String text = n.getTextTrim();

      if("post_tag".equals(domain)){
        String stringTag = text;
        Tag tag = site.getTag(nicename);
        if(tag != null){
          stringTag = tag.getSlug();
        }
       
        tags.add(stringTag);
      }
      if("category".equals(domain)){
View Full Code Here


    if(stringTags == null || stringTags.isEmpty()){
      return;
    }
    Site site = getSite();
    for(String stringTag: stringTags){
      Tag tag = site.getTag(stringTag);
      if(tag == null){
        String slug = site.toSlug(stringTag);
        tag = new TagImpl(slug, stringTag, site);
        //add to site tags list
        site.getTags().add(tag);
      }
      tag.getPosts().add(this);
      this.tags.add(tag);
    }
  }
View Full Code Here

TOP

Related Classes of org.opoo.press.Tag

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.