Custom Blocks

  • Hervé
  • Hervé's Avatar Topic Author
  • New Member
  • New Member
More
7 years 7 months ago #1 by Hervé
Custom Blocks was created by Hervé
Hello
Do you have a tutorial and downloadable examples?
what interest ?
related or possible to be linked to custom fields joomla?
Regards

Please Log in or Create an account to join the conversation.

  • Christopher Mavros
  • Christopher Mavros's Avatar
  • Offline
  • Administrator
  • Administrator
More
7 years 7 months ago #2 by Christopher Mavros
Replied by Christopher Mavros on topic Custom Blocks
Hi again Hervé.

Custom Blocks is a relatively new feature of MyShortlist, intented to allow users to create favorites out of everything in their website, or to show Add/Delete buttons in category views, like the Agenda view we talked earlier.

We are working on creating a nice tutorial for this feature, but here are a few basics:

First of all, you can see this feature live at https://demo.mavxr.com/administrator. Use demo as the username and password.

The Custom Blocks use CSS selectors to identify which part needs to be added as a favorite. The Container Selector should be a CSS selector that identifies each item you want to be added, like ".page .item"
Then, using relative selectors, you can specify the rest of the details, like the title ( something like ".title" ), a text description (possibly something like "div p"), a link selector (like "div a") and an image selector.

The link selector is also useful to identify if the custom block is an item already compatible to MyShortlist or not. For example, if the link leads to a Joomla article, MyShortlist will recognize the article.

If no link selector is provided, or if the link is not one of the ~40 compatible component items, then MyShortlist uses the title as the way to identify this custom block.

If you need further information, please feel free to post.
Thanks again.

Christopher Mavros
me@mavxr.com
If you like our extensions, please rate us on the JED!

Please Log in or Create an account to join the conversation.

Moderators: Christopher Mavros