TEMA:

Showing a value at the Editable template 1 año 8 meses antes #259453

  • Autor del tema
  • markboos
  • Fuera de línea
  • Navegador Iniciado
  • Navegador Iniciado
  • Registered
  • Mensajes: 8
  • Gracias recibidas: 0
In the Content template, I show a value with this code:
<div class="result-row1"><strong class="list-title">{field1:label}:</strong> {field1:value}</div>

In the Editable template, I want to show this value the same way, but it returns at the edit formTest: {field1:value}



In other words: the "value" isn't recognized. The code that works is
<div class="result-row1"><strong class="list-title">{field1:label}:</strong> {field1:item}</div>

The disadvantage is that the value comes with the edit box around it (I guess from the {field1:item}, so I can't do normal html / css markup.How to show a plain value at the edit form ?
=========
Huray for open source and people sharing instead of keeping code secret !
Adjuntos:

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Showing a value at the Editable template 1 año 8 meses antes #259456

  • Avatar de tihana.krivic
  • tihana.krivic
  • Fuera de línea
  • Moderador
  • Moderador
  • Registered
  • Mensajes: 12079
  • Gracias recibidas: 778
Hi,

basically, in editable template if you check Create sample->and save it, you will see fields like this (this is auto created if you check Create sample->and save it):
{field1:label}
{field1:item}
{field2:label}
{field2:item}
where field1,field2 are names of your fields (not title)

After that add html css on fields.


Which editor are you using?

Regards,
Tihana

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Última Edición: Post by tihana.krivic.

Showing a value at the Editable template 1 año 8 meses antes #259464

  • Autor del tema
  • markboos
  • Fuera de línea
  • Navegador Iniciado
  • Navegador Iniciado
  • Registered
  • Mensajes: 8
  • Gracias recibidas: 0
Thanks Tihana, but I found out that I had to replace the file contentbuilder.php from this thread:

crosstec.org/en/forums/37-contentbuilder...template.html#242811

After that I could show the value using {field1:value} which is very convenient !

Will this feature be available in the next version of CB ? Else we have to download the file after every new update of CB.
=========
Huray for open source and people sharing instead of keeping code secret !

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Showing a value at the Editable template 1 año 8 meses antes #259469

  • Avatar de tihana.krivic
  • tihana.krivic
  • Fuera de línea
  • Moderador
  • Moderador
  • Registered
  • Mensajes: 12079
  • Gracias recibidas: 778
Hi,

ah yes, I remembered this now.
Please use this Markus's file:
crosstec.org/en/forums/37-contentbuilder...template.html#242839

Thiis will be added in next update

Regards,
Tihana

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Showing a value at the Editable template 1 año 8 meses antes #259471

  • Autor del tema
  • markboos
  • Fuera de línea
  • Navegador Iniciado
  • Navegador Iniciado
  • Registered
  • Mensajes: 8
  • Gracias recibidas: 0
Sorry I didn't find the mentioned thread before my post. I googled yesterday but couldnt find this. today I searched on the forum (possibly with slightly different search terms) and I found the thread with the exact problem I had with {field1:value} at the editable template.

So maybe you want to delete my thread alltogether.
=========
Huray for open source and people sharing instead of keeping code secret !

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Showing a value at the Editable template 1 año 8 meses antes #259472

  • Avatar de tihana.krivic
  • tihana.krivic
  • Fuera de línea
  • Moderador
  • Moderador
  • Registered
  • Mensajes: 12079
  • Gracias recibidas: 778
Hi,

no, everything is ok :)

I will not delete your thread :)

If you need anything else, feel free to ask

Regards,
Tihana

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Última Edición: Post by tihana.krivic.
  • Página:
  • 1
  • 2
Moderadores: ForumSupport
Tiempo de carga de la página: 0.067 segundos

Live Support Chat Opened!

Join our Discord chat here and enter the Crosstec channels to receive live support and talk directly to the team!