I have installed skinr module. In that there is an option to select Template Files.
I don't have idea how to implement it.
1. How Should i need to create a template file for this?
2. Where it should be saved?
3. How it will get the template file by default?
4. How can this be achieved?
Here is the screenshot below.. Thanks in advance...
You have to define the template in the .info file of your theme.
If you read this article first, then I think that the instructions here are easy to understand
Related
Can we update or change a file using Freemarker?
I am using Android studio templates to create few and I also want to update few files as well. Is it possible to do so? I am new to this and unable to find enough info.
Thanks in advance.
Freemarker is a template engine to generate text output. What you can do is replace an existing file, with a new one.
I am working on Hybris and I generated a new extension using hybris command (ant extgen) with default settings. During extension generation, I did not change default values like I let the project name to be "training". I started developing some code just for the sake of trying it but now I wrote quite a lot of code and instead of generating a new extension, I am trying to rename "training" to a new name which is more suitable for my project.
My question is - Is there any shortcut to rename "training" to a new name. By rename I don't mean standard intellij or eclipse module rename but also updating all extension specific properties which are referring to extension name "training". Is there any hybris ant command for it?
Here is the way I can think of.
You can declare your extension as a template for extgen and then generate a new extension based on it with a new name and structure.
Let me take training as your current extension which you want to convert to some other name. Below are the steps you need to perform.
Make sure your extension (training) is there in the localextensions.xml
Update extensioninfo.xml to mark the extension as a template by adding below meta tag
<meta key="extgen-template-extension" value="true"/>
Look like
<coremodule generated="true" manager="org.training.jalo.TrainingManager" packageroot="org.training"/>
<meta key="extgen-template-extension" value="true"/>
<webmodule jspcompile="false" webroot="/training"/>
Create an extgen.properties inside training extension/folder with below properties
Please note, If your current extension is with a different name then training in that case you need to change below values accordingly.
extgen.properties:
YEXTNAME_TOKEN=training
YMODULE_TOKEN=training
YMODULE_PACKAGE_ROOT=training
YMODULE_CLASS_PREFIX=training
YPACKAGE_TOKEN=org.training
YMANAGER_TOKEN=TrainingManager
YCLASSPREFIX_TOKEN=Training
YGENERATED_TOKEN=Generated
Run ant extgen and select your extension (training) from the given selection option and give the name and package the way you want when it prompt for it.
Now replace training extension with the newly created extension inside localextensions.xml
Test and patch wherever needed! :-)
I don't think so. It might also be easier just to create a new one and move the code into the new extension.
No it is not possible. The generated extension itself was created from a template where the word "training" is inserted into many places (class names, package names, configurations...) .
The other approach would be to look into the ext-template folder (6.7). There are all templates. Search for any token in the templates and make appropriate change in your generated extensions.
Depending on the amount of your extensions, it will also take some time... and you need to understand how extgen works, first.
I am trying to export web content in liferay. The data is to be exported into a .lar file format.I tried with several methods like exportData(),exportPortletInfoAsFile() but could not export. I searched a lot in the source code but could not achieve the result. So please suggest some more methods or the way which I should use in order to achieve the same? Thanx in advance..
anybody know what exactly below code does?
SPWeb.Features.Add(Guid, bool)
Does it use the .xmls in Template\Features\<-myFeature-> to install the feature and activate it? Or just activate it? Or something else?
Thanks!
The method you specified activates feature with specified id on specified SPWeb object. It does not install it. Here is MSDN link.
It actually uses xml files in "Template\Features\<-myFeature->" folder when you activate feature.
But if you change file in this folder you won't see any effect momentary because this files are cached. After changing files in feature folder you need to do iisreset and then activate feature in order to see the difference.
I am trying to create a ssis package in c#. As I am new to C# and SSIS, i am facing an issue,when more than one transformation component is added.I am using a metadata file to get the values for components.But, i am not able to create a dynamic path between components.Can anyone help me to solve this problem? Thanks in advance.
Use global variable and pass it thro diff component of ssis