What is the hierarchy of WCMS? - sap-commerce-cloud

I think module and hierarchy in WCMS are different .So what will be the proper answer for hierarchy of WCMS ?
Please answer

I think the question is not very clear. There is no hierarchy concept in WCMS. For me WCMS is a module and the module is composed of extensions.
So I guess the question is what are the extensions relations/hierarchy?
It's described in WCMS Module documentation
This image comes from the SAP documentation referenced in above link.

Related

Defining API class in component based structure

I have been reading the 'Node JS Best Practices' Github article. One point that I I found interesting was the very first best practice. Here they split up the project structure based on components. One of the advises was to use functions and classes outside the component by defining them in an API class. But I can't find any examples on how such class should be build.
This is the link to the Github article:
Component bases project structure
You Just Connect Your Main Index file .
every script File Then AutoLoad Practices.
Var myVar2 = require('./your_file')
You can have a look at this, if you wanna structure your project in different parts and make that more readable.
Im attaching one of the boilerplate link of github since, it will be huge to tell you everything here, just look at this setup you will know everything.
check this link for boilerplate.
If you have doubts let me know.

Is possible to extend from Twig_Lexer?

In Twig internal documentation we can read that lexer could be changed:
$twig->setLexer($lexer);
My question is: Is possible to extend from Twig_Lexer?
When reading the code I can see most members are private, this makes harder the reuse of members or extending at all. Also the setLexer() from Twig_Environment has a type hint for Twig_Lexer.
What am I missing here ?
Thanks in advance.
As documentation purpose. The answer to this question can be seen in this issue
Basically all extension from internal classes is discouraged and will not be supported in Twig.

Modify Orchard Archive Filter

I am new to Orchard CMS may be this can be easily achievable I don't know how to do it exactly as i have searched a lot on Google. I have a blog where I need to display the archive in drop down Eg :
I checked the blog module and I don't know how can I filter it so that I can get this. Do I have to create a new module to achieve this or a tweak in the Blog module will work. I Read the sky-walker tutorial to understand how to create a module but i don't know how to achieve this.
You need to override the Parts.Blogs.BlogArchives.cshtml, very easy. That is what Orchard is all about. you can read more about it in the documentation.
Check this Accessing Shapes , for starters.

Where is com.ibm.xsp.component.UIIncludeComposite documented?

Can anyone tell me where com.ibm.xsp.component.UIIncludeComposite is documented? I searched in the help file for UIIncludeComposite but found nothing.
There is only one brief mention of it in Mastering xPages.
com.ibm.xsp.component.UIIncludeComposite is the class for the object returned by getComponent when calling getComponent for a custom control.
In fact where is anything documented? I think the single biggest frustration as a newbie xPage programmer is the lack of documentation or where to find it.
The Java class is documented in the Javadoc available at http://www-10.lotus.com/ldd/ddwiki.nsf/dx/Domino_Designer_Extensibility_APIs_Javadoc_8.5.3 which points to this page for the specific class:
http://public.dhe.ibm.com/software/dw/lotus/Domino-Designer/JavaDocs/DesignerAPIs/com/ibm/xsp/component/UIIncludeComposite.html
General documentation for Upgrade Pack 1 and Extension Library is available here:
http://www-10.lotus.com/ldd/ddwiki.nsf/xpViewCategories.xsp?lookupName=Domino%20Designer%20XPages%20Extension%20Library

Windows Live Writer Webpreview and Weblayout

I'm working on implementing a blogging engine and want to make it compatible with windows live writer. I found an excellent post on this, but what I can't find is documentation on the placeholder tags used in the weblayout and webpreview templates. The only page I can find referring to this files on MSDN is this one that doesn't mention the placeholder tags.
Anybody point me in the right direction?
Many thanks
Tony
The placeholders are:
{post-title}
{post-body}
The msdn article that you linked to does state that, though.

Resources