Spartacus 4.0.0 - Property 'BEFORE' does not exist on type 'OutletPosition' - spartacus-storefront

I am trying to develop a page in Spartacus 4.0.0 and link it with SAP Hybris 1905 B2B site. i want to modify the header section of spartacus using Outlets and Outlet position. for some reason i get below error while adding "cxOutletPos".
Error: src/app/core/custom-components/custom-header/custom-header.component.html:1:67 - error TS2339: Property 'BEFORE' does not exist on type 'OutletPosition'.
<ng-template cxOutletRef="SiteLogo" [cxOutletPos]="outletPosition.BEFORE" let-model>
Appreciate if someone can help me out here.

SiteLogo is not a valid outlet. You can see the list of all the available outlets at the documentation link below.
https://sap.github.io/spartacus-docs/outlets/#software-driven-outlet-references

Related

Changes in properties vcl

I installed the latest community builder с++ 10.4 Sydney, but I don’t find the properties that are familiar to me in standard components. For example, TCombobox does not have a text property. Embarcadero combobox description contains this property. Prompt where it is possible to find the actual description of standard libraries. And how to get the text of the active element of the combobox.
i get this error
[bcc32c Error] Unit1.cpp(30): no member named 'Text' in 'Fmx::Listbox::TComboBox'
I was looking for up-to-date information, first of all on the official portal of the Embarcadero.
this constraction
BaudCBox->Items[BaudCBox->ItemIndex].Text
create an error access violation

Magento 2, PageBuilder - adding custom content type

I'm trying to add custom content type to existing page builder module in Magento 2 following https://devdocs.magento.com/page-builder/docs/create-custom-content-type/overview.html
Bit of a problem that docs is kind of outdated, but the biggest issue for me right now, is that for some reason, panel with settings of content type is not loading. Console doesn't throw any errors and I'm not even sure how to debug this.
Normal behavior: https://drive.google.com/open?id=1OClPda-WGuc7idNogUnTz0wi4ZSk_Qu_
Behavior of custom content type (settings are not loading at all): https://drive.google.com/open?id=1I-IeTImec-M8DuLfgjiA193mhm0Fwtd8
Maybe someone already stumbled upon issue like this and know possible ways to solve it?
Ok I've found out what problem was, so I'm answering this question in case someone will need this in future.
Check your ui_component xml structure, I was having an issue with naming there (namespace was not correct), and that's why it was not loading.

Ghost: Custom error message

Is there a way to have custom error message. For example, instead of having Page Not Found for 404, we can have Page Non Trouvé (in french!).
Is it possible? Directly from the error.hbs page?
Or maybe is it a french pack?
Thanks!
Yes you can provide your own error.hbs file with your template (see: http://support.ghost.org/ghost-themes-overview/#error.hbs). In your custom error page you can show the error message in french or customize it's appearance with handlebars.
Ghost is going to provide better language support in the future. For now it's still on the wishlist (see: http://ideas.ghost.org/forums/285309-wishlist/suggestions/7191893-localization).

Yii with Bootstrap error (CWebApplication.bootstrap not defined)

I have followed this setup, but not work for me http://www.cniska.net/yii-bootstrap/setup.html, all CSS files do not give style to the page,
So searching I found this thread How to install bootstrap extension in yii using some tricks. But not work's too.
Now I have this error
'Property "CWebApplication.bootstrap" is not defined.'
Anyone can help or have any idea?
Thanks in advance and for my English.
Property "CWebApplication.bootstrap" is not defined.
The error means the system is trying to access Yii::app()->bootstrap, which could be a property on the application. Since bootstrap is a component it should be accessible, if the configuration is done properly.
This error is most likely because you forgot the following in the main config file:
'components'=>array(
'bootstrap'=>array(
'class'=>'bootstrap.components.Bootstrap',
),
),
// This should point to the location you placed the files in for example extensions/bootstrap/components/bootstrap.php
The class location above will only work if the alias is set properly before setting the configuration.
Yii::setPathOfAlias('bootstrap', dirname(__FILE__).'/../extensions/bootstrap');
Instead you could also change "bootstrap.components.Bootstrap" into "application.extensions.bootstrap.components.bootstrap".
I strongly advise you to use Yiistrap, it was made by the person who create yii boostrap and the person who created Yiibooster. Yiistrap has everything from both extensions and more new stuff. here is the page http://www.getyiistrap.com , also has a fully documented API which yii boostrap do not have and it will save a lot of google searches.

how to solve the following error in rally tool?

Whenever i move from one release(ex: release-1) to another release (ex: release-2) by using release dropdown button, i am getting this error( in rally 1.26 and 1.27 versions not in 1.22). how to solve this problem? please send your reply to my mail.
My mail ID: ramesh_yenda#dell.com
Error: Tried to register widget with id==tableGrid but that id is already registered
https://pg-rally.us.dell.com/apps/1.26/component_10-03-2011.js
Line 16
Thanks,
Ramesh
This problem is caused by a change in the behavior of the table component between early versions of the App SDK where the table would automatically clean itself up and later ones where it would not.
Please see this example: developer.rallydev.com/help/ui-examples#iteration (Specifically the onIterationSelected function where you can see the table being destroyed before being recreated).