For a week I discovered CTLModuleMaker, which is great!
Now I ran into an issue. I create a drowdownlist by reading from the table cms_content, value: content_alias and label content_name.
In the blueprint I get:
Code: Select all
'1' => array(
'name' => 'Linknaarpagina',
'friendlyname' => 'Link naar pagina',
'type' => 'dropdown',
'params' => array(
'indexed' => '',
'options_table' => 'content',
'options_value' => 'content_alias',
'options_label' => 'content_name'
)
When I choose {item->Linknaarpagina} in the template to display it on the site, suddenly the output is turned into the content_name again.
Example:
Pagename = "Camping artikelen", alias = camping-artikelen is stored in the database as camping-artikelen and the ouput with {item->Linknaarpagina} is "Camping artikelen"
How can I get the value from the database (camping-artikelen) in the template?
Kind reagards,
Kees