I have and old version of sfsimplecmsplugin running inside of Symfony v1. I need to create new page templates but I don't know how.
Did you read the doc?
The plugin is bundled with a few basic templates, but you will definitely need to add your own templates.
CMS templates are files located under the sfSimpleCMS module's templates/ directory, with a name ending with Template.php. A template must include the sfSimpleCMS helper group and call the include_editor_tools() helper at the bottom.
So basically, you create a new file called /apps/frontend/modules/sfSimpleCMS/templates/myPageTemplate.php and you copy/paste this file inside as a starting point for your new template.
Related
Have followed the documentation
https://enupal.com/craft-plugins/stripe-payments/docs/plugin-development/template-overrides
Created a folder in my templates folder
templates/_stripe/donations/_frontend/[all the folders within frontend folder]
How can I include this in my template?
You only need to add the next path under the Templates Folder input on your payment form:
_stripe/donations/_frontend
And don't forget to enable the Custom templates lightswitch
Then display your payment form as usual (it will take your template override folder)
{{ craft.enupalStripe.paymentForm('handle') }}
Say I made a website with Wordpress, and created a few pages say www.foo.com/bar1 and www.foo.com/bar2. I have no idea where they stored this, since there is no /bar1 and /bar2 directory. Unlike when I created a site from scratch and added new directories like /public_html/bar1.
So how do I configure it like this without Wordpress?
It depends on the technology\framework you're using. Google 'Routing'.
Example for Asp.Net: https://msdn.microsoft.com/en-us/library/cc668201.aspx
When you create a page using WordPress, your all page will have a dynamic content with same layout from page.php file which is a mandatory file of a theme and served according to the routes. You will not see the page.php in URL or page. WordPress saves your page title in database and servers it accordingly (check the permalink section of WordPress).
When you create a custom site from scratch you can do the same by creating a file and re-use it according to the routes. You don't need directory for that.
Note: File extensions like .php .html are removed using .htaccess file.
Maybe you can use a framework like ZK framework to create a div content and refresh it according to the request. This way, you may not have to update any url in your application. You just refresh an inner div by dynamicaly including a new view.
Maybe this would help:
https://www.zkoss.org/wiki/ZK_Component_Reference/Essential_Components/Include
I want to create a ASP.net MVC5 project by using bootstrap template like this one "https://colorlib.com/polygon/metis/dashboard.html#".
I have download it by my browser but i don't know how to add it to my project in visual studio 2013.
I have not find a tuto that help to do that, i just find how to add theme.
May someone know how to do it or a tuto that can show me the way?
Thanks a lot
1.- Create a new project with the MVC structure. Bootstrap and jQuery are already installed.
The folder structure should look like this:
2.- Add your downloaded css in the Content folder
3.- Add your downloaded js in the Scripts folder
4.- Add your html files in differents view folders depending on what you want. You should put the common html elements of all the page in the _Layout page (e.g. Menu or Top bar).
Hope it helps!
Create a Bootstrap class inside the Content folder and name it
bootstrap-anything.css
App Start folder contains configuration files.
The folder should contain 3 files:
BundleConfig.cs
FilterConfig.cs
RouteConfig.cs
Go inside BundleConfig.cs, there should be a function
bundes.Add(new StyleBundle("~/Content/css").Include(
"~/Content/bootstrap.css",
"~/Content/site.css"));
Change
~/Content/bootstrap.css to ~/Content/bootstrap-anything.css
That's it.
I am just new to MVC, we are building a massive system and have alot of namespacing in our site.
Where is the standard place to store files (CSS, Images, .JS) etc?
Would it be good to put them under the Content folder in sub-folders to their namespace or drop them in with their respective parent files or both.
The default project structure includes a Content folder for CSS files and a Scripts folder for JavaScript files. A lot of people use this existing template, especially since a lot of Nuget projects may rely on this.
I personally like to put all of the content in a Content folder, and have a subfolder under this named Css and Scripts. It's really a matter of preference though. Do whatever is consistent and well-organized. That will be the key to making the application more easily maintainable.
Its better to put it in saparate folder as Script(js file) at root level.
Add sub folder in content folder for Images and Css etc.
we can also create multiple controller and views for each section of your project.
like for login section you can add Authentication Controller.
we can also use Helper class for adding general function and use it in every where.
you can see following link
http://msdn.microsoft.com/en-us/library/dd410120(v=vs.100).aspx
To start off, I'm using Asp.Net MVC 4, and I've modified my solution to contain the CodeTemplates folder by following this tutorial. (I think my issue might be MVC related?)
I've replaced the code in the Ajax grid template with a with my own JQgrid-template, which was fine for getting my project started. But I'm having trouble creating completely new controller templates (well the having them show up in the create new controller menu)
any ideas?
Update
I've taken a few stabs at using the scaffolding feature, but it's not exactly what i had in mind (although it does work like expected. I watched a video by steve sanderson on the topic that was quite informative), any way to get my custom views/controllers inside the add controller gui?
As far as my understanding of your problem goes, you cannot manage two controllers within one .ps1 file, which corresponds to your "AddController" directory.
You have to use the Package Manager and issue a command like
Scaffold CustomScaffolder <choose-name>
This will generate another subfolder below CodeTemplates with the name . From there, you open and edit t4 files like you did with your existing one.
More info here