How to include class file in custom block ( Concrete CMS 5) - concrete5

How to load the class file into Custom blocks.
I have created a custom block. and I need to include one class file into multiple files. so could you please guide me?
Please see attached screenshot.
https://prnt.sc/4BmLEEem_dZ
https://prnt.sc/rGogZg3-l0Hq
I have created on class “MiniSurvey” and this class is added to multiple files.
like, View.php, edit.php, etc.
So I need to create one class file and use that class file multiple times.
If you provide your email address then I will send my custom blocks .zip file.
I had already asked this question in Concrete Community: https://forums.concretecms.org/t/how-to-include-class-file-in-custom-block/394
Could you please Help me?
Thank you!

Related

How to use TYPO3 v10 Extension Builder to enhance pages

I'm trying to create an extension that will enhance the pages with additional fields. Since there are a lot of relations and properties I wanted to use the Extension Builder which tells in the documentation (https://docs.typo3.org/typo3cms/extensions/extension_builder/stable/Developer/ExtendingModels.html) that if I would like to extend an model, I have to: You have to enter the class name (not the model name!) of the model in the field.
So now the question is: What is the class name for pages? The class name for Frontend Users is: \TYPO3\CMS\Extbase\Domain\Model\FrontendUser. This one is mentioned in all descriptions.
Where can I find the class name for pages?
This does not exactly answers your question. But if you want to add new fields to page property you can follow
https://www.sebkln.de/en/tutorials/how-to-extend-typo3-database-tables-with-new-fields/

Symfony OneupUploaderBundle how to link the uploaded files to the entity

I am using OneupUploaderBundle, with jQuery File Upload. After the files are selected, they are uploaded and renamed by the bunudle. The problem I am facing to, is from the validation of my form(entity) how can I know the list of files that have been uploaded ? I don't know which kind of parts of code can be useful for this question as I have just followed their guide but I can edit if needed.
So the solution I've built is to add the picture filename, via the EventListener used for the file posting, in a text file, then explode the text file in an array from the controller (form validation) and move the pictures files to their final location. If someone as a better solution... Do not hesitate!

unable to use display suite template files

i use display suite to style my taxonomy page and it suggests me some template files but i am not able to use that file, i put them in place but they do not include,
do you know how it will works please ? or any references ?!
this is my display suite screen
and i place file ds-reset--node-article-article-ds.tpl.php into address sites/all/modules/contrib/ds/layouts/ds_reset
but not thing gana happen
(would be a comment if I could :) You're supposed to put your template file in /sites/all/themes/your_theme/templates/, not in the DS folder.

Update GUI from Config File in Qt

I am making a GUI in which based on user login a certain number of buttons are supposed to be enabled and the rest disabled. I have to do this with the help of a config file.
Can anyone please share any examples or references if they know.
Thank you :)
You can write a Qt application that parses an xml file by validating it against a predefined xsd file.
The xml file had layout, grid, button text, and other various information for the user.
The goal of this was the end user could create his/her own xml file to custom configure their buttons.
What you need:
Define a data structure that will match your objective
Validate and test XML
Create a widget with whatever kind of layout you want. If you're doing buttons, you probably want to use a QGrid
Load the XML and configure your layout.

drupal 6 /user/permissions checkbox page core module

Does anyone know where i can find the code that makes the user/permissions checkbox page in drupal? I'd like to see how it's done to make something similar for a custom module i'm building.
The function you're looking for is theme_checkbox($element) and can be found in root/includes/form.inc. If you ever want to know what function/template is responsible for a certain HTML element then Theme developer is your friend.
Enable the module, set the permissions and you'll see a small checkbox Themer info. Then just point to the HTML part you're interested and see what theme function/template is doing the rendering.
i think on default module folder there is user folder on user.admin.inc file contain code for permission function is user_admin_perm(); see this code

Resources