Questions tagged as 'template'

1
answer

Search an object with a string or an int

I have a list with templates based on an array and what I try to do is to find the position of what I entered, either an integer or a string, but whenever I try, the program tells me that it can not convert an integer or a string to my object, o...
asked by 24.02.2018 / 07:36
1
answer

Appropriate class view to contain various forms of different objects

I want to do a view with three sections forms for three different objects, Priorities, States and Types to know. I have something like this . I did it using modelformsets , in a list view, but I do not know what kind of view to use to...
asked by 09.10.2017 / 14:39
1
answer

assign a Twig global variable

Hi, I'm learning to use twig, and I can not assign a variable to use in all the templates, in the documentation it says $twig = new Twig_Environment($loader); $twig->addGlobal('text', new Text()); and I use it like that $twig = new Twi...
asked by 07.03.2017 / 07:15
1
answer

Error no match for 'operator *' (operand type is class)

I have the following code that performs the search in Rear order of a tree: template<class T> Lista<NodoArbol<T>>* Arbol<T>::ordenPosterior(NodoArbol<T>*origen,Lista<NodoArbol<T>>* OPos){ while(1){...
asked by 12.11.2017 / 02:36
1
answer

Doubt about decoupling algorithm with templates

I have a situation with a queue that I made with templates When I fill the queue with data and then when I undo an item I can not re-enter any element, because it tells me that the queue is full This is the header link This is the fun...
asked by 17.10.2017 / 05:25
1
answer

Are there Skins, Themes, Templates, Templates, ... For controls in C #? [closed]

I suppose so, and that they are also free, but I can not find them. I'm looking for that, themes for my windows forms in c #. I have seen that they can be done as classes in the project and, since I do not have graphic designers for my applic...
asked by 13.06.2017 / 18:07
2
answers

How to make Template with Vue.js

I can not do this example on my local PC Example Template , if I want to create a template in a separate file where I can call it and use it in any part of my html, in order to simplify code, but I can not do it because I can not identify if I'...
asked by 04.12.2016 / 00:06
1
answer

I can not get Mustache to work

I'm following a tutorial on java modular script, in the same attempt to create on my server a small test like in the following codepen: link I have never used Mustache but it seems to be interesting although I can not make it work or look like...
asked by 25.11.2016 / 13:06
1
answer

Function that receives as parameter a C ++ template

I'm doing a project in C ++ and I have a class called DataContext where I will have vectors that store objects of another class as member data. I want to perform a function that resieves a vector of any type of class to be able to add, search, d...
asked by 11.06.2018 / 23:34
0
answers

Get the url of a journal Article in liferay 7.1

I need to get the url of a JournalArticle having its id. Right now I get the JournalArticle object, but I can not build your url. <#assign journalarticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLo...
asked by 30.10.2018 / 17:37