Search:

Type: Posts; User: infomiquel

Search: Search took 0.00 seconds.

  1. Finally, I think this is working...! ...

    Finally, I think this is working...!


    $objNews = new NewsModel();
    $objFile = new FilesModel();
    $objNews->singleSRC = $objFitxer->findById($arrFiles[picture][uuid])->uuid; // 'picture' is the...
  2. Reading and writing singleSRC or uuid (binary data)

    I'm getting uuid from FilesModel class (reading table tl_files) and trying to write in singleSRC column in tl_news (using NewsModel class). But the result is different:

    In tl_files, the value for...
  3. I found it: I get the singleSRC from $arrFiles: ...

    I found it: I get the singleSRC from $arrFiles:


    $arrFiles[picture][uuid]

    Explanation:


    $arrFiles[name_of_the_form_field][uuid]
  4. Replies
    4
    Views
    4,060

    Yes, you could use class ContentModel to...

    Yes, you could use class ContentModel to read/write data from/to table tl_content. You need to usea contentModel object in your class (the class you write for using with processDataForm Hook):

    ...
  5. How to manage files implementing processFormData hook?

    Good morning!

    I'm coding a class for using when a form is sent (using processFormData hook). In the form, some files could be uploaded (usually an image file). I configured in the backend...
Results 1 to 5 of 5