CTLModuleMaker dropdown value/label issue

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
KC
Forum Members
Forum Members
Posts: 33
Joined: Fri Feb 02, 2007 12:28 am

CTLModuleMaker dropdown value/label issue

Post by KC »

Hi all,

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'
)
In the admin this works like a charm, I can choose the right page by it's name and the alias is stored in the database.

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
Post Reply

Return to “Modules/Add-Ons”