List of Format Parameters for each Format Type

tenants

Well-known member
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 ;)
 
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'.
 
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?
 
Where do you need to allow HTML? In user posts?
No no, never for posts!
I enter the text in ACP only for a message via a Listener and Hook to the sidebar.
It's works perfekt ... but no simple formating like as <br> is possible.
 
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'
)
);
 
{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.webp
 
For me it's wokring nice


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

Attachments

  • test3.webp
    test3.webp
    2.6 KB · Views: 14
Top Bottom