When i try to import the project template i got the error
Why it was happening, and how to solve it?
I export the template by checking Content and Files option
Please help someone who have encountered this before?
This isn't a project template, it is a Portal or Site template (possibly a page template), but not a Project.
That sure looks like the error is telling you that the TAB (page) already exists. Check the XML file that the template created to see if you have multiple TABS in there with the same name/path.
Are you perhaps creating a TAB with the same name as the "ALIAS"
Example, in the Parent site you have http://site/CHILDNAME and you are now trying to create a portal called http://site/CHILDNAME?
Related
I'm trying to customize a Shopify theme and I want to include a template into another template, but this seems to work for snippets only.
Detailed: I want to add the login / register forms into a dropdown menu in the header which appears onlick.
So I added to my theme.liquid file the following code:
{% include 'customers/login' %}
But this returns the following error:
"Liquid error: Could not find asset snippets/customers/login.liquid"
This means that include can be used only for snippets? No template can be included / called into another? Or am I missing something?
Any way around this or a direct command for templates / pages?
No Shopify template can be included / called into another template. You should rely on snippets.
Shopify {% include '' %} works only with snippets, hence why your returned error by defaults states that it looked into snippets folder and could not found what you have included as in:
"Liquid error: Could not find asset snippets/customers/login.liquid"
That pretty much says the liquid looked for the login.liquid file inside the customers folders in snippets, but could not find it!
In this case, you would want to go to templates ==> create new templates and duplicate the file you want to make changes on.
I've inherited some code that doesn't work, where a button (with a custom function) exists in the admin page for particular dataobject, and triggers an email to be sent. The code is currently trying to populate the body of the email by using a template file, which is currently in the theme folder for the site.
However, the email body is blank, as the template is not being found. My understanding is that the admin section of the site doesn't look in the theme folder for templates. Where can I put the template (and the other templates it includes) where they can be found from code in the admin part of the site?
$email = new Email($sender_email, $recipient_email, "Your order has been shipped!");
$email->setTemplate("OrderShipped");
$email->populateTemplate(array("Order" => $order));
$email->send();
The error being output to the error log is this:
[17-Nov-2014 14:34:01] Warning at framework/view/SSViewer.php line 780: None
of these templates can be found in theme 'mytheme': OrderShipped.ss
(http://mytestsite.co.nz/admin/orders/MyOrder/EditForm/field/MyOrder)
As the theme is not set when in the backend of the CMS, templates should not be in the themes folder. You can try to move the file into mysite/templates/Email for the main email template. Any includes can be stored in mysite/templates/Includes.
as jfbarrois wrote, the theme is not set in CMS. So I used this small hack and it started to work:
Config::inst()->update('SSViewer', 'theme_enabled', true);
Config::inst()->update('SSViewer', 'theme', 'mysite');
// change 'mysite' with the name of your theme
and you can keep the template in "mysite/templates/Email".
Maybe there's also some other option how to do that, but I haven't found it yet.
I am currently working on a new website with TYPO3 and now I am facing a big problem with template/cache.
Environment:
Extension "Portfolio" adds a new content element with Extbase/Fluid-Template. The template contains only the sentence "Create custom template" because I don´t want to provide a default template.
Extension "Layout A" contains the main template for the website, as well as the template for "Portfolio".
Cases:
When I am logged in as admin always the correct template is used.
When I am logged out and make "Clear all cache" in install tool the first page I load afterwards gets the correct template. The second/third/... page uses the first and wrong template.
Settings:
"config.no_cache = 0" is disabled
TYPO3 6.2.2
RealURL enabled
I added a TypoScript Text-Object with the template path to my fluid template and printed it in fronted. Always the path of the correct, second template.
Does anybody have an idea what´s the problem?
Thanks in advance!
Best regards
Boris
Install Tool Clearcache will clear the extbase cahe, so maybe the tempalte paths might be lost.
You should set the path to the templates explicitly via:
plugin.portfolio.view {
layoutRootPath = {$path}
partialRootPath = {$path}
templateRootPath = {$path}
}
I'm trying to get an extension/plugin on a page to use a different template from the one its hardcoded with.
I made an html template stored in:
typo3conf/ext/myextension/pi1/new_extension_template.html
I made a typoscript template object in the root of my site (so it would definitely get picked up).
In it, I have defined the following simple Typoscript (names changed for demonstration)
plugin.tx_myextension_pi1 {
templateFile = typo3conf/ext/myextension/pi1/new_extension_template.html
}
However when I load the page containing the plugin, I get a "no typoscript template found" error on that black TYPO3 error page.
I have tried a bunch of alternative ways in case the syntax was wrong but the above worked for me when working with the tt_news plugin.
E.g I have tried these without success too:
templateFile.file = typo3conf/ext/myextension/pi1/new_extension_template.html
...
tempfile.template_file = typo3conf/ext/myextension/pi1/new_extension_template.html
Any ideas what I'm doing wrong?
Can html templates stored in typo3conf be called via typoscript stored outside the plugin?
I'm thinking perhaps html template files would have to be stored in fileadmin/plugin_templates/ for this to work.
You are mixing things: no typoscript template found means that on the page you inserted the plugin there is no TS template available.
Page with plugin isn't nested under the main page (which - as I assume - has main TS template and is displayed properly), so just drag it into the main page, or create new TS template on its level.
I am using Grails 1.3.7 and deploy to JBoss 5.1.1. when I try to access a page myPage.gsp in one of the plugins. I got the Template not found error.
the page is working ok when using grails run-app. and the template file are definitely in th correct location and it is NOT missing.
I had searched around this issue, there is nothing really out there. I am new to Grails, I cant understand why this file is not found as it is there.
File structure as following:
grailsPlugins
myplugin
grails-app
views
templates
_myTemplate.gsp
mypages
myPage.gsp
in the myPage.gsp, I have a line like this:
<g:render template="/templates/myTemplate"/>
Can anyone help on this?
I've encountered this same issue before, so just for reference for others, while adding the optional attribute plugin="myplugin" works to resolve the plugin location, it won't allow the application that installs the plugin to customize the myTemplate template(if there is ever a need to as there was in my case!)
I found that copying the templates over to the application on install or via a script, just like Spring Security copies login template when you run the s2-quickstart was the easiest way to completely resolve the issue.