VISIT AND LIKE OUR PAGE ON FACEBOOK
TAKE A LOOK AT OUR TWEETS ON TWITTER
SUBSCRIBE TO THE JOOMFREAK RSS FEED
VISIT OUR CHANNEL ON YOUTUBE

Account Details

Change your name, email, password or permanently delete your account. Change settings

We offer several ways you can get support from our experts: Support ForumKnowledgebaseNewsletter

Your Forum Posts

No posts to display.

Welcome, Guest
Username Password: Remember me

More Dynamic portfolio
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: More Dynamic portfolio

More Dynamic portfolio 16 Feb 2016 23:40 #8090

Hello,

I was wondering if it's possible to create a more dynamic porfolio. For example by adding the following characteristics:

1. randomly single or double width images (or selected by the user on the article)
2. Create double height for vertical pictures (or just adapt to the image height)
3. hover fill with random color

1 and 2 maybe can be set somehow on the article and not randomly generated, for example with special css classes.

What do you think?
Any idea on how to do it?

Thanks

Re: More Dynamic portfolio 17 Feb 2016 23:46 #8098

For the image height I solved by removing all fixed heights in the css files for the isotope classes.

I will handle the vertical size by pre processing images before uploading on the website.

The thing that I don't know how to handle is the width, in the original template it is 240px and it uses the chached image generated from K2 with the "small" size.

To add the image with double width in the portfolio somehow I need to:
  • add a css class to set width: 480px
  • indicate that the image to be used is not the "small" (filename_S) but the "medium" (filename_M)


The only Idea that I have is to create a dedicated extra field on K2 to handle width, and create an if condition on category_item.php to verify the value of that extra field and decide whether to set or not the before mentioned bullet points.

Does anyone have a better idea?
Last Edit: 17 Feb 2016 23:48 by madmanblues.

Re: More Dynamic portfolio 18 Feb 2016 04:34 #8100

Thank you for using our template.

Your recommendation for the new width of image is good.

We can change the with of image via css, as well as modify the code to get the Medium Image from the cache instead of Small size.

Regards

JF Support.

  • Posts:2940
  • isupport
  • Moderator
  • OFFLINE
  • Karma: 0

Re: More Dynamic portfolio 18 Feb 2016 07:32 #8113

Great, I was just wondering how to set the different width only to some articles of my choice and not to all of them.

I think that the idea of the extra fields is possibile but not optimal. It implies a double check, one for the width and one to exclude the width in case of displaying extra fields
Last Edit: 18 Feb 2016 08:29 by madmanblues.

Re: More Dynamic portfolio 19 Mar 2016 23:33 #8447

Are there news on this update on the portfolio page for choosing different widths on images?

Thanks for the support
Last Edit: 19 Mar 2016 23:33 by madmanblues.
  • Page:
  • 1
Time to create page: 0.81 seconds
Thursday 18 April 2024

joomfreak is not affiliated with or endorsed by the Joomla Project or Open Source Matters.
The Joomla logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.