Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-04-2012, 06:48 PM   PM User | #1
JrBcnChz
New to the CF scene

 
Join Date: Nov 2012
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
JrBcnChz is an unknown quantity at this point
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 08:02 PM..
JrBcnChz is offline   Reply With Quote
Old 12-06-2012, 04:25 AM   PM User | #2
Matt Boldt
New Coder

 
Join Date: Jul 2009
Posts: 28
Thanks: 2
Thanked 3 Times in 3 Posts
Matt Boldt is an unknown quantity at this point
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.
Matt Boldt is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:22 AM.


Advertisement
Log in to turn off these ads.