Broadleaf template Location - broadleaf-commerce

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.

Related

Changes to page template is not updated to old pages created from template

I have created page template in site pages library of SharePoint online and created some pages from it but when I change the template layout changes are not reflected in the old pages which are created from it. Please let me know if there is any way to resolve this issue.
I'm trying implement the functionality similar to page layouts in classic SharePoint sites. If there is no way to resolve this issue using page templates will it be a good idea to enable publishing features in modern SharePoint site and create page layouts in it.

How to add pre-generated HTML pages in Kentico 13

My Designing team use to generate static HTML pages (html files, css, JS, fonts etc) and use to share zip with us.
We are looking forward to add these pages in Kentico 13 Core.
I have created the custom page type having one field of type File.
Use to upload pre-generated HTML file from Pages app using above created page type.
But it use to attached as attachment and dont use to show contents. It did work with Kentico portal engine but didnt find ant option under Kentico 13 Core.
Please help!!
It's not entirely clear to me what type of behavior you are looking for, but if you are expecting to be able to customize HTML, CSS, and JavaScript in Kentico Xperience or Kentico 12 MVC the way it works in Kentico Portal Engine, that's just not possible.
Using MVC requires either:
Templates be coded ahead of time in Razor .cshtml files
Templates be designed as composable pieces that can be built up as Page Builder components (like Sections, Widgets, Page Templates)
Content Managers then will create Pages in the Content Tree and add their content to those Pages. Those Pages either have Razor Controllers/Views associated with them to render their content (and related content) or use the Page Builder to combine components that display content.
If you want to display Attachments in a Page, you can follow the instructions in the documentation.
If you want Content Managers to be able to upload HTML, CSS, and JavaScript files to be displayed/rendered on the site, you'll need to come up with a custom solution - potentially using Media Libraries and a custom coded solution.

How to use Relative URL for HTML links in Site Template for a Hero WebPart

I'm using Office365 for my company's Intanet Portal.
We have customized a SP Site and added a Hero WebPart on Modern Home Page, Edited the Links in that Webpart which points to some List and Lib URL in the same site.
List and Lib URL Links:
/sites/test/DocLib1
/sites/test/DocLib2
Then we saved the Site as a template and created new Project Sites based on the template.
Everything works fine, but the Links in Hero web-part is pointing to the Site Template Libraries URL and not the newly created Site Library URL.
I need to make this work, I can apply custom code also using JS or any other way.
Please help
We are using Modern Site Pages.
Thanks in Advance.
You could use properties from SharePoint JavaScript object _spPageContextInfo:
_spPageContextInfo.webAbsoluteUrl
_spPageContextInfo.webServerRelativeUrl

Setting a Liferay Journal Article Template as default

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

Replicate pages from OpenCms to Liferay

I know this is a duplicate post but I needed help here. I had posted about my query before on how should I approach to migrate a website which is currently in OpenCms into Liferay.
I will share whatever I have found on internet and a reply that I got in one of the forums here on stackoverflow.
I was suggested to use ftl templates. but won't it be like executing the code everytime the user makes changes to a web page?
The website has static as well as dynamic pages. I need a way to recreate them in liferay so that in future if the users wish to change the data content of website they can do so easily. IN case of dynamic pages they will upate their database. IN case of static pages they would want to change data (if required) from liferay framework.
How should I create templates and add pages that use a particular template and also add content to the pages?
SHould I write a code or can I do directly from the liferay UI ? Is there a quick way to do this?
Regards

Resources