I need to link a product with editorial content from another platform (wordpress by example).
Is it possible to create function in the template engine (like in smarty) which will detect a specific tag ?
For example, if in my product description there is this king of tag {% post_related=ID %}
then my function in the template engine would replace that tag by html code or call a webservice....
Also, what template engine is use in Hybris ?
Thanks
I not sure on template engine but hybris comes with there very own cms which is the base of all the website related content.It is based on spring+jstl.Or in parts of hybris like email and cockpit velocity templates are also used
You can check out hybris tutorial
Related
In Kentico Xperience13, when I go in the Page Template application they said we need to use the Page Application to create a page and save it as a Page Template. But when I create a Page I don't see the place where I can save as a Page Template. So when I came back in the Page Template application the list is always empty.
To use Page Templates in Kentico Xperience 13, you either need to create default templates through code - see Developing page templates, or you can save widgets that have been added to a page as a custom page template - see Saving pages as custom page templates
As someone currently working on a site in Xperience 13, you may want to consider taking a class or two on Pluralsight to give you the basics of MVC and .net core. I am new to those but have been using Kentico for over 10 years. This change to MVC has been a bear to learn. But the Pluralsight courses have helped me get a better understanding of the structure.
Kentico does use content based routing as an option (and I think it is default in 13) you can learn more about it here https://docs.xperience.io/developing-websites/implementing-routing#Implementingrouting-Contenttree-basedrouting
when you build page types you don't have to worry about the model and the controller portion, kentico handles it, you just need to build the view.
this tutorial covers the basics https://docs.xperience.io/13tutorial/asp-net-core-development-tutorial
Hi I Want to the Template Location of broadleaf site. for example the broadleaf site homepage is loaded from the layout/homepage template and i want to know about the where other templates of broadleaf site are loading.
Please Help me to Solve the issue.
Thanks In Advance
All of the Broadleaf templates are in the templates directory of the site project. There is a template resolver that specifically looks for this classpath location. Some of the templates are partials that are included as pieces of other templates with th:include and th:replace. Others are apart of larger layouts, as you found with layout/homepage.
However, URL resolution and template resolution are different things. For instance, the home page that you see is actually resolved by an entry in BLC_CATEGORY with a URL of /. This category also references the template path layout/homepage. The other form of dynamic URLs in Broadleaf are:
Pages - entries in BLC_PAGE
Products - entries in BLC_PRODUCT
all of which can load different Thymeleaf templates for display.
I am using Kentico portal to make an E-commerce site.If I wish to change the design of available sample E-commerce site.Would it be a tidious task ?
Example : If I download e-commerce design templates (i.e html and css files) and I wish to change design of each page of sample kentico site (home page,product detail page etc.)then, what is the most suitable and quick way to achieve this ?
How should I update the html/css of each page of available site with downloaded templates? OR Should I create entirely a new e-commerce site in the portal ?
The out of the box sites are meant to be used as examples and references not to build a production site off of. The markup used on the Ecommerce site will also be different, considerably different than your purchased template. I've found it much easier and faster to start from scratch with a blank site and implement all of the design that way. Make sure you take advantage of shared layouts and templates, this will help make development and re-skins in the future easier.
I have a liferay Journal Article (Web Content) structure, and this structure is available globally as well as one template using this structure. We are now using this structure in several sites and almost all of our sites have additional templates using this structure.
Is there a way to set one of the templates as default for this site ? So that our editors donĀ“t always have to change the templates after they have created a new Web Content ?
Best regards,
Daniel
I'm using Liferays Application Display Templates to render a set of web contents the way I like (which is working quite fine). Below you find my ADT code to list all news.
<table>
<#list entries as entry>
<#assign published = entry.getPublishDate()>
<#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry) />
<tr>
<td>${published?string["dd.MM.yyyy"]}</td>
<td>${entry.getTitle(locale)}</td>
</tr>
</#list>
</table>
Now the question I have is how can I customize the actual web content and not just the list of contents? Once I chose one entry to see the full web content using my rendered link I always get a default view with a default headline and some social network buttons and stuff. Is there a way to customize this view as well?
I'm using Liferay 6.2.
Thanks for your help and regards. Sebastian
The question implies we're dealing with Asset Publisher portlet customization.
Liferay 6.2 supports customization of the asset list either with ADTs (ie. Freemarker or Velocity templates) or custom display styles (ie. JSPs).
While the support for asset list customization is excellent, Liferay 6.2 doesn't support ADTs or display styles for the asset details. The detail is always rendered by full_content.jsp.
If you need more control of the HTML output for asset detail (title, back link etc.), you have to hook the JSP (full_content.jsp). For general info on JSP hooks, see Overriding Web Resources in the Developer's Guide.
Please note that by hooking this JSP, you'll be overriding the detail view for all Asset Publisher instances in your portal. It's always helpful to think twice, whether the hook is necessary and if it's worth it at all.
Regarding the social network buttons and stuff - this can be configured in Asset Publisher configuration (see Display tab).