etana / template Goto Github PK
View Code? Open in Web Editor NEWTemplates de forumactif
Home Page: http://forum.forumactif.com/t348435-variables-de-template#2972031
Templates de forumactif
Home Page: http://forum.forumactif.com/t348435-variables-de-template#2972031
Salutations,
Pour mon forum je travail sur une version custom de la fiche de personnage (à base de CSS maison et javascript).
Seulement je rencontre un problème quand je souhaite utiliser {rpg_fields_left.F_NAME}
et {rpg_fields.F_NAME}
En effet, {rpg_fields_left.F_NAME}
et {rpg_fields.F_NAME}
, insèrent le code suivant :
<span class="gen">F_NAME</span>
Ce qui, tu en conviendra, n'est pas très pratique quand on veut modifier le template comme suit :
<!-- BEGIN rpg_fields_left -->
<dl>
<dt class='{rpg_fields_left.F_NAME}'><label>{rpg_fields_left.F_NAME} :</label></dt>
<dd>{rpg_fields_left.F_VALUE_NEW}</dd>
</dl>
<!-- END rpg_fields_left -->
[...]
<!-- BEGIN rpg_fields -->
<dl>
<dt class='{rpg_fields.F_NAME}'><label>{rpg_fields.F_NAME} :</label></dt>
<dd>{rpg_fields.F_VALUE_NEW}</dd>
</dl>
<!-- END rpg_fields -->
Peut-on envisager une modification ou mieux, une valeur alternative du genre :
{rpg_fields.F_RAW_NAME}
Qui ne contiendrait que le nom du champs en "brut" (minuscule, underscore, pas de code html superflus)
Amicalement,
Marc
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.