Project

General

Profile

Feature #618

Ability to set @type and @length to the config_groups section

Added by Anonymous almost 8 years ago. Updated almost 5 years ago.

Status:
Rejected
Priority:
Normal
Category:
Core
Target version:
Start date:
January 28, 2013
Due date:
% Done:

0%

Estimated time:

Description

Request from wazza ( http://www.subrion.com/forums/subrion-cms-packages-discussions/955-working-packages-code-2.html#post4638 )

Can you guys add the ability to set @type and @length to the config_groups section?

I know it works in the fields section.

FIELD OPTIONS 
From Package Structure

<!-- @type the type of the field. Available: text, textarea, combo, radio, checkbox, storage, image, number, date, pictures, url-->

<!-- @length the number of symbols that are allowed. Available for: text, number, url -->

Why?

Well i have the need (im sure others will too) to set a number field for some options. Please see code below.

{if $config.recipes_enable_ingredients_list_view eq '1' && isset($config.recipes_ingredients_list_view_chars)}
{if $listing.ingredients}
<p><span class="muted">{lang key='ingredients'}</span>: <br />{$listing.ingredients|truncate:$config.recipes_ingredients_list_view_chars:"..."} 
<a href="{ia_url item='recipes' type='url' data=$listing}">{lang key='read_more'}</a></p><br />
{/if}    
{/if}

This is fine in the fields options but we also need this in the config_groups section.

At the moment i have to set to @text and obviously if text is entered into the config_group it will break. (based on code above).

History

#1

Updated by Vasily Bezruchkin almost 8 years ago

  • Target version changed from 2.3.4 to 3.1.8
#2

Updated by Vasily Bezruchkin over 6 years ago

  • Target version changed from 3.1.8 to 110
#3

Updated by Vasily Bezruchkin over 6 years ago

  • Target version changed from 110 to 3.2.7
#4

Updated by Vasily Bezruchkin almost 6 years ago

  • Target version changed from 3.2.7 to 4.4.0
#5

Updated by Vasily Bezruchkin almost 5 years ago

  • Target version changed from 4.4.0 to 4.0.4
#6

Updated by Vasily Bezruchkin almost 5 years ago

  • Status changed from New to Rejected

No real use for this.

If we need to use limits for number field, only field values should be used.

This is explained in another ticket.

Also available in: Atom PDF