sitemesh 3.0 alpha 2, I can't get the meta tag value by the content #32

Closed
snaigle opened this Issue Mar 2, 2012 · 2 comments

Comments

Projects
None yet
2 participants

snaigle commented Mar 2, 2012

@override
public String[] selectDecoratorPaths(Content content, WebAppContext context)
throws IOException {

            System.out.println(content.getData().getValue());
            for(ContentProperty cp : content.getExtractedProperties().getChildren()){
                System.out.println(cp.getName()+":"+cp.getValue());
            }
            return new String[]{};
        }

it print that : meta:null , and the data.value can see the meta value
there has something on the html tag resolve

--- it's not a bug, I got it by this method :
content.getExtractedProperties().getChild("meta").getChild("layout").getValue();

thanks very much.

Owner

codeconsole commented Apr 4, 2012

Not quite sure what you are asking here? Did this work in alpha 1?

snaigle commented May 8, 2012

--- it's not a bug, I got it by this method :
content.getExtractedProperties().getChild("meta").getChild("layout").getValue();

thanks very much.

@snaigle snaigle closed this May 8, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment