• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

List of Format Parameters for each Format Type

tenants

Well-known member
#1
Is there a list of "Format Parameters" availed for each of the Format Types

For instance, I want to design a plug-in that uses a text-box. But I want the text box to have a Max char size of 140 characters

I've tried Max=140, but this doesn't limit it

To a text box, I know you can add the rows, eg:
rows=3

But it would be useful to have a list of all the options for all of the Format Types for future reference ;)
 

DSF

Well-known member
#2
Has nobody a list of "Format Parameters"?
I need a parameter to allow her some HTML-Statements.
Or with other words: '<br>' shall be executed and not 'stripped'.
 

Jake Bunce

XenForo moderator
Staff member
#3
Is there a list of "Format Parameters" availed for each of the Format Types

For instance, I want to design a plug-in that uses a text-box. But I want the text box to have a Max char size of 140 characters

I've tried Max=140, but this doesn't limit it

To a text box, I know you can add the rows, eg:
rows=3

But it would be useful to have a list of all the options for all of the Format Types for future reference ;)
What is the usage? Are you using xen:textboxunit in a template?

Has nobody a list of "Format Parameters"?
I need a parameter to allow her some HTML-Statements.
Or with other words: '<br>' shall be executed and not 'stripped'.
Where do you need to allow HTML? In user posts?
 
R

ragtek

Guest
#7
Is there a list of "Format Parameters" availed for each of the Format Types

For instance, I want to design a plug-in that uses a text-box. But I want the text box to have a Max char size of 140 characters

I've tried Max=140, but this doesn't limit it

To a text box, I know you can add the rows, eg:
rows=3

But it would be useful to have a list of all the options for all of the Format Types for future reference ;)
Just check the XenForo_Template_Compiler_Tag_Admin_X Classes


All the Types have a own class, with the controloptions
e.g => XenForo_Template_Compiler_Tag_Admin_SpinBoxUnit => $controlOptions = $this->_getControlOptions($compiler, $attributes, array('maxlength', 'size', 'min', 'max', 'step'));


XenForo_Template_Compiler_Tag_Admin_TextBoxUnit =>
$controlOptions = $this->_getControlOptions($compiler, $attributes,
array(
'type', 'maxlength', 'size', 'rows', 'code', 'dir', 'placeholder',
'autofocus', 'autocomplete', 'step', 'min', 'max', 'results'
)
);
 

DSF

Well-known member
#10
{xen:raw XenOptions.field_id} should work;)
No

Listener
Code:
public static function templateHook($hookName, &$contents, array $hookParams, XenForo_Template_Abstract $template)
    {
        switch ($hookName)
        {
            case 'ad_sidebar_below_visitor_panel':
            {
                $contents .= $template->create('DSF_Miniinfo_Short', $template->getParams());
                break;         
            }
        }
    }
Template
Code:
...
<span style="color:#65a5d1;">{xen:raw $XenOptions.DSF_Miniinfo_Short}</span>
...
I think her must be a Format-Parameter
3.jpg
 
R

ragtek

Guest
#11
For me it's wokring nice


template code:
HTML:
<span style="color:#65a5d1;">container:{xen:raw $xenOptions.ragtek_test}</span>
 

Attachments