Could you help me tutorial or example on how to use wildcard.media plugin for plone?

Hi guys, i am new to plone and i need to use wildcard.media but i don't have clue how to install or use it. I have google it but unable to find any example, how to, or tutorial. so, if you can point me to the right direction, i will very appreciate it...

Thank you so much for your help

It looks like it only runs on plone 4.x and 5.0


But if that's ok, then installation instructions are here
https://github.com/collective/wildcard.media#installation.
The avconv utility does most of the work so I presume it only runs on linux.

Thanks Mike
Yep, i use Plone 5.0 on Linux.
I also saw that instructions and successed to install in my computer. But then i got stuck cause i dont know how to integrate it to my site, how to implement a player using wildcard.media.
Could you give me instructions.

1 Like

What distribution are you using?
On debian or ubuntu these commands get you the dependencies you need for wildcard.media

sudo apt-get update
sudo apt-get install python-dev python-virtualenv libjpeg-dev libssl-dev libxml2-dev -y
sudo apt-get install  libav-tools libreadline-dev wv poppler-utils libxslt1-dev libpcre3-dev libbz2-dev python-pip python-tk python-gdbm -y
sudo apt-get install ruby graphicsmagick pdftk poppler-utils poppler-data ghostscript tesseract-ocr -y
sudo gem install docsplit

libav-tools gets you the avconv utility mentioned by @mikemets
docsplit is a ruby utility, along with pdftk it is used by wildcard.media for pdf processing.

wildcard.media for pdf processing :open_mouth: i didn't hear about it. can you provide more stuff?

I haven't used the latest version of wc.media but on my older sites I have
wc.media for audio and video and wc.documentview for pdf, word, etc.

Oops! :sweat_smile:
You're perfectly right. Our buildouts tend to include collective.documentviewer and wildcard.media. So the additional pdf stuff is really to support the documentviewer.

It would be useful for me to have examples on how to create "things" in setuphandlers and or config.py.

What I need right know is an example on how to create a portlet to show a player of a random audio in a folder.

Also, it would be good to have examples on how to create default view of a media folder, like:

  • Option 1: create a page with X to show a carroussel.
  • Option 2: implement a @@view and set is as the defautl view.
  • Etc ....

Right now my need is for a plone 4.3 portal. But would be nice to know how to do it in a plone 4 - 5 compatible way.

If someone knows where to find this kind of examples, please.

I am working on this issue: https://github.com/interlegis/interlegis.portalmodelo.policy/issues/3

What you're probably looking for is portlet assignment https://docs.plone.org/4/en/old-reference-manuals/plone_3_theming/elements/portlet/move.html#moving-removing-or-hiding-a-portlet

Step 1 - Create a portlets.xml file
This is done in a portlets.xml file. You will typically place your portlets.xml file in the profiles/default/ folder of your add-on.

I posted a simple example on github:

Step 2 - Add a run import step to your setuphandlers.py
Once you've created your profiles/default/portlets.xml file.
You need a line like this in your setuphandlers.py

 context.runImportStepFromProfile(PROFILE_ID, 'portlets')

see an example: https://github.com/plone/plone.app.openid/blob/master/plone/app/openid/setuphandlers.py#L104

I think that's all you need.

Great. Thanks.

These links are really helpful. I am just working on content migration right now. Will try it latter.

Thank you again.

1 Like

Plone Foundation Code of Conduct