Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. Connect and find Help
  3. mixing newsgirl and project thumbnails

mixing newsgirl and project thumbnails

Scheduled Pinned Locked Moved Connect and find Help
6 Posts 2 Posters 1.7k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B
    B
    bb_daniel
    wrote on last edited by
    #1

    Hey @arminunruh,

    we are looking for a solution to combine NEWS and PROJECT THUMBNAILS in one grid (ordered by their publication date). Unfortunately it's not possible to combine them using the element gird (because you can't choose single NEWS).

    Alternatively I´m looking for a code that mixes up the content of a news grid and a thumbnail grid (ordered by their publication date). I played around with some custom code using .append() to move the elements but I can't find the right parameter to sort them correctly.

    Do you guys maybe have a solution for that problem?

    Best, Daniel

    1 Reply Last reply
    0
    • arminunruhA
      arminunruhA
      arminunruh
      Global Moderator
      wrote on last edited by arminunruh
      #2

      ooh, lay theme doesnt support that sorry! :/

      basically you want to put news post thumbnails into an elementgrid, and also put project thumbnails into an elementgrid?

      Screenshot 2024-08-28 at 18.57.01.png

      so basically here, you want to have a +news button?

      i would need to code that, but this solution wouldn't automatically make it sorted by date

      1 Reply Last reply
      0
      • B
        B
        bb_daniel
        wrote on last edited by
        #3

        @arminunruh Thanks for your reply. Having a +news button within the Element Grid would be a sweet alternative. Would that be easy for you to implement?

        1 Reply Last reply
        0
        • arminunruhA
          arminunruhA
          arminunruh
          Global Moderator
          wrote on last edited by
          #4

          this would take some time, i added it to my todolist, but im not sure when i would have time for this

          1 Reply Last reply
          0
          • B
            B
            bb_daniel
            wrote on last edited by
            #5

            @arminunruh
            thanks, I found a way to mix and reorganize both elements with a custom jQuery. Unfortunately when using "newpageshown" the script only fires after the page has rendered. So there is a short moment where the elements jump from one state to the other.

            Is there another way to make a custom code fire, before the page has rendered?

            Thanks, Daniel

            1 Reply Last reply
            0
            • arminunruhA
              arminunruhA
              arminunruh
              Global Moderator
              wrote on last edited by
              #6

              you can try the event 'newpage'
              or the event 'before_content_replacement'

              not sure if it will work

              maybe this

              window.laytheme.on('before_content_replacement', function(){
              
              setTimeout(function(){
              console.log('hi')
              // your code here
              }, 0)
              
              })
              
              1 Reply Last reply
              0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              Online Users
              Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
              laytheme.com
              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Recent
              • Tags
              • Popular
              • Users
              • Search