Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Nov 2012
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Content substitution, add something to page, have the last in line bumped to next pg?

    Hello,

    I am working on a site to display pictures. I have it set up in html/css to display 10 per page, and right now i have placeholder images. I want to be able to add a new image to the top of the homepage, bumping the rest down one, and making "image 10" on the homepage "image 1" on page 2. I have created a styled template for a "page 2," but I was wondering how I might edit or add something to my site so that I don't have to continually cut/paste the image source paths "down one" from the div above to make room for a new pic at the top, and how to make image 10 on my homepage be fed to page 2.

    Not looking for tons of detail, even a conceptual answer would be appreciated, something to point me in the right direction.

    Thanks!
    Last edited by JrBcnChz; 12-04-2012 at 09:02 PM.

  • #2
    New Coder
    Join Date
    Jul 2009
    Posts
    28
    Thanks
    2
    Thanked 3 Times in 3 Posts
    You're kinda wanting a feed of content (in this case, images) similar to a blog. Blogs pull content from a database and display things based on how you have it set up.

    If these are just static web pages, there's not really an efficient way to automatically "move" img tags to another document (page 2). It'd have to be done with a server-side language like PHP.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •