Plugins – Customizable collection topic

I'm creating a truck listing page.
However, all topics relate to vehicle lists and the fields for adding new offers are incorrect. I need to be able to adapt these fields to my site.

Can anyone recommend a topic or topics can you change these fields (if so how do I check)
Or should I just create my own entry?
I don't want to buy a topic and it doesn't help me.

php – Laravel Collection randomly choose with a custom criteria

I have a collection that returns items. I chose an item for this collection at random, but I need to review the selected random item.

In my case, I would rather choose a random element that is a short distance away

$arbitres = $arbitres->reject(function ($arbitre) use ($rencontre) {
                    return $arbitre->rencontreOfficiels->contains(function ($rencontreOfficiels) use ($rencontre) {
                        return $rencontreOfficiels->rencontre_id === $rencontre->id;
                })->filter(function($arbitre) use ($rencontre){
                    return ! $arbitre->rencontreOfficiels->contains('dt_rencontre' , $rencontre->dt_rencontre);
                })->filter(function ($arbitre) {
                    return $arbitre->fonctions->contains('fonction_officiel_id', 1);

Here I generate the random element:

$candidat_arbitre_central = $arbitres->random();

I have to check the distance with:

$candidat_arbitre_central->getDistanceToRencontre($candidat_arbitre_central, $rencontre)

I have to loop until the getDistanceToRencontre value is the shortest
form the collection.

That is possible ?

here mine getDistanceToRencontre Method:

public function getDistanceToRencontre($licence, $rencontre){

        $origin = $licence->lb_adresse .' '. $licence->lb_ville_naissance .' '. $licence->cd_dept_naissance;
        $destination = $rencontre->stade->adresse_stade .' '. $rencontre->stade->ville_stade .' '. $rencontre->stade->cd_post_stade;

        $distance = getDistance($origin, $destination);

        $distance = $distance * 2 ;

        return $distance;


Fatal error: Undetected error: Call the undefined method Training Reviews Model ResourceModel Reviews Collection :: addAttributeToFilter ()

I want SELECT COUNT (*) FROM name_table WHERE result like & # 39; likes% & # 39; is executed and a numerical value is displayed on the page. How do I do that? I am a beginner. I will be very grateful for your help!


pageConfig->getTitle()->set(__('Users Reviews'));

    return parent::_prepareLayout();

protected $_productCollectionFactory;

protected $_productVisibility;

public function __construct(
    MagentoFrameworkViewElementTemplateContext $context,
    array $data = ()
) {
    $this->_productCollectionFactory = $productCollectionFactory;

    parent::__construct($context, $data);

public function getProductCollection()
    $collection = $this->_productCollectionFactory->create();

    $collection->addAttributeToFilter('result', ('like' => 'test'))

    return $collection;


_init('training_reviews', 'news_id');

Model / ResourceModel / Reviews / Collection.php









odata – bind and display collection (Edm.String)

I wonder how to bind Complex Type – Collection (Edm.String- in List. Example:

Service (odata v4)

Entity type: Person owns:

I'm setting up something like that (XML view)


The number of elements is okay, but the content of the title is not displayed. What should I put there?
screen output

Development – The app catalog is not displayed in the SharePoint Admin Center site collection

I'm working on SharePoint add-ins to create a remote event receiver. I have generated an app file and need to make it available on my SharePoint website. I followed the link below to create an app catalog for my website.

Reference: Create an app catalog in SharePoint Online

After completing all of the above steps, I visited SharePoint Admin Center site collections to get the app catalog home lisk, but the app catalog does not appear there.
How did I make a mistake when I followed the reference steps?

Office 365 – SharePoint Online – Deleted site collection returned by the Search REST API

I list all of the company's website collections by calling:


Some of the site collections returned are deleted. When you navigate to them in the browser, 404 File not found is displayed. And they can't appear in both active and deleted sites in the new SharePoint admin center.

Is there a way to exclude deleted site collections in the API call? Or is there a way to search for a list of deleted site collections?

Thank you in advance.

magento2.3 – Sorts the product collection by date in the standard category view

All products have one made in Attribute with the date the product was added. You can activate this as a frontend sorting option in two ways.

If you have access to your database:

  • Find the created_at product attribute in the eav_attribute DB table
    • to adjust
      The frontend_label column is Created At (default is null).
  • Find the created_at product attribute in the DB table

    • Set the used_for_sort_by column to 1 (default)
      is 0).
  • Refresh the caches

Created at is now available as a frontend sort option that you can set as the default sort option in admin. The more conventional way of doing this is through a module in which you change the database fields using the setup methods.

You can find more information on both options here:

Magento 2 How to add custom sorting by option

I find it very useful to use the created_at attribute to sort products because you can always manually set the created_at attribute with something like if you want to move products to the top of the list


Algebraic Geometry – subset of a schema induced (ideal-theoretically) by a collection of given points

Suppose we have an affine scheme $ X = operatorname {Spec} A $ and a collection $ Y $ of certain points (corresponding to ideals of $ A $). Is there a standard terminology that refers to the subset? $ X_Y $ of $ X $ that consists of all the main ideals of $ X $ each of them is in an ideal $ Y $? For example when $ Y $ consists of only one point $ P $ then $ X_Y $ is just "the local scheme of $ X $ at the $ P $", usually referred to $ X_P $, What happened if $ Y $ has more than one point? Is there a default name for $ X_Y $?

sharepoint online – Flow for copying calendar items from one site collection to another

Due to the lack of a modern calendar interface and the limitations of corporate functions for websites, an attempt is made to create a flow that will copy calendar entries from one website collection to another.

First I tried to use the item information from the created / modified trigger to create the new calendar entries, but it does exist hidden Columns that are not available throw this interface (either to retrieve or set the newly created item) so I had to continue Send an HTTP request to SharePoint Step to get all the columns i need. That seems to be working and I'm getting a Json.

  "d": {
    "ID": 37,
    "Title": "Simple single event",
    "Modified": "2020-01-23T23:24:10Z",
    "Created": "2020-01-23T23:24:10Z",
    "EventDate": "2020-01-25T00:00:00Z",
    "EndDate": "2020-01-25T01:00:00Z",
    "Description": "

Description goes here!​

", "fAllDayEvent": false, "fRecurrence": false, "EventType": 0, "UID": null, "RecurrenceID": null, "Duration": 3600, "RecurrenceData": null, "MasterSeriesItemID": null } }

I follow the request step with one Analyze JSON step and I used this tutorial to change the schema and either convert the values ​​to corresponding types or accept no value or zero, When I run a test, the output body for the analysis appears correct. I see what I have above and there are now dynamic variables that I can access. It looks right to me because things that are strings are in quotation marks, numbers and Boolean values ​​have no quotation marks and are blue, just like zero.

My problem is trying to use this analyzed JSON data with a REST-POST to create a new element. Using the dynamic data names that were analyzed in the previous steps, I create such a body.

Enter image description here

I have to add quotes for those I know are strings, but I don't see that for the Boolean values ​​(fAllDayEvent or fRecurrence) not correct is changed to Not correct, And for those who might be zero, I don't know what to do. I want to pass on null and not "null", But at other times, the null values ​​might actually be strings, and at that point they should have quotation marks.

I can't find any help because all the searches go back to json. And maybe that's the solution, but I don't understand how.

Is there any idea how the parsed JSON value can be passed to an endpoint for creating a REST POST element if it can be zero, string or number depending on the value?

Workflow 2010 cannot be edited in our migrated SharePoint Online site collection

I have migrated a SharePoint 2010 website to SharePoint Online and we have a workflow that is correctly displayed in the list settings >> workflow as follows:

Enter image description here

However, when I tried to edit the workflow with SP Designer 2013, the following error occurred:
Enter image description here

Now I tried to clear the cache from these 3 places: –

  • C: Users \ AppData Local Microsoft WebsiteCache
  • C: Users \ AppData Roaming Microsoft SharePoint Designer ProxyAssemblyCache
  • C: Users \ AppData Roaming Microsoft Web Server Extensions Cache

I also tried to edit the workflow from "SP Designer" >> "All files" >> "Workflow" >> Open the ".xmol".

But none of the problems above fixes the problem for me. can someone please give me some advice