0vote

HTML and function config

Hello. Is it possible to include html code in a function config() in the theme_config.php file ?
e107 version 2.1.5

2 Answers

1vote

Jimako Points1095
Not enough information.

theme_config.php is for theme preferencies, fields are in $fields variable.

Generally, it's php file, so if you want, you need insert html code :

- with echo function  or

- to variable f.e $text and return its value.  

Normally you can use type method for any field and write method where you can use html code (with above ways), but I can't image why this is needed in theme_config.php.

0vote

JacekCich Points9
Hi. I want to add more options. $text  or echo dosn't work. In ' function help() ' we can use html code

but in ' function config() ' no.

Jimako commented May 4

Maybe because it's not function but method in class (something with OOP).  And it uses new way of creating forms (admin_ui functionality). You can try to use type method for some field and write method for it, but I am really not sure if this can be used in theme preferencies. They are just fields, text, bbarea, anything but you need to set them correct way.   Each field can help help value when you can use html code.  

I still don't know what code you want to use there, but theme preferencies are for setting values, so they are just only form elements.  It's a type of form, nothing more.

Please log in or register to answer this question.

Know someone who can answer? Share a link to this

...

e107 Q&A is a Question and Answer platform where e107 users can ask questions themselves and answer each others questions. By doing so users can earn badges and points and become e107 experts.

This community platform is a valuable tool for sharing and gaining knowledge on e107. Go ahead and find out yourself!

Connect with us