• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Duda modulo Company Directory
PostPosted: Thu Aug 25, 2011 7:43 am 
Offline
Forum Members
Forum Members

Joined: Mon Jun 28, 2010 9:16 am
Posts: 11
Hola tengo una duda, estoy con el modulo Directory Company y me gustaria implementar algun campo nuevo en el template Sample de Plantillas Sumarias.

He creado nuevos campos y ahora no se insertarlos.

Por ejemplo para insertar uno que ya existe lo hace asi:

{$entry->company_name}

Para los nuevos he probado mil cosas:

{$entry->prueba}
{$entry->customfield[field-1]}
etc...

y nada. Alguien sabe como puedo hacerlo?

Gracias!


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Duda modulo Company Directory
PostPosted: Tue Aug 30, 2011 1:23 pm 
Offline
Forum Members
Forum Members

Joined: Thu Dec 16, 2010 8:50 pm
Posts: 88
En la plantilla de sumario puedes ver las variables que estas usando {get_template_vars}

Si colocas hasta abajo de la plantilla {$items|@print_r} te imprime el valor de este array que es el que tiene la info que buscas, hay variables que contienen la informacion acerca de las definiciones de campos

\$1:
  {if $entry->fielddefs ne ''}

  {assign var=no_print value='true'}
  <p>Personnel definitions:</p>
  <ul>
   {foreach from=$entry->fielddefs item='fd'}
     {if $fd->value ne ''}
     <li>{$fd->value}, <span>{$fd->fielddef_id}, {$fd->id}</span></li>
     {else}
     {assign var=no_print value='false'}
     {/if}
   {/foreach}
  </ul>

   <p>IMPRIME: {$no_print}</p>
  {if  $no_print eq 'true'}
  <pre><code>{$entry->fielddefs|@print_r}</code></pre>
  {/if}


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
A2 Hosting