Jump to content

How Do I Render Only Select Divs From One Included File With A Unique Id On Multiple Pages?


Recommended Posts

I'm sure this is fairly simple... ::)

 

Let’s say I have hundreds of pages, each require a short description per page. I also have one individual file with every short description on it. All the descriptions within this one file are each separated by DIVs that carry a unique ID.

 

I would like to reference that unique ID on the “hundreds of pages” rather than copy and paste content on each page.

 

So, one includes file is referenced per page calling the unique ID a specific DIV.

 

Thanks in advance!

Forgive my ignorance but I was hoping for a code example. Could I do a simple if, else... statement? If ID of Page = X then display DIV containing ID equaling X.

Edited by wait
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.