Jump to content

Media Manager


kongondo

Recommended Posts

5 hours ago, zoeck said:

Is there a planned release Date for the new Version with UIKit Admin Theme support?

I would like to buy the module, but without UIKit support I still have to wait 😉 

Hi @zoeck,

Thanks for your interest in Media Manager. I can't give a definite date but it will be in the autumn.

  • Like 2
Link to comment
Share on other sites

  • 2 months later...

Hi, I recently bought the Mediamanager but I am not able to configure tagging of single media files properly. I followed the instructions on https://mediamanager.kongondo.com/documentation/getting-started/enabling-media-tags/ but no matter what option of tagging I choose ("User enters tags by text input", "User selects from list of predefined tags" or "User selects from list of predefined tags + can input their own") only the first option seems to work (entering text by myself). That is not very comfortable for the user and also kind of error prone. Are the other options just not implemented correctly or am I doing something wrong. Any help would be appreciated.

Link to comment
Share on other sites

19 minutes ago, ampersand83 said:

Hi, I recently bought the Mediamanager but I am not able to configure tagging of single media files properly.

Hi @ampersand83,

Many thanks for the purchase. Welcome to the forums as well :-).

Predefined tags in ProcessWire are relatively new. Updating Media Manager to include the feature is planned, although it may not make it in the next (soon) release.

Link to comment
Share on other sites

On 10/9/2018 at 12:21 PM, kongondo said:

Just to clarify my post above, @ampersand83, my answer is in reference to bulk adding/editing tags. In the upcoming version, media will be edited in a modal in its original page. Hence, you will be able to use any tags input as normal.

Thank you @kongondo  for your quick reply. That sounds nice. I really hope you will be able to release the new version this year. I'm looking forward to hopefully many improvements to that already nice module.

Link to comment
Share on other sites

  • 4 weeks later...

Hi,

I'm new to Processwire. I've recently bought and installed Media Manager, and I have a couple of questions.

I've added Media Manager field as part of a fieldgroup which is placed in a Repeater field (for users to specify image sets for the masthead). There's a small bug in which closing the media manager Insert media dialog box will remove the new Repeater row that is added. It doesn't happen to regular images field. I've attached a video below for illustration purposes.

 

Also, is there a way to consolidate all the files under 1 directory? Most of the time we upload the files into 1 directory (example: assets/images ) and upload them through FTP and the content editors add in the files from the same directory.

 

 

 

Link to comment
Share on other sites

Hi @Nekorin,

On 11/7/2018 at 3:57 AM, Nekorin said:

I'm new to Processwire.

Welcome to ProcessWire and the forum 🙂

On 11/7/2018 at 3:57 AM, Nekorin said:

I've recently bought and installed Media Manager

Many thanks for the purchase.

On 11/7/2018 at 3:57 AM, Nekorin said:

There's a small bug in which closing the media manager Insert media dialog box will remove the new Repeater row that is added.

Thanks for reporting this. I'll have a look. I couldn't see this happening in your illustration video though; must have missed it :-).

On 11/7/2018 at 3:57 AM, Nekorin said:

Also, is there a way to consolidate all the files under 1 directory? Most of the time we upload the files into 1 directory (example: assets/images ) and upload them through FTP and the content editors add in the files from the same directory.

I'm not sure I follow completely. You are able to FTP files into the directory /sites/assets/MediaManager/uploads/. You can then use the scan feature in the uploads dashboard to move the files to the Media Manager library. The main purpose of Media Manager is to create one large, central bucket for all your media. Content editors should then be able to pick any of the images in Media Manager to use in any page. Please let me know if I misunderstood your request.

Link to comment
Share on other sites

5 hours ago, kongondo said:

Thanks for reporting this. I'll have a look. I couldn't see this happening in your illustration video though; must have missed it :-).

Sorry that the previous video doesn't depict what I was doing correctly and might have caused some confusion. Below is a more accurate representation of what it is about. Basically whenever I add a new row and insert a media element with the media manager, upon closing the media manager dialog window, it 'erases' all the repeater/repeater_matrix rows for the entire page. I'll have to add back all the rows (it kind of makes it a bit annoying to use. Although I can get it to save in the end, I'll have to do it 25 times if the masthead carousel has 5 rotating images). 

 

There is a JS error too when I access media manager or add an image. 

image.thumb.png.9ae616177be72deeebb456fad963e7f1.png

 

5 hours ago, kongondo said:

I'm not sure I follow completely. You are able to FTP files into the directory /sites/assets/MediaManager/uploads/. You can then use the scan feature in the uploads dashboard to move the files to the Media Manager library. The main purpose of Media Manager is to create one large, central bucket for all your media. Content editors should then be able to pick any of the images in Media Manager to use in any page. Please let me know if I misunderstood your request.

Thanks for the tips. What i'm referring to is after scanning, each individual image is placed in its own separate folder with an id as the folder name. Is there any way to keep everything within a single folder after scanning? It is tedious to make changes to images, can't just ftp them in and see the changes reflected immediately on the frontend. 

Does scan have an overwrite existing files function?

Link to comment
Share on other sites

Hey @kongondo,

I just purchased your media manager module, thank you for providing it. As far as I can see it works, but it looks broken with AdminThemeUiKit. When I bought it I was expecting it to look like in the screenshots. Now I don't want to show it to the client like that. Do you have a V12-beta I can use?

Also when I upload mp4 videos I get an error saying "filetype not allowed", although mp4 is in the list of allowed extensions. Is this aknown error?

Link to comment
Share on other sites

Hi @Youbility,

First, please accept my apologies for not getting back to you earlier. I've had some serious computer issues that have set me back a couple of weeks. I hope to be back to 'normal' by the end of this week.

On 11/9/2018 at 11:40 AM, Youbility said:

I just purchased your media manager module, thank you for providing it

Many thanks for your purchase.

 

On 11/9/2018 at 11:40 AM, Youbility said:

When I bought it I was expecting it to look like in the screenshots.

I think you saw the screenshots for the upcoming beta version. Its release has now also been delayed (some unforseen bugs, etc). The current version is not compatible with UIKit. The beta version is not production ready too. 

 

On 11/9/2018 at 11:40 AM, Youbility said:

 Now I don't want to show it to the client like that. Do you have a V12-beta I can use?

This is totally understandable. How would you like to proceed? The beta version may not be out soon. If using an older admin theme, e.g. Reno, is out of the question, then the only option left is not to use Media Manager until the new version is out. I'm happy to offer a refund if you'd rather not wait for the new version. Please do let me know.

Thanks.

Link to comment
Share on other sites

On 11/9/2018 at 2:30 AM, Nekorin said:

a JS error too when I access media manager or add an image. 

Yes. This has been fixed in the upcoming version. The bug had to do with satisfying some ProcessLister requirement.

On 11/9/2018 at 2:30 AM, Nekorin said:

after scanning, each individual image is placed in its own separate folder with an id as the folder name.

Behind the scenes each image is a page in ProcessWire. That's why you see this. The ID is the id of the page with the media.

On 11/9/2018 at 2:30 AM, Nekorin said:

Is there any way to keep everything within a single folder after scanning?

Currently no, but sounds like an idea/feature request to consider. Maybe a checkbox or a pattern to detect if images should be kept together e.g. house-1.jpg, house-2.jpg, etc. The upcoming version of Media Manager allows to add images to an existing media page. 

On 11/9/2018 at 2:30 AM, Nekorin said:

It is tedious to make changes to images,

What sort of changes are these? Changing the images? Cropping? Other?

On 11/9/2018 at 2:30 AM, Nekorin said:

Does scan have an overwrite existing files function?

No. I'll see if I can add this. Yes, it does. it respects your media manager settings. The settings apply across board. Sorry for the erroneous info.

Edited by kongondo
Misleading info
Link to comment
Share on other sites

On 11/9/2018 at 11:40 AM, Youbility said:

I get an error saying "filetype not allowed", although mp4 is in the list of allowed extensions. Is this aknown error?

That would only happen if the MIME type of the video is some other format not recognised by the system. Are you able to check the MIME type and let me know? If not, I can send you some code to help.

Link to comment
Share on other sites

  • 2 weeks later...

Hello @kongondo

 

Our users are getting the error "Empty file upload result" when trying to upload images, documents etc...

649332669_Bildschirmfoto2018-11-29um10_07_19.thumb.png.8759fdf87a0f987cb7c7c3c6fe7aa04f.png

 

But the image still gets uploaded successfully.

424296831_Bildschirmfoto2018-11-29um10_08_05.png.a49778b335b0c1f221bd6e7b95728fed.png

 

 

After that i checked with Chrome dev tools the ajax response when uploading the placeholder image:

I get this error:

1630049281_Bildschirmfoto2018-11-29um10_22_44.thumb.png.86c9ec94b81d90ce5528c9198470c407.png

 

I searched for that page "peter-fractures-lac-37499" but only found the page "peter-fractures-lac". But it is a media manager audio page.

378183065_Bildschirmfoto2018-11-29um10_36_10.thumb.png.299585fb3491131424e33aae86548a2d.png

 

It looks like the module is trying to create a new mm-audio page called "peter-fractures-lac" but since there is already a page with the same name this error happens.

But the question is why is he trying to create a audio page when I am uploading an image?

 

Processwire Version: 2.7.3 dev

MediaManager Version: 0.0.9

JqueryFileUpload Version: 0.0.2

PHP-Version: 7.0.32

 

Kind Regards

Orkun

Link to comment
Share on other sites

Hi @Orkun,

You say this is happening with all media types you try to upload? That's strange. I think I've experienced this once when Media Manager was not installed properly and every created child (media page) was heading to the first available media parent, and that happens to be 'Audio'. 

  • Is this a fresh install? Or has Media Manager on that site been working OK previously?
  • Is it possible to have a copy of the images and any non-sensitive documents you are trying to upload so that I can debug?
  • Clearing cache several times and deleting the offending 
  • Is reinstalling Media Manager and option? Does that help? Any errors?
  • We've previously had a similar problem with Imagick but I'm not sure whether that's the case.
By the way, JqueryFileUpload Version: 0.0.2 is a bit outdated :-). Grab the latest version if you can.
 
Thanks.
Link to comment
Share on other sites

Hi @kongondo

Sorry for my late answer. I could resolve the issue with renaming the audio pagename from "peter-fractures-lac" to "peter-fractures-lac-old" after I have done that somehow a new page was generated automatically called "peter-fractures-lac" with the same audio file like the "old" page ("peter-fractures-lac-old"). From now on I could upload images documents etc... and it worked fine. The Error "Empty file upload result" doesn't come anymore. I also removed now the new generated audio page and renamed "peter-fractures-lac-old" back to "peter-fractures-lac" and everything still works fine. Very strange behavior.

Quote

Is this a fresh install? Or has Media Manager on that site been working OK previously?

- It was working OK previously

 

Quote

By the way, JqueryFileUpload Version: 0.0.2 is a bit outdated :-). Grab the latest version if you can.

I upgraded to 0.0.6 now. Thanks.

 

Kind Regards
Orkun

  • Like 1
Link to comment
Share on other sites

1 hour ago, xportde said:

There are other CMS, where you can preset a internal or external link for each media object. Would this be a useful feature in MediaManager, too?

Hi @xportde,

It would be and it doesn't need to wait for the future. It is already here 🙂. With the new version (announcement imminent), you can add as many fields as you want to your respective Media Manager templates. Let's say you want a URL for your images. All you would need is to:

  1. Add a URL field (in this example, called link) to the Media Manager image template (media-manager-image). 
  2. If not accessing your Media Manager Library directly, create a Media Manager Field (let's call it albums) and add it to your page's template, say basic-page. In the Media Manager Field (albums) settings, enable 'Allow users to edit selected media'. 
  3. Edit a page using basic-page template.
  4. Add images to the field 
  5. Hover over an image and click the Edit link. 
  6. Edit your link field to add your URL. 
  7. In your template file, you can access your URL like this:

 

$albums = $page->albums;
$out = '<div>';
$out .= $albums->each(function($m) {
    if($m->typeLabel !='image') return;
    $thumb = $m->media->height(260);
    $img = "<img src='{$thumb->url}' alt='{$m->media->description}' height='130'>";
    $o = "<div><a href='$m->links'>$img</a></div>";
    return $o;
  });
$out .= '</div>';

// OR: Using foreach
/*
$out = '<div>';
foreach ($albums as $a) {
    if($m->typeLabel !='image') return;
    $thumb = $m->media->height(260);
    $img = "<img src='{$thumb->url}' alt='{$m->media->description}' height='130'>";
    $out .= "<div><a href='$m->links'>$img</a></div>";
    $out .= $m->body;
}

$out .= '</div>';
*/
echo $out;

 

And that's it. Any field you add to your Media Manager template is available as $m->name_of_field, where $m is an instance of MediaManager field as per the example above. More examples in my next (eventual) post(s).

I tried to make a video, or an animated GIF, even a simple screen capture to show you what I mean but everything failed! Lots of artefacts, etc. I've recently moved to Linux, so still finding my way round. 

 

Link to comment
Share on other sites

Beta testers needed 😃. Please send me a PM if you'd like to help. An active subscription/current license is required.

I'm happy (and frankly relieved 😁) to announce Media Manager v 012 is ready for beta testing. Please accept my apologies for the delay. 

 

With this version:

  1. Only ProcessWire 3.x (preferably the latest master) is supported from now on.
  2. Currently, only AdminThemeUiKit is supported. (we may support Reno theme in the future).

 

Changelog

 

ProcessMediaManager (Media Manager Library/back-end)

  1. New UI: Responsive and closely matches ProcessWire theme (UiKit)

  2. Media thumbs shown in their natural orientation

  3. Upload Anywhere: Upload directly to Media Manager Library using drag and drop

  4. New edit media page in modal (natural ProcessWire page) (respects locked status and Media Manager edit permission if present)

  5. Create image variations in natural ProcessWire page during editing

  6. Add, edit, display and access custom ‘columns’ (fields) added to media manager templates (e.g. add text field to media-manager-image and access value using Media Manager API)

  7. Hide media types menu items if media type not in use

  8. Global setting for allowed media types (e.g. image and video only)

  9. Hide ‘All’ menu item

  10. New filters dashboard

  11. Updated and freshened up upload’s dashboard

  12. Option to upload ZIP archives as is (to save as documents) vs. to decompress them (recursively)

  13. Preview PDF documents in ‘gallery mode’ (if browser supports it)

  14. Selection of media is now identical to how images thumbs are selected in ProcessWire

 

media-manager-edit-1.thumb.png.b5c09ee5ab27f3e23fa505703604a911.png

 

media-manager-edit-2.thumb.png.7a69dd02fac3fe4cef7e753f2af9c9b1.png

 

media-manager-select-media-1.thumb.png.92090c92959cf5f77f024f7870f578e9.png

 

media-manager-select-media-2.thumb.png.2ea01a2274f8f69343ad6d978ce8a0f9.png

 

media-manager-tags-1.thumb.png.286d68e6e9d96af93847378bc807abf1.png

 

media-manager-tags-2.thumb.png.ee33eaf848b55156ea4d6f214e74a780.png

 

media-manager-upload-anywhere-1.thumb.png.d1f77f4440cc15e742cad604d09dacfd.png

 

media-manager-uploads-add-1.thumb.png.cd6d2532323ad124e897368670650abd.png

 

media-manager-uploads-add-2.thumb.png.e23432b6915353b4b8d4e2de982b209e.png

 

media-manager-uploads-scan-1.thumb.png.36cb1c85db85ab8b27355fcd9dc33603.png

 

media-manager-filters-1.thumb.png.4c93ca42d7ba13c4954ca9e8b9505e61.png

 

media-manager-filters-2.thumb.png.6beeb947eb7165f4e2dfe9bfcb52d37e.png

 

media-manager-settings-custom-columns-1.thumb.png.fa8917406e55334124b66b85d5ea2db0.png

 

media-manager-settings-more-new-1.thumb.png.b2e5b240d162adcd2dde1ba054369202.png

 

FieldtypeMediaManager

  1. Enable Upload Anywhere (for InputfieldMediaManager use)

  2. Allow users to edit media displayed in a Media Manager Inputfield

  3. Change whether to use text or icons for action ‘buttons’

  4. Custom fields: Display and edit ‘columns’ (fields) added to media manager templates

 

media-manager-field-settings-1.thumb.png.6148135c4a576cb4fcbe33f6d08031b5.png

 

media-manager-field-settings-2.thumb.png.30d210db2fdf1f8de6e5b026e2b44107.png

 

InputfieldMediaManager

  1. New UI: Responsive and closely matches ProcessWire theme (UiKit)

  2. Media thumbs shown in their natural orientation

  3. Upload Anywhere: Upload directly to Media Manager Library using drag and drop AND simultaneously insert into the Media Manager field on the page being edited

  4. Inputfield Media Manager markup updated/refreshed using Ajax when media is added or edited. No need for a page reload (so you won’t lose unsaved changes on the page)

  5. New edit media page in modal (natural ProcessWire page) (respects locked status and Media Manager edit permission if present)

  6. If a media in a Media Manager Inputfield is unpublished or trashed, it is automatically removed from all Media Manager Inputfields present on the page (including its variations) and the fields refreshed using Ajax

  7. View values of custom columns (not all Fieldtypes supported for viewing although all supported for accessing using the API). These are refreshed on the Inputfield using Ajax once editing is complete.

  8. Better support for repeaters

  9. Preview PDF documents in ‘gallery mode’ (if browser supports it)

  10. Selection of media is now identical to how images thumbs are selected in ProcessWire

 

media-manager-inputfield-1.thumb.png.c3f356f72a140774c1eabbaa829b2f02.png

 

media-manager-inputfield-2.thumb.png.57f86a0296623ce95633049a742feb26.png

 

media-manager-inputfield-upload-anywhere-1.thumb.png.4973a98dce29d8c56361ab41bdb01d4e.png

 

media-manager-inputfield-upload-anywhere.thumb.gif.da6d7a953a1dd8f6124922fc4f17ccc5.gif

 

 

1901912334_media-manager-inputfield-upload-anywhereunzipping.thumb.gif.5ebb9657fcd0ec149167ac80572a8a93.gif

 

media-manager-pdf-preview.thumb.gif.9bfb103ab4b3a6994d5aa0ab309e4423.gif

 

Inserting image variations

media-manager-inputfield-insert-variations-1.thumb.png.4d4cd09f47f95d04a28f2d6a431b1aed.png

 

media-manager-inputfield-insert-variations-2.thumb.png.9717c1e0baf4107409aa49eca13dc165.png

 

Media Manager API (working in the front-end and manipulation via the API)

  1. Access media in a Media Manager field on a given page (see examples below)

In the example below, we access custom fields (columns) added to the image media template (media-manager-image). In this case, two fields have been added. A URL field named links and a text field called headline. You can add any field you want. Please note though that not all fields can be displayed in the backend (for practicality). In the frontend, there are no such restrictions and you can access any of the fields as shown below. Your MediaManager object gives you access to the fields. For instance:

$m->name_of_your_field. 
Below, we have 
$m->links and $m->headline.

 

Please note that $m->media still returns the first media in the MediaManager object. In case you have added more than one media to your media field, e.g. more than one image added to one MediaManager object (done via editing a Media), you can access all of them using:

$m->mediaField;

In the case of image media, $m->mediaField returns a Pageimages object which can be iterated. This assumes, of course, that your media_manager_image field accepts more than one image (the default).

The default setting for number of files accepted for other media types is 1, hence $m->mediaField returns a Pagefile object. You can edit these fields (media_manager_audio, media_manager_document and media_manager_video) to accept multiple files is you wish, in which case $m->mediaField will return a Pagefiles object which you can loop through, access using first(), last(), eq(n), etc.

 

// get the media manager field on the page
$mediaContent = $page->media_manager_tests;

$tbody = '<tbody>';
$tbody .= $mediaContent->each(function($m) {
    if($m->typeLabel !='image') return;
	$thumb = $m->media->height(130);
    $img = "<img src='{$thumb->url}' alt='{$m->media->description}' height='130'>";
	$tds =
		"<td>$img</td>" .
		"<td>{$m->headline}</td>" .
		"<td><a href='{$m->links}'>{$m->title}</a></td>";

	$row = "<tr>{$tds}</tr>";
    return $row;
});
$tbody .= '</tbody>';

$content .=
	"<div class='uk-overflow-auto uk-width-1-1'>".
		"<table id='news-outlets' role='presentation' class='uk-table uk-table-divider uk-table-hover uk-table-justify uk-table uk-table-middle uk-table-responsive'>".
			"<thead>" .
				"<tr>" .
					"<th class='uk-width-small'>Preview</th>" .
					"<th class='uk-table-expand'>Summary</th>" .
					"<th class='uk-width-medium'>Link</th>" .
				"</tr>" .
			"</thead>" .
			"{$tbody}".
	"</table></div>";

 

Output of the above code

media-manager-api-output-1.thumb.png.aac5a7285b355bd7deaf8b78b245438c.png

 

media-manager-api-output-2.thumb.png.af279330ea44dc6e8bdd49607d34b6f6.png

 

 

  • Like 5
Link to comment
Share on other sites

  • 1 month later...

Hi,

i have trouble getting images resized in the listerPro module from Ryan. He asks if the MediaManager module implements the markupValue() method?!

To clarify in The listerPro module can list fields such as images of records. in order to produce a nice list / table it can resize the images on the fly ... thumbnails of 80x80 or what ever setting you whish.

In my setup this is not working (mediamanager field, single instance, only image allowed) and Ryan suggests the markupValue() is probably not implemented.

I my self thought there might be an abstraction depth problem as on the normal imagefield one interacts with the field. In the mediamanager one interacts with the $field->media object ... one level down ...

Link to comment
Share on other sites

Hi @besrwordt,

Welcome to the forums. 

12 hours ago, besrwordt said:

He asks if the MediaManager module implements the markupValue() method?

Currently, no.

12 hours ago, besrwordt said:

In my setup this is not working (mediamanager field, single instance, only image allowed) and Ryan suggests the markupValue() is probably not implemented.

I'll look into this. What versions of MM and PW are you using?

Link to comment
Share on other sites

@kongondo Another thing: how would i go about to merge 2 mediamanager fields via API... if i add the media from one field to another i get the Class 'MediaManagerArray' doesn't yet implement method 'makeBlankItem() error ...

            foreach ($page->mm-field->media as $t-media ){
                $_another_mmmedia_field.=$t-media;
            }

...

 

Link to comment
Share on other sites

@besrwordt,

Do you have a current Media Manager subscription? makeBlankItem() is implemented in the latest Media Manager (version 012, soon coming out of beta). However, you can still import from one MM field to another. A MM field behaves like PageArrays (WireArrays). 

 

A Media Manager field stores only two pieces of data; the (page) ID of the media being referenced and the media type (1=audio; 2=document; 3=image; 4=video; 3x=image variation). There's two ways you can go about exporting/importing from one field to the other. The second way is easiest if you need to import everything from one field to another, no questions asked. The first method allows fine control, e.g. if you want to skip certain media types. In the examples below, media_export is the Media Manager field with the media you want to copy over/merge with a second Media Manager field. media_import is the second Media Manager field into which media is being imported/copied over.

Method One: Loop through each media in the Media Manager field you are exporting from

// page with mm field we are importing into (media_import)
$p = $pages->get(1234);

// page with mm field we are exporting from (media_export)
foreach ($page->media_export as $m ) {
    // @note: here you can skip media you don't want to export
    // instance of new MediaManager()
    $mm = new MediaManager();
    // populate the MediaManager object properties with required data (media id and type)
    $mm->id = $m->id;
    $mm->type = $m->type;
    // import/add the media to the 2nd mm field (media_import)
    $p->media_import->add($mm);
}

// output formatting of
$p->of(false);
// save only the media manager field (page with import mm field)
$p->save('media_import');
// revert output formatting back on
$p->of(true);

 

Method Two: Import everything at once

// page with mm field we are importing into (media_import)
$p = $pages->get(1234);
// import all the media in the 1st mm field (media_export) into the 2nd mm field (media_import)
$p->media_import->import($page->media_export);
// output formatting of
$p->of(false);
// save only the media manager field (page with import mm field)
$p->save('media_import');
// revert output formatting back on
$p->of(true);

 

Note that all WireArray behaviour apply. For instance, you might want to first experiment in cases where your 2nd Media Manager field (media_import) already has some media which may or may not be present in the first Media Manager field. 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By LuisM
      Symprowire is a PHP MVC Framework based and built on Symfony using ProcessWire 3.x as DBAL and Service-Provider
      It acts as a Drop-In Replacement Module to handle the Request/Response outside the ProcessWire Admin. Even tough Symfony or any other mature MVC Framework could be intimidating at first, Symprowire tries to abstract Configuration and Symfony Internals away as much as possible to give you a quick start and lift the heavy work for you.
      The main Goal is to give an easy path to follow an MVC Approach during development with ProcessWire and open up the available eco-system.
      You can find the GitHub Repo and more Information here: https://github.com/Luis85/symprowire
      Documentation
      The Symprowire Wiki https://github.com/Luis85/symprowire/wiki How to create a simple Blog with Symprowire https://github.com/Luis85/symprowire/wiki/Symprowire-Blog-Tutorial Last Update
      16.07.2021 // RC 1 v0.6.0 centralized ProcessWire access trough out the Application by wrapping to a Service https://github.com/Luis85/symprowire/releases/tag/v0.6.0-rc-1 Requirements
      PHP ^7.4 Fresh ProcessWire ^3.0.181 with a Blank Profile Composer 2 (v1 should work, not recommended) The usual Symfony Requirements Features
      Twig Dependency Injection Monolog for Symprowire Support for .env YAML Configuration Symfony Console and Console Commands Symfony Webprofiler Full ProcessWire access inside your Controller and Services Webpack Encore support Caveats
      Symfony is no small Framework and will come with a price in terms of Memory Usage and added Overhead. To give you a taste I installed Tracy Debugger alongside to compare ProcessWire profiling with the included Symfony Webprofiler

      So in a fresh install Symprowire would atleast add another 2MB of Memory usage and around 40ms in response time, should be less in production due to the added overhead of the Webprofiler in dev env
       
    • By FireWire
      Hello community!

      I want to share a new module I've been working on that I think could be a big boost for multi-language ProcessWire sites.

      Some background, I was looking for a way for our company website to be efficiently translated as working with human translators was pretty laborious and a lack of updating content created a divergence between languages. I, and several other devs here, have talked about translation integrations and have recognized the power that DeepL has. DeepL is an AI deep learning powered service that delivers translation quality beyond any automated service available. After access to the API was opened up to the US, I built Fluency, a DeepL translation integration for ProcessWire.
      Fluency brings automated translation to every multi-language field in the admin, and also provides a translation tool allowing the user to translate their text to any language without it being inside a template's field. With Fluency you can:
      Translate any plain textarea or text input Translate any CKEditor content (yes, with markup) Translate page names for fully localized URLs on every page Translate your in-template translation function wrapped strings Translate modules Fluency is free, and now so is DeepL
      Since this module was first built DeepL has introduced free Developer accounts that allow anyone to start using Fluency at zero cost and beginning with the version 0.3.0 release Fluency now supports free DeepL accounts. As of June 2021 DeepL supports translation to 26 languages and continues to offer more!
      Installation and usage is completely plug and play. Whether you're building a new multi-language site, need to update a site to multi-language, or simply want to stop manually translating a site and make any language a one-click deal, it could not be easier to do it. Fluency works by having you match the languages configured in ProcessWIre to DeepL's. You can have your site translating to any or all of the languages DeepL translates to in minutes (quite literally).
      Let's break out the screenshots...
      When the default language tab is shown, a message is displayed to let users know that translation is available. Clicking on each tab shows a link that says "Translate from English". Clicking it shows an animated overlay with the word "Translating..." cycling through each language and a light gradient shift. Have a CKEditor field? All good. Fluency will translated it and use DeepL's ability to translate text within HTML tags. CKEditor fields can be translated as easily and accurately as text/textarea fields.

      Repeaters and AJAX created fields also have translation enabled thanks to a JavaScript MutationObserver that searches for multi-language fields and adds translation as they're inserted into the DOM. If there's a multi-language field on the page, it will have translation added.

      Same goes for image description fields. Multi-language SEO friendly images are good to go.

      Creating a new page from one of your templates? Translate your title, and also translate your page name for native language URLs. (Not available for Russian, Chinese, or Japanese languages due to URL limitations). These can be changed in the "Settings" tab for any page as well so whether you're translating new pages or existing pages, you control the URLs everywhere.

      Language configuration pages are no different. Translate the names of your languages and search for both Site Translation Files (including all of your modules)

      Translate all of the static text in your templates as well. Notice that the placeholders are retained. DeepL is pretty good at recognizing and keeping non-translatable strings like that. If it is changed, it's easy to fix manually.

      Fluency adds a "Translate" item to the CMS header. When clicked this opens up a modal with a full translation tool that lets the user translate any language to any language. No need to leave the admin if you need to translate content from a secondary language back to the default ProcessWire language. There is also a button to get the current API usage statistics. DeepL account owners can set billing limitations via character count to control costs. This may help larger sites or sites being retrofitted keep an eye on their usage. Fluency can be used by users having roles given the fluency-translate permission.

      It couldn't be easier to add Fluency to your new or existing website. Simply add your API key and you're shown what languages are currently available for translation from/to as provided by DeepL. This list and all configuration options are taken live from the API so when DeepL releases new languages you can add them to your site without any work. No module updates, just an easy configuration. Just match the language you configured in ProcessWire to the DeepL language you want it to be associated with and you're done. Fluency also allows you to create a list of words/phrases that will not be translated which can prevent items such as brands and company names from being translated when they shouldn't

       
      Limitations:
      No "translate page" - Translating multiple fields can be done by clicking multiple translation links on multiple fields at once but engineering a "one click page translate" is not feasible from a user experience standpoint. The time it takes to translate one field can be a second or two, but cumulatively that may take much longer (CKEditor fields are slower than plain text fields). There may be a workaround in the future but it isn't currently on the roadmap. No "translate site" - Same thing goes for translating an entire website at once. It would be great, but it would be a very intense process and take a very (very) long time. There may be a workaround in the future but it isn't on the roadmap. No current support for Inline CKEditor fields - Handling for CKEditor on-demand hasn't been implemented yet, this is planned for a future release though and can be done. I just forgot about it because I've never really used that feature personally.. Alpha release - This module is in alpha. Releases should be stable and usable, but there may be edge case issues. Test the module thoroughly and please report any bugs via a Github issue on the repository or respond here. Please note that the browser plugin for Grammarly conflicts with Fluency (as it does with many web applications). To address this issue it is recommended that you disable Grammarly when using Fluency, or open the admin to edit pages in a private window where Grammarly may not be loaded. This is an issue that may not have a resolution as creating a workaround may not be possible. If you have insight as to how this may be solved please visit the Github page and file a bugfix ticket.
      Requirements:
      ProcessWire  3.0+ UIKit Admin Theme That's Fluency in a nutshell. A core effort in this module is to create it so that there is nothing DeepL related hard-coded in that would require updating it when DeepL offers new languages. I would like this to be a future-friendly module that doesn't require developer work to keep it up-to-date.
      The Module Is Free
      This is my first real module and I want to give it back to the community as thanks. This is the best CMS I've worked with (thank you Ryan & contributors) and a great community (thank you dear reader).
      DeepL Developer Accounts
      In addition to paid Pro Developer accounts, DeepL now offers no-cost free accounts. Now all ProcessWire developers and users can use Fluency at no cost.
      Learn more about free and paid accounts by visiting the DeepL website. Sign up for a Developer account, get an API key, and start using Fluency today.
      Download & Feedback
      Download the latest version here
      https://github.com/SkyLundy/Fluency-Translation/archive/main.zip
      Github repository:
      https://github.com/SkyLundy/Fluency-Translation
      File issues and feature requests here (your feedback and testing is greatly appreciated):
      https://github.com/SkyLundy/Fluency-Translation/issues
       
      Thank you! ¡Gracias! Ich danke Ihnen! Merci! Obrigado! Grazie! Dank u wel! Dziękuję! Спасибо! ありがとうございます! 谢谢你!

    • By tcnet
      PageViewStatistic for ProcessWire is a module to log page visits of the CMS. The records including some basic information like IP-address, browser, operating system, requested page and originate page. Please note that this module doesn't claim to be the best or most accurate.
      Advantages
      One of the biggest advantage is that this module doesn't require any external service like Google Analytics or similar. You don't have to modify your templates either. There is also no Javascript or image required.
      Disadvantages
      There is only one disadvantage. This module doesn't record visits if the browser loads the page from its browser cache. To prevent the browser from loading the page from its cache, add the following meta tags to the header of your page:
      <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" /> <meta http-equiv="Pragma" content="no-cache" /> <meta http-equiv="Expires" content="0" /> How to use
      The records can be accessed via the Setup-menu of the CMS backend. The first dropdown control changes the view mode.

      Detailed records
      View mode "Detailed records" shows all visits of the selected day individually with IP-address, browser, operating system, requested page and originate page. Click the update button to see new added records.

      Cached visitor records
      View modes other than "Detailed records" are cached visitor counts which will be collected on a daily basis from the detailed records. This procedure ensures a faster display even with a large number of data records. Another advantage is that the detailed records can be deleted while the cache remains. The cache can be updated manually or automatically in a specified time period. Multiple visits from the same IP address on the same day are counted as a single visitor.

      Upgrade from older versions
      Cached visitor counts is new in version 1.0.8. If you just upgraded from an older version you might expire a delay or even an error 500 if you display cached visitor counts. The reason for this is that the cache has to be created from the records. This can take longer if your database contains many records. Sometimes it might hit the maximally execution time. Don't worry about that and keep reloading the page until the cache is completely created.
      Special Feature
      PageViewStatistic for ProcessWire can record the time a visitor viewed the page. This feature is deactivated by default. To activate open the module configuration page and activate "Record view time". If activated you will find a new column "S." in the records which means the time of view in seconds. With every page request, a Javascript code is inserted directly after the <body> tag. Every time the visitor switches to another tab or closes the tab, this script reports the number of seconds the tab was visible. The initial page request is recorded only as a hyphen (-).

      New in version 1.1.0
      A new feature comes with version 1.1.0 which offers to record user names of loggedin visitors. Just activate "Record user names" and "Record loggedin user" in the module settings.
      Settings
      You can access the module settings by clicking the Configuration button at the bottom of the records page. The settings page is also available in the menu: Modules->Configure->ProcessPageViewStat.
      IP2Location
      This module uses the IP2Location database from: http://www.ip2location.com. This database is required to obtain the country from the IP address. IP2Location updates this database at the begin of every month. The settings of ProcessPageViewStat offers the ability to automatically download the database monthly. Please note, that automatically download will not work if your webspace doesn't allow allow_url_fopen.
      Dragscroll
      This module uses DragScroll. A JavaScript available from: http://github.com/asvd/dragscroll. Dragscroll adds the ability in view mode "Day" to drag the records horizontally with the mouse pointer.
      parseUserAgentStringClass
      This module uses the PHP class parseUserAgentStringClass available from: http://www.toms-world.org/blog/parseuseragentstring/. This class is required to filter out the browser type and operating system from the server request.
    • By clsource
      Inertia Adapter ProcessWire Module
      Hello! Long time no see.
      I created this module so you can use Inertia.js (https://inertiajs.com/) with ProcessWire.
      Description
      Inertia allows you to create fully client-side rendered, single-page apps, without much of the complexity that comes with modern SPAs. It does this by leveraging existing server-side frameworks.
      Inertia isn’t a framework, nor is it a replacement to your existing server-side or client-side frameworks. Rather, it’s designed to work with them. Think of Inertia as glue that connects the two. Inertia comes with three official client-side adapters (React, Vue, and Svelte).
      This is an adapter for ProcessWire. Inertia replaces PHP views altogether by returning JavaScript components from controller actions. Those components can be built with your frontend framework of choice.
      Links
      - https://github.com/joyofpw/inertia
      - https://github.com/joyofpw/inertia-svelte-mix-pw
      - https://inertiajs.com/
      Screenshots


       
    • By sms77io
      Hi all,
      we made a small module for sending SMS via Sms77.io. It supports sending to one and multiple users.
      You can download it from GitHub and follow the instructions on how to install it - it is quite easy. An API key is required for sending, get yours for free @ Sms77 and receive 0,50 €.
      Hope this helps somebody and we are open for improvement suggestions!
       
      Best regards
      André
×
×
  • Create New...