Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
TeamSite
TeamSite, LiveSite and OpenDeploy
Is there any way to inject meta nodes dynamically in to the runtime pages?
Migrateduser
Hi Everyone,
I am trying to inject meta data node in to the generated html page.
i.e In the generated html I want the following meta nodes fields.
[PHP]
<meta name="product1" content="test1" />
<meta name="product2" content="test2" />
….
<meta name="productN" content="testN" />
[/PHP]
I know, we can add the meta node using following java code
[PHP]
Map pageData = context.getPageScopeData();
pageData.put(“test1”, “test1”);
[/PHP]
the issue is , we will have to add corresponding entry into the page configuration xml file. As per follow
[PHP]
ls:begin[meta-PageType]
product1
$PAGE_SCOPE[test1]
ls:end[meta-PageType]
[/PHP]
But, in my case I want to add multiple product types (it might be 0 to 100) and I don’t want to add static mapping for all 100 products.
Please let me know if there is any other way to pull the data in to the page configuration xml file to generate meta fields.
Find more posts tagged with
Comments
There are no comments yet