Pyrocms Field type usage - codeigniter

How to create text input field in pyrocms ? I read this API http://docs.pyrocms.com/2.1/manual/field-types, but didn't understand how to create input field in my theme layout
I tried like this in my layout, output is nothing
This is my understanding, to use field_type
{{ field_type] : [function_name] [argument varisbales] }}
I tried like this on layout
{{ text:form_output name="test" }}
May be my understanding is wrong.
If anyone used this module, kindly share I have no past experience with Pyrocms
Thank you

What is the text input field for? If we can understand your objective then we can propose a solution. For example, the text field is probably for use in a form. What is the form's purpose ? Maybe Streams has the solution for you. See the Streams documentation here.

Related

Vuetify Input Mask

Has anyone found an Input Mask library that works with Vuetify using a directive? I have tried Cleave.js, vue-mask, imask, and a few other and they all seem to fall short or are buggy. Any suggestions would be appreciated.
is there a specific thing that you are trying to achieve, the mask that they have by default you can use to mask text fields already they have some pre-made and you can customize to your needs. I'm just curious as what you are trying to achieve.
Thanks for your response. I have looked at the provided masks but they dont work for my needs. For instance, I want to have an input field that only accepts numbers but isnt limited to the amount of numbers. If I put mask="####" as the attribute it will only allow numbers but only 4 digits. If I want to allow unlimited numbers how would I accomplish that? Thanks for your help

Magnolia field check validation

I want to add the following functionality within a page's dialog.
Suppose you have text field A and text field B (to the dialog's yaml file).
I want to make field B available for the author (input) only when text field A has content.
I know it is a straightforward problem but i am relatively new to magnolia.Any help is appreciated
Thanks in advance
Unfortunately fields are completely atomic and independent so there's no way of fields reacting to each other without rewriting DialogPresenter to make them aware of each other.
You can see example of how this can be done e.g. in magnolia-external-form module if you use enterprise version of Magnolia. Code for it is in Magnolia's git repo.
HTH,
Jan

Laravel 5 What is the difference between simple text in a link and link with blade syntax?

In laravel, links are sometimes written as
{{ __('Admin Login') }}
And other times, written simply as
Student Login
What is the difference between these two syntax?
What is the advantage of the first syntax ?
Using __ utilizes the localization system in Laravel and can display the text in another language if you have it set up.
You can read more about it in the documentation:
https://laravel.com/docs/5.6/localization#retrieving-translation-strings
If you want your website in different languages you should use it, otherwise your better of with just typing it as plain text.

Where to find documentation for form field types?

I'm getting frustrated with my own inability to find a source of information regarding what options / attributes are to be used when defining the XML file for a form in a component.
The file I'm talking about might be located in /administrator/components/com_report_wiz/models/forms, as an example. It defines the field to be used in the admin form for a component. I used a component creator to build a sample component as a learning experience. It created an xml file in that folder which has fieldset elements that then contain field elements. This us then used with the getLabel and getInput methods of JForm to generate the form shown in the admin interface. That's terrific!
But, after spending hours Googleing everything I could think of, I still can't find any reference that shows what types of fields are available, and their parameters/options. I've found lot's of tutorials and such regarding creating custom field types, and that's been interesting.
In the file I'm looking at, for example, the following creates a simple text input field in the form:
<field name="rpt_appname" type="text"
label="COM_REPORT_WIZ_FORM_LBL_REPORT_RPT_APPNAME"
description="COM_REPORT_WIZ_FORM_DESC_REPORT_RPT_APPNAME"
default="None"
maxlength="100" />
I would love to find some reference that lists the different possible values for the "type" attribute, and the parameters that can be used with each.
I'm beginning to think I'm dumber than a box of rocks since I can't figure out where to find information on some of the most basic parts of Joomla! development. The docs that are auto-generated from the code are less than helpful to me since they don't explain the parameters to functions. It's nice to know what parameters a method/function expects, but it's more helpful to understand what those parameters are and contain.
The tutorials have been helpful, but are mostly too basic to use for more advanced features, or at least as a source of information. They have been great, and I really appreciate the effort the authors have put into them, but now that I've gone through them, I find it difficult to discover the info needed to write a proper, complex component. With a system as complex and extensive as Joomla, it seems that there should be a place to find out how to use the wonderful abilities it provides without having to resort to reading the source code.
Any suggestions about where to search, search terms would be greatly appreciated!!
The first starting point would be to look at the Joomla! Documentation - I know sometimes it is frustrating to use it, but give it a change. It gets better and better as we speak.
Typing in the search box text will get you to the page Text form field type. Also in the documentation you will find a list of Standard form field types.
My favourite way of doing is directly inspecting the code in JOOMLA_ROOT/libraries/joomla/form/fields for the needed form type. You get to see there all the parameters and quicklier understand why something does not work the way you think it should work.
Since you are new to Joomla, your questions might get a better attention at the Joomla! Q&A site.
Hope this answers your question.

Changing CodeIgniter url_title from Czech characters to standard English characters

What's the best way to save CodeIgniter url_title's originally written using Czech characters as standard English characters? For example:
Currently this:
/projects/Hledám-sponzora-na-nákup-příslušenství-k-invalidní1/123
I'd prefer this:
/projects/hledam-sponzora-na-nakup-prislusenstvi-k-invalidni1/123
I tried changing just the url_title table collation to non-Czech, but it caused an error when submitting the form. Any ideas?
Just in case anybody needs it (a year later), try with convert_accented_characters() of the Text Helper. This is how I do it:
url_title(convert_accented_characters($title_with_accents), 'dash', TRUE)
Works quite well :)
You can also check the file application/config/foreign_chars.php and edit it if it's needed.
I don't understand what you are trying to do... Are these urls? If so, I'd choose numbers that associate to the titles you want to use.
Could you show the markup of the form? Also the controller function that handles the submission could be major help... Help us help you!

Resources