I've started to use the Scopes view in Intelij, since the favorites got removed with the latest update (2021.3).
Somehow in the scopes view there is always the full folder path visible. In my example: below the folder test.foo.bar.baz there are the two folders test.foo.bar.baz.obj1 and test.foo.bar.baz.obj2. I would prefer to have below the folder test.foo.bar.baz only the two folder obj1 and obj2 as in the project view.
Scope View:
Project View:
Is it possible to make the Scopes view look like the Project view?
Thanks for your help!
Show Options Menu (it's the cog button at the top right of the Scope View) and disable Tree Appearance | Flatten Packages
Related
I created a new extension "lecturers" with the TYPO3 Extension Builder (v.10.0.1).
As default actions, I added list, show and create. After creating the extension, I did not modify any of the files except the list template.
Usually, I add new data within the BE, as it can be seen in the image:
But when I open the list view, no data is shown. Also, the repository is empty (<f:debug>{lecturers}</f:debug>.
However, when I added a record within the create view, the repository as well as the list view includes that one record.
Does anyone know which lines of code I am missing, to include the BE records in my repository as well? Thank you for your help!
After removing the setting of persistence in the generated folder TypoScript/setup.typoscript it worked
I get this error when I right-click on controller action method and select 'Go to view'
This is in Visual Studio 2017.
i am pretty sure that I have the folders set up correctly in terms of naming conventions etc.
So I have an action method called 'Index' in 'MyMessagesController' within 'Controllers' folder.
And I have a view called 'Index.cshtml' within 'MyMessages' folder within 'Views' folder. The 'Views' folder is in same level as 'Controllers' folder.
Can anyone help me on this please.
So it was actually directory structure in the end. The structure is as follows:
So the controller I had was in MVCProject->MVC->Controllers.
The way it was mapped was that the view for it would be generated in MVCProject->Views.
But actually all the corresponding views were in MVCProject->MVC->Views and there was nothing in MVCProject->Views
I'm working on ASP.NET MVC 4 application which has user part and admin panel. For the user part I use the default _Layout view but in my Views folder I have subfolder Admin where I plan to set all my views for the admin panel and I want a different layout for them, let's say - _AdminLayout. For now I use:
#{
Layout = "~/Views/Shared/_AdminLayout.cshtml";
}
on top of each view in the Admin folder, but I wonder if there's a way to set _AdminLayout as default layout only for those views that are inside this folder and thus get rid of the explicit declaration for each view?
~/Views/Admin/_ViewStart.cshtml
#{
Layout = "~/Views/Shared/_AdminLayout.cshtml";
}
You can place a _ViewStart in any of the controller view folders to override the parent one. Convention makes it look to the most local path first, then proceed to Shared.
As an aside, you may want to look in to using areas to keep it compartmentalized, but that's really up to you and how you want to structure your project.
I am using Sencha Architect 2. I need to know how i could edit the code using the IDE. i clicked on the code tab but the code is in readonly format. How can i edit this code ?
sencha architect code cannot be manually edited if you wish to do so then go to the metadata folder where you saved the project and over there you can manually edit the files then come back and save in architect which will overwrite the existing files
There are 2 set's of code in SA. The code that's generated for you and the code that you add. To add you need to drop in event handlers (basic event bindings), functions, controller references, etc ...
In the code view there is a drop down with all of the items that contain code. Some of them may be editable depending on what type of class your looking at (view, controller, store, model).
I imagine your looking at the generated class (not directly editable). You add things to it by dropping behaviors http://cl.ly/0A0J1v1Q2O3C17233w10
Building on what Phil has said Sencha Architect only allows you to edit configs... If you are looking to edit properties in views you additionally need to create overrides and in the override you can modify the property like this
config: {property-name: {
//whatever you want to change}}
for example, I hava a partial template named _header.php, I want to use it in both Post, Forum module, How can i write renderPartial(), to load this template.
placed your partial view to app layouts dir.
<?php
$this->renderPartial('//_header.php');
?>
absolute view within a module:
the view name starts with a single slash '/'. In this case, the view will be searched for under the currently active module's view path. If there is no active module, the view will be searched for under the application's view path.
absolute view within the application:
the view name starts with double slashes '//'. In this case, the view will be searched for under the application's view path. This syntax has been available since version 1.1.3.
reference getViewFile()