Most voted "template" questions
Template (or "document template") is a content document, with only the visual presentation (headings for example only) and instructions on where and what type of content should enter each portion of the presentation - for example content that may appear at the beginning and content that may only appear at the end.
Learn more…112 questions
Sort by count of
-
1
votes0
answers1042
viewsMulti-level Treeview Menu does not work in Adminlte
Problem: I’m using the template Adminlte 2 (very good template! ) in the project that uses the Framework Laravel. I was able to include all the files and configure the layout to be displayed on…
-
1
votes2
answers374
viewsCreate loop in templates with php
I’m having trouble creating an algorithm to implement the use of loops in a class of template simple. I have my class below, it gets an HTML file, looks for strings specifies that are in this file…
-
1
votes1
answer436
viewsFLASK - Changeable in template
I passed to the template a variable and need to change (in the template) the value of it. Ex.: in the controller: return render_template('index.html', start_code = start_code). I need to change…
-
1
votes2
answers135
viewsUsing Templates with PHP
Hail! I have a system with template that I mounted on PHP represented by the following structure: require("header.php"); require("content.php"); //carregado dinamicamente via GET require("footer");…
-
1
votes1
answer464
viewsProblem with Laravel + Adminlte application
My problem is the following, the application I am developing has a customer listing, which uses the following code for display: <section class="content"> <div class="row"> <div…
-
1
votes2
answers1067
viewsBootstrap 4 Tooltip does not work properly at Angular 6
Below is the implementation of bootstrap in my application (angular.json) "styles": [ "src/styles.css", "./node_modules/bootstrap/dist/css/bootstrap.min.css" ], "scripts": […
-
1
votes1
answer283
viewsHow to add values after filtered in Django?
Here’s my loop (in my.html template): {% for item in filter.qs %} <tr> <th scope="row">{{ item.id }}</th> <td>{{ item.nome }}</td> <td>{{ item.data|date:"d, F"…
-
1
votes0
answers12
viewsEmbedding blocks into other blocks is not supported
I have developed a Volt template and intend to use it as a default for others. There is an example of my code below: {# LOCKED MODE #} {% if session.get('locked_mode', true) is not empty and…
-
1
votes0
answers76
viewsLoad a component into another template
I have an angle app with a Drawer. The application usually works by displaying its contents in the Drawer/content central panel. However, by clicking on a button you need to open a new tab in the…
-
1
votes1
answer249
viewsCreate permissions on Django
I was trying to create a permission for my template but I couldn’t. I did some research to know how to do it and I’m not getting it. basically would like a permission similar to what Django has for…
-
0
votes1
answer227
viewsHow to set HTML attribute with @Yield() in Laravel?
I’m trying to create a template for my control panel in Laravel. I want the top right corner to have a BACK button, where I can set the link with the @yield I tried to make the following code, but I…
-
0
votes2
answers1357
views(Django) How to implement a button in the template that triggers any method?
My question is about implementing buttons in any template. I want to click this button and do the same thing, such as display a message on the screen. How can I do that? Here is an image of my…
-
0
votes1
answer45
viewsGenerate file template with Maven
Good morning, everyone. With Maven Archetype you can generate project templates. Is there any way to generate file templates for Netbeans with Maven?
-
0
votes0
answers108
viewsGrid Telerik Kendo UI - Delete Row JS and call function
I am adding lines normally and adding in a Javascript array, I need to remove a selected row and remove it from the array and last save to the database. The excerpt below is not working properly,…
-
0
votes2
answers146
viewsJquery template does not work on HTTPS page
I have an AJAX function that works on several pages, except on a page that uses HTTPS: $.ajax({ url : url, type : "get", async: false, success : function(result) { console.log("Status AJAX: " +…
-
0
votes1
answer240
viewsDjango Template Email
DJANGO: Could someone help me place an email template (pull some html or css to the email content) through the views.py? I tried everything that way but it didn’t work, thanks from now on. Views.py:…
-
0
votes2
answers1024
viewsHow to create a "template" for pages?
I am new in website development, programming, etc., my beach is Design, but I would like to know how you do when you need to repeat some layout in all pages of the website. For example: I need to…
-
0
votes1
answer139
viewsHierarchy of templates - Wordpress
I would like to know simply, easily understood, if someone can explain about the hierarchy of WP templates. I’ve seen a lot about it, including the image of the documentation, but for some…
-
0
votes1
answer762
viewsHow to install the Rain TPL library?
Could someone show me an example? Yeah, I put it here in mine index.php this way, but, I believe it is outdated. With the current version, I believe it should be different, because it did not work…
-
0
votes1
answer609
viewsTemplate class, include header and footer
Hello, I had already posted here some time ago about my templates class, but I decided to a modified one, because every time I want to edit a menu for example, I have to edit in all my files. This…
-
0
votes1
answer1469
viewsConfigure Template(ready) in Laravel 5.x
I’m relatively new to developing with Laravel. I bought a template(bootstrap) for my system but do not know how to configure it to work frontend of my application. I’ve tried some tutorials that…
-
0
votes0
answers22
viewsDoubt about templates using MVC
Following the good practices of the MVC model, would it be correct for a template to evoke another template? Or it would be a feature unique to a map or controller?
-
0
votes1
answer47
viewsHow to create a layout within Jquery and popular with data within a JSON
To create my image database and I have a page that I CURRENTLY populate by iterating a list(c#), follow the code: @{ List <ImageIndexer> imagesFoundList =…
-
0
votes1
answer248
viewsHow to change the face of the site when accessed by mobile?
Situation: I have a website with designer for large screens, I created a template for mobile, like an app. That’s why I want this template to be shown only when accessed by mobile, instead show the…
-
0
votes1
answer155
viewsLoad operator "<<" by separating the declaration(.h) from the definition(.cpp)
I’m trying to separate the definition of the class implementation into separate files, but I’m getting Undefined Ference on the operator <<. What I’ve already tried: Change the order of…
-
0
votes1
answer54
viewsHow to manipulate an HTML element created by Template literals?
Does anyone know why when you create an HTML component using Template literals it always returns null? ex: I created a list and I want to take the li to put an event, but always returns null, since…
templateasked 7 years, 1 month ago paulo roberto Costa 1 -
0
votes1
answer412
viewsSend HTML e-mail template with Phpmailer
People I’m trying to send e-mail using phpmailer, but with the message using html template, but this going only the codes by email, some tip of how to do?
-
0
votes1
answer206
viewsHeader and Footer with ASP. Net C#
I’m doubtful to separate my code,I did some tests of having separated the header and footer but in visual studio I did that can only have only one <% Page, as I can separate the header and footer…
-
0
votes1
answer40
viewsC++: Elements just below the constructor call of a class
In my teacher’s code, he passed the following class template, with the constructor defined below: template<typename T> class CircularBuffer { std::vector<T> _elements; size_t _first, _n;…
-
0
votes1
answer861
viewsAlternatives for PHP
And I really like C# so I took a look at ASP, but I didn’t like it much. I’ve handled Nodejs and I like it a lot. I wanted a language like PHP, where you can put the code inside the HTML and…
-
0
votes0
answers246
viewspermission of Django
Good afternoon, I am wanting in the template to make a loop to disable a button according to the custom permission .. The model code is: # -*- coding: utf8 -*- from __future__ import…
-
0
votes1
answer95
viewsJade/Pug not repeat the same code
I would like to know how to do not need to repeat codes, I do not know if using the for, for example I have this code below that corresponds to a card with data from an educator I will have several…
-
0
votes1
answer509
viewsImport Vuejs template from external html file
Is there any way to import an html file in the template? Vue.component('porcentagens',{ data: function(){ return { porcentagemSangramentoMarginal: 78, porcentagemPlaca: 78, porcentagemOLeary: 78, }…
-
0
votes1
answer210
viewsHow to use "break" in Blade template?
I’m developing a Checklist modal where the new protocol data will be registered. Each item attribute will be informed by the user and this information will be recorded in the table…
-
0
votes1
answer62
viewsHow to pass structures to templates class functions
I just don’t understand why it’s wrong. This code works. template class test{ public: struct st1{ T a, b, c; }; struct st2{ T d, e, f; }; T foo1(st1 *st); st1 *foo2(); }; template typename test::st1…
-
0
votes1
answer159
viewsHow to use template to specialize a function with char *?
I am doing C++ exercises and created a template for the function of returning the highest value. template<class Type> Type maximo (const Type a, const Type b) { if (a > b) { return a; }…
-
0
votes1
answer117
viewsError tagged with php in Smarty
I have a question related to the Smarty 3.1 template engine, I’m trying to use the {php}{/php} tags in the templates and I’m getting the following error: Fatal error: Uncaught --> Smarty…
-
0
votes2
answers117
viewsConcatenate more values into a value of an input in the Blade form
I Doubt how I can concatenate more values into the same input in the value of a form using Blade. Example: <input type="hidden" name="produto" value="{{ $produto->descricao}}"> I am only…
-
0
votes1
answer44
viewsHow to create a template system with PHP slots/sections?
I have a question for study purposes. I am developing an MVC and AJAX project and, on the pages that would use Javascript, I would use these delimiters. Code: <?php $script->start('js'); :>…
-
0
votes2
answers218
viewsfor in range no flask template
I’m in doubt, the API I’m getting returns me two data types "ID" and "Title" are several id and title and I wanted to play this on my table in a "for" template. I wanted to know if what I did was…
-
0
votes1
answer115
viewsError with Template
Please, could you help me!? The errors are for all the headers of the.cpp stack file that refers to.h. Involves using Templates. Battery code. h: #ifndef PILHA_H #define PILHA_H #include…
-
0
votes1
answer119
viewsError every time I make a Flask Requests
When I make requests from an Api to show the number of players in my template where "For in range (200)" returns the data and not the error. <table class="cor"> <tr class="fundo">…
-
0
votes3
answers425
viewsConsume api - Angular
Good night I’m consuming a film api at Angular. However I can not display in the template, the console.log is showing right, but I can not pass the value to template My Component : import {…
-
0
votes1
answer75
viewsSet a css class and render the form in Django
I created the following class: from django import forms class FormDefault(forms.Form): def __init__(self, *args, **kwargs): super(FormDefault, self).__init__(*args, **kwargs) for field_name, field…
-
0
votes1
answer194
viewsI cannot render html in python 3
I have the following app: #!/usr/bin/python3 from bottle import template, route, run import html cabeca = (''' <html lang="pt-br"> <head> </head> <body> <nav id="menu">…
-
0
votes1
answer62
viewsHow to change wodpress paging to load more
I have a site in wordpress, Thema is the TOTAL. In the pagination of this theme, are the page numbers and the previous and next arrows. What I want is to replace this pagination with a button to…
-
0
votes1
answer356
viewsHow to use the Len function in a python template - Flask
I have an Appweb in python-Flask that would like to show the amount of players online, only I’m a little lost in this part already tried {% Len(date) %} and {% data|length %} and no two methods…
-
0
votes1
answer161
viewsHelp with Django Template Directory
Guys, starting to study Python with Django now and a doubt has arisen here that I can not solve. django.template.exceptions.TemplateDoesNoteExist: home.html Views.py from django.shortcuts import…
-
0
votes1
answer32
viewsmenu conflicts in wordpress
Good morning to all!! Guys, I created a theme for a store and everything is working fine, but now I needed to create a second menu (for the footer)and when I create the links, the first menu (from…
-
0
votes1
answer368
viewsRaintpl does not render HTML
I’m having a problem using Raintpl, it doesn’t render HTML on the page. //Função que eu pego os dados do banco e retorno. public static function listAll() { $sql = new Sql(); return…