Copy/paste plone portlets - plone

Is there any existing add-on that allows user to copy and paste context portlets?
If not - are there any contraindications to implement it?

I don't know any addons which provide this feature.
The UI of manage portlet screen is kinda hard to add copy/cut/paste buttons so i will say try to by move all actions inside a drop down menu.
Actions on portlets are:
move up / down (with condition on display)
delete
hide
edit (click on title)
I know users which believe the 'x' is the action to hide the portlet ... This is why I believe a dropdown menu with full text actions will be better than more icons.
--------------
portlet title
actions v
--------------
And the portlet title should not be a link.

Related

Custom Page Templates in WordPress to show Content in specific layout

I want to create a custom page template in WordPress which shows Image Slideshow and then a video below it and finally some text - till now what I am able to do is play with sidebar, footer, header.
I can either remove them or keep them in my custom page templates but what I want to do is play with the page contents.
The Admin user should be able to see these sections in the Page Editor (WYSIWYG) when they choose the Template from the drop-down, so that they can accordingly add the correct content in correct place holders
Something like the attached screen-shot is showing
Is this possible in WordPress
Yes! It's possible to implement this! you can use https://codecanyon.net/item/visual-composer-page-builder-for-wordpress/242431 or https://wordpress.org/plugins/siteorigin-panels/ plugin.
The first plugin allows you to create different page layout and save it. It also allows admin to choose page layout that admin has saved previously.
The second page builder plugin allows you to create template same way and allows admin to clone one page layout to another one.
Hope this will help you!

How to create easy accordions in drupal

Is there a way to easily implement accordions in Drupal 8.
Till now, i've done it with field collection (or paragraph) but my client wish to can put an accordion everywhere in a content where he want. with the fields, i need prepare it on the template.
So i think on something like a shortcode known in WordPress:
[accordion]
[accordion-item id="item-1" title="Title of accordion item"]Drop-down content goes here.[/accordion-item]
[accordion-item id="item-2" title="Second accordion item"]Drop-down content goes here.[/accordion-item]
[accordion-item id="item-3" title="A Third accordion"]Drop-down content goes here.[/accordion-item]
[/accordion]
Or is there maybe some kind of a page builder module for Drupal which allows that and gives a bit more flexibility creating the content?
Thanks for any advice.
Ok so here's a very custom solution (not as easy as requested), but still, I guess I'd do it this way. You'll need FieldGroup module and theme preprocesses knowledge.
Add an extra field in your form(s). It will be a Fieldgroup of a titre input and a body textarea. Configure it so the user can add an infinite amount of elements.
Now lets say you add this token in your wysiwyg : [accordion].
In you theme, create a preprocess function for your node (THEMENAME_preprocess_node), and get the wysiwyg content. Search for the token, and if it's there, place the Fieldgroup content there.
Don't forget to hide the Fieldgroup content on the display.
Finally, in your theme, add an accordion library (or jquery-ui accordion from the core) and apply it on your injected html.
It should do the work.
Edit : You can also go with Views Accordion. But I think it would be a less interesting solution for your client UX.

UberMenu options screen doesn't work at menu setup

I just purchased and installed UberMenu plugin version v3.2.1.1, followed the setup exactly the way they described, and I'm able to see the Ubermenu instance in my front page, as it should be.
However, I can't access the customization area of the menu, and therefore I can't tweak it my own way.
When I go to Appearance -> Menus and click on the Uber button on any menu item, all I get is an empty options popup, just like the image below. None of the tabs present any content, it's just like the plugin scripts weren't being loaded.
However I see that blue popup in the lower right end of the screen saying it was being loaded correctly, and it's gone properly when it ends the job.
What can I do to enable/load correctly the configuration options for this plugin?
Thanks!
There are generally 2 possibilities that can make this happen:
A PHP error occurs (for example, a memory limit exception), preventing the page from loading the content critical to the menu item settings panel. You can check if that's the case by viewing your Menus Panel page source and seeing if you have a closing HTML tag.
or
The theme alters the admin menu structure via a custom Walker, resulting in the plugin not being able to find the appropriate data within the admin menu items to generate the settings panel. This is not very common, but can happen with themes that offer their own custom menu item settings within the Appearance > Menus Panel, as they alter the standard item markup to suit their needs.
If you need assistance, just Submit a Support Ticket over at sevenspark.com and we'll help you get it sorted out :)
Have a great weekend!

Add portlets to Plone front page

I TRY to manage content on a Plone-based website, www.capital-tennis.org. I know ALMOST NOTHING about Plone itself.
I want to add 2 portlets to the front page (main page) of the website, one on the left (in the white blank space) and one on the right (to the right of the leagues/tournaments links). The new portlet on the left should mirror the 4 externally visible events in the EVENTS folder at the top of the front page, basically acting as a repeater to bring attention to those events on the front page. These 4 events on the front page should be in thumbnail view. The new portlet on the right should be an external link to a website.
I don't exactly know what kind of permissions I have. I know I can delete and add content to other pages. I assume I can do the same with the front page.
I don't know if I have to use the portlet management tools on the website or if I can write the HTML code to reverse engineer the creation of these 2 portlets.
When you reply, please treat me as an idiot, stepping me through every button press, etc. I would REALLY, REALLY appreciate your help.
Eric
If you have full admin rights you should see Manage portlets link somewhere on the front page after login.
Here you can add
Event portlets which automatically pulls published events on the site
Static text portlet where you can enter text and links with WYSIWYG editor
No need to program. No need to even write HTML.
Please check if you can get this done and if it looks you get there then ask additional information, if needed, in the question comments and I can retrofit the answer.

Current/Active Navigation Link State in Magento

I built custom navigation for my Magento site, now I'm scrambling on how to add:
class="current"
to the list item the user is currently viewing.
Thanks,
-Sam
I'm not entirely clear what you are looking for - but if you mean that you have added CMS pages to the standard menu (which is a common requirement) then you can test what cms page you are on using
Mage::getSingleton('cms/page')->getIdentifier();
The menu is usually called in catalog/navigation/top.phtml and this is not a bad place to add extra static links.
If that is not what you mean, could you give more details? Including what you have tried/what custom code you are using.

Resources